Library with some useful functions on characters.
Author: Michael Hanus, Bjoern Peemoeller
Version: January 2015
isAscii
:: Char -> Bool
Returns true if the argument is an ASCII character. |
isLatin1
:: Char -> Bool
Returns true if the argument is an Latin-1 character. |
isAsciiLower
:: Char -> Bool
Returns true if the argument is an ASCII lowercase letter. |
isAsciiUpper
:: Char -> Bool
Returns true if the argument is an ASCII uppercase letter. |
isControl
:: Char -> Bool
Returns true if the argument is a control character. |
isUpper
:: Char -> Bool
Returns true if the argument is an uppercase letter. |
isLower
:: Char -> Bool
Returns true if the argument is an lowercase letter. |
isAlpha
:: Char -> Bool
Returns true if the argument is a letter. |
isDigit
:: Char -> Bool
Returns true if the argument is a decimal digit. |
isAlphaNum
:: Char -> Bool
Returns true if the argument is a letter or digit. |
isBinDigit
:: Char -> Bool
Returns true if the argument is a binary digit. |
isOctDigit
:: Char -> Bool
Returns true if the argument is an octal digit. |
isHexDigit
:: Char -> Bool
Returns true if the argument is a hexadecimal digit. |
isSpace
:: Char -> Bool
Returns true if the argument is a white space. |
toUpper
:: Char -> Char
Converts lowercase into uppercase letters. |
toLower
:: Char -> Char
Converts uppercase into lowercase letters. |
digitToInt
:: Char -> Int
Converts a (hexadecimal) digit character into an integer. |
intToDigit
:: Int -> Char
Converts an integer into a (hexadecimal) digit character. |
Returns true if the argument is an ASCII character. |
Returns true if the argument is an Latin-1 character. |
Returns true if the argument is an ASCII lowercase letter. |
Returns true if the argument is an ASCII uppercase letter. |
Returns true if the argument is a control character. |
Returns true if the argument is an uppercase letter. |
Returns true if the argument is an lowercase letter. |
Returns true if the argument is a letter. |
Returns true if the argument is a decimal digit. |
Returns true if the argument is a letter or digit. |
Returns true if the argument is a binary digit. |
Returns true if the argument is an octal digit. |
Returns true if the argument is a hexadecimal digit. |
Returns true if the argument is a white space. |
Converts lowercase into uppercase letters. |
Converts uppercase into lowercase letters. |
Converts a (hexadecimal) digit character into an integer. |
Converts an integer into a (hexadecimal) digit character. |