Data.String.Unicode
- Package
- unicode
- Repository
- id3as/purescript-unicode
#toUpper Source
toUpper :: String -> String
Convert each code point in the string to its corresponding uppercase
sequence. This is the full (locale-independent) Unicode algorithm,
and may map single code points to more than one code point. For example,
toUpper "ß" == "SS"
.
Because this matches on more rules, it may be slower than toUpperSimple
,
but it provides more correct results.
#toLower Source
toLower :: String -> String
Convert each code point in the string to its corresponding lower
sequence. This is the full (locale-independent) Unicode algorithm,
and may map single code points to more than one code point. For example,
toLower "\x0130" == "\x0069\x0307"
.
Because this matches on more rules, it may be slower than toLowerSimple
,
but it provides more correct results.
#caselessMatch Source
caselessMatch :: String -> String -> Boolean
Caseless matching, based on caseFold
.
#toUpperSimple Source
toUpperSimple :: String -> String
Convert each code point in the string to its corresponding uppercase code point. This will preserve the number of code points in the string.
Note: this is not the full Unicode algorithm, see toUpper
.
#toLowerSimple Source
toLowerSimple :: String -> String
Convert each code point in the string to its corresponding lowercase code point. This will preserve the number of code points in the string.
Note: this is not the full Unicode algorithm, see toLower
.
#caseFoldSimple Source
caseFoldSimple :: String -> String
Convert each code point in the string to its corresponding case-folded code point. This will preserve the number of code points in the string.
Note: this is not the full Unicode algorithm, see caseFold
.