2013-03-17 05:24:18 +00:00
|
|
|
|
|
|
|
module Char where
|
|
|
|
|
|
|
|
import Native.Char as N
|
|
|
|
|
2013-05-17 10:49:31 +00:00
|
|
|
-- True for upper case letters.
|
2013-03-17 05:24:18 +00:00
|
|
|
isUpper : Char -> Bool
|
|
|
|
|
2013-05-17 10:49:31 +00:00
|
|
|
-- True for lower case letters.
|
2013-03-17 05:24:18 +00:00
|
|
|
isLower : Char -> Bool
|
|
|
|
|
2013-05-17 10:49:31 +00:00
|
|
|
-- True for ASCII digits (`0..9`).
|
2013-03-17 05:24:18 +00:00
|
|
|
isDigit : Char -> Bool
|
|
|
|
|
2013-05-17 10:49:31 +00:00
|
|
|
-- True for ASCII octal digits (`0..7`).
|
2013-03-17 05:24:18 +00:00
|
|
|
isOctDigit : Char -> Bool
|
|
|
|
|
2013-05-17 10:49:31 +00:00
|
|
|
-- True for ASCII hexadecimal digits (`0..9a..fA..F`).
|
2013-03-17 05:24:18 +00:00
|
|
|
isHexDigit : Char -> Bool
|
|
|
|
|
|
|
|
-- Convert to upper case.
|
|
|
|
toUpper : Char -> Char
|
|
|
|
|
|
|
|
-- Convert to lower case.
|
|
|
|
toLower : Char -> Char
|
|
|
|
|
|
|
|
-- Convert to upper case, according to any locale-specific case mappings.
|
|
|
|
toLocaleUpper : Char -> Char
|
|
|
|
|
|
|
|
-- Convert to lower case, according to any locale-specific case mappings.
|
|
|
|
toLocaleLower : Char -> Char
|
|
|
|
|
|
|
|
-- Convert to unicode.
|
2013-03-24 02:30:49 +00:00
|
|
|
toCode : Char -> KeyCode
|
2013-03-17 05:24:18 +00:00
|
|
|
|
|
|
|
-- Convert from unicode.
|
2013-03-24 02:30:49 +00:00
|
|
|
fromCode : KeyCode -> Char
|
2013-03-17 05:24:18 +00:00
|
|
|
|