Library with some useful functions on characters.
Author: Michael Hanus
Version: November 2001
Functions:
digitToInt
| intToDigit
| isAlpha
| isAlphaNum
| isDigit
| isHexDigit
| isLower
| isOctDigit
| isSpace
| isUpper
| toLower
| toUpper
|
Summary of exported functions:
|
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.
|
|
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.
|
|
Prelude
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.
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.
-
Further infos:
-
toLower :: Char -> Char
Converts uppercase into lowercase letters.
-
Further infos:
-
digitToInt :: Char -> Int
Converts a (hexadecimal) digit character into an integer.
-
Further infos:
-
intToDigit :: Int -> Char
Converts an integer into a (hexadecimal) digit character.
-
Further infos:
-
Generated by CurryDoc
(Version 0.4.1 of June 7, 2007) at Aug 28 15:25:42 2008