elm-lang/core/2.0.0

NOTE: this package moved to elm/core

NOTE: this package is not compatible with Elm 0.19.1

Char

Functions for working with characters. Character literals are enclosed in 'a' pair of single quotes.

Classification

isUpper : Char -> Bool

True for upper case letters.

isLower : Char -> Bool

True for lower case letters.

isDigit : Char -> Bool

True for ASCII digits [0-9].

isOctDigit : Char -> Bool

True for ASCII octal digits [0-7].

isHexDigit : Char -> Bool

True for ASCII hexadecimal digits [0-9a-fA-F].

Conversion

toUpper : Char -> Char

Convert to upper case.

toLower : Char -> Char

Convert to lower case.

toLocaleUpper : Char -> Char

Convert to upper case, according to any locale-specific case mappings.

toLocaleLower : Char -> Char

Convert to lower case, according to any locale-specific case mappings.

toCode : Char -> KeyCode

Convert to unicode. Used with the Keyboard library, which expects the input to be uppercase.

fromCode : KeyCode -> Char

Convert from unicode.