Module Char

Library with some useful functions on characters.

Author: Michael Hanus, Bjoern Peemoeller

Version: January 2015

Summary of exported operations:

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.

Exported operations:

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.