Module Data.Char

Library with some useful functions on characters.

Category
general
Author
Michael Hanus, Bjoern Peemoeller
Version
January 2015

Exported Functions: digitToInt, intToDigit, isAscii, isAsciiLower, isAsciiUpper, isControl, isLatin1, toLower, toUpper


Exported Functions


isAscii :: Char -> Bool  Deterministic 

Returns true if the argument is an ASCII character.


isLatin1 :: Char -> Bool  Deterministic 

Returns true if the argument is an Latin-1 character.


isAsciiLower :: Char -> Bool  Deterministic 

Returns true if the argument is an ASCII lowercase letter.


isAsciiUpper :: Char -> Bool  Deterministic 

Returns true if the argument is an ASCII uppercase letter.


isControl :: Char -> Bool  Deterministic 

Returns true if the argument is a control character.


toUpper :: Char -> Char  Deterministic 

Converts lowercase into uppercase letters.

Further infos:
  • partially defined

toLower :: Char -> Char  Deterministic 

Converts uppercase into lowercase letters.

Further infos:
  • partially defined

digitToInt :: Char -> Int  Deterministic 

Converts a (hexadecimal) digit character into an integer.

Further infos:
  • partially defined

intToDigit :: Int -> Char  Deterministic 

Converts an integer into a (hexadecimal) digit character.

Further infos:
  • partially defined