Module "Char.curry"

Library with some useful functions on characters.

Author: Michael Hanus

Version: November 2001


 Exported names:

Functions:
digitToInt | intToDigit | isAlpha | isAlphaNum | isDigit | isHexDigit | isLower | isOctDigit | isSpace | isUpper | toLower | toUpper


 Summary of exported functions:

isUpper  :: Char -> Bool  deterministic 
          Returns true if the argument is an uppercase letter.
isLower  :: Char -> Bool  deterministic 
          Returns true if the argument is an lowercase letter.
isAlpha  :: Char -> Bool  deterministic 
          Returns true if the argument is a letter.
isDigit  :: Char -> Bool  deterministic 
          Returns true if the argument is a decimal digit.
isAlphaNum  :: Char -> Bool  deterministic 
          Returns true if the argument is a letter or digit.
isOctDigit  :: Char -> Bool  deterministic 
          Returns true if the argument is an octal digit.
isHexDigit  :: Char -> Bool  deterministic 
          Returns true if the argument is a hexadecimal digit.
isSpace  :: Char -> Bool  deterministic 
          Returns true if the argument is a white space.
toUpper  :: Char -> Char  deterministic rigid
          Converts lowercase into uppercase letters.
toLower  :: Char -> Char  deterministic rigid
          Converts uppercase into lowercase letters.
digitToInt  :: Char -> Int  deterministic rigid
          Converts a (hexadecimal) digit character into an integer.
intToDigit  :: Int -> Char  deterministic rigid
          Converts an integer into a (hexadecimal) digit character.

 Imported modules:

Prelude

 Exported datatypes:


 Exported functions:

isUpper :: Char -> Bool  deterministic 

Returns true if the argument is an uppercase letter.


isLower :: Char -> Bool  deterministic 

Returns true if the argument is an lowercase letter.


isAlpha :: Char -> Bool  deterministic 

Returns true if the argument is a letter.


isDigit :: Char -> Bool  deterministic 

Returns true if the argument is a decimal digit.


isAlphaNum :: Char -> Bool  deterministic 

Returns true if the argument is a letter or digit.


isOctDigit :: Char -> Bool  deterministic 

Returns true if the argument is an octal digit.


isHexDigit :: Char -> Bool  deterministic 

Returns true if the argument is a hexadecimal digit.


isSpace :: Char -> Bool  deterministic 

Returns true if the argument is a white space.


toUpper :: Char -> Char  deterministic rigid

Converts lowercase into uppercase letters.

Further infos:
  • incompletely defined

toLower :: Char -> Char  deterministic rigid

Converts uppercase into lowercase letters.

Further infos:
  • incompletely defined

digitToInt :: Char -> Int  deterministic rigid

Converts a (hexadecimal) digit character into an integer.

Further infos:
  • incompletely defined

intToDigit :: Int -> Char  deterministic rigid

Converts an integer into a (hexadecimal) digit character.

Further infos:
  • incompletely defined


Generated by CurryDoc (Version 0.4.1 of June 7, 2007) at Nov 9 18:01:36 2009