| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Char8
Description
Char8 library to be used with Data.ByteString.Char8.
All functions assume that Char is in the Latin-1 range (ISO-8859-1).
All utility functions are supposed to work like
those of Data.Char. Exceptions are described in
the function documentations.
Synopsis
- isControl :: Char -> Bool
- isSpace :: Char -> Bool
- isLower :: Char -> Bool
- isUpper :: Char -> Bool
- isAlpha :: Char -> Bool
- isAlphaNum :: Char -> Bool
- isPrint :: Char -> Bool
- isDigit :: Char -> Bool
- isOctDigit :: Char -> Bool
- isHexDigit :: Char -> Bool
- isLetter :: Char -> Bool
- isMark :: Char -> Bool
- isNumber :: Char -> Bool
- isPunctuation :: Char -> Bool
- isSymbol :: Char -> Bool
- isSeparator :: Char -> Bool
- isAscii :: Char -> Bool
- isLatin1 :: Char -> Bool
- isAsciiUpper :: Char -> Bool
- isAsciiLower :: Char -> Bool
- toUpper :: Char -> Char
- toLower :: Char -> Char
- toTitle :: Char -> Char
Character classification
isLower :: Char -> Bool Source #
Is it a lower case character
This function returns False for 170 (ª) and 186 (º).
isAlphaNum :: Char -> Bool Source #
Is it an alphabet letter or a number
isOctDigit :: Char -> Bool Source #
Is the character an octal digit (0-7)
isHexDigit :: Char -> Bool Source #
Is the character a hexadecimal digit (0-9a-fA-F)
isPunctuation :: Char -> Bool Source #
Is it a punctuation character
This function returns True for 167 (§) and 182 (¶).
isSymbol :: Char -> Bool Source #
Is it a symbol character
This function returns False for 167 (§) and 182 (¶).
isSeparator :: Char -> Bool Source #
Is it a (non-breaking) space
Subranges
isAsciiUpper :: Char -> Bool Source #
Is the character an upper case ASCII letter (A-Z)
isAsciiLower :: Char -> Bool Source #
Is the character a lower case ASCII letter (a-z)