Skip to content

enum Unicode::CaseOptions

Case options to pass to various Char and String methods such as upcase or downcase.

Members

ASCII = 1

Only transform ASCII characters.

Turkic = 2

Use Turkic case rules:

'İ'.downcase(Unicode::CaseOptions::Turkic) # => 'i'
'I'.downcase(Unicode::CaseOptions::Turkic) # => 'ı'
'i'.upcase(Unicode::CaseOptions::Turkic)   # => 'İ'
'ı'.upcase(Unicode::CaseOptions::Turkic)   # => 'I'

Fold = 4

Unicode case folding, which is more far-reaching than Unicode case mapping.

Methods

#ascii?

View source

#fold?

View source

#none?

View source

#turkic?

View source