word8-0.0.4: Word8 library

Safe Haskell | None

Data.Char8

Contents

- Character classification
- Subranges
- Case conversion

Description

Char8 library to be used with Data.ByteString.Char8. All function assumes that only 8bit part of `Char` is used and it is encoded in Latin-1 (ISO-8859-1). All utility functions are supposed to work as if those of `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

isControl :: Char -> Bool Source

isSpace :: Char -> Bool Source

isLower :: Char -> Bool Source

isUpper :: Char -> Bool Source

isAlpha :: Char -> Bool Source

isAlphaNum :: Char -> Bool Source

isPrint :: Char -> Bool Source

isDigit :: Char -> Bool Source

isOctDigit :: Char -> Bool Source

isHexDigit :: Char -> Bool Source

isLetter :: Char -> Bool Source

isMark :: Char -> Bool Source

isNumber :: Char -> Bool Source

isPunctuation :: Char -> Bool Source

isSymbol :: Char -> Bool Source

isSeparator :: Char -> Bool Source

# Subranges

isAscii :: Char -> Bool Source

isLatin1 :: Char -> Bool Source

isAsciiUpper :: Char -> Bool Source

isAsciiLower :: Char -> Bool Source

# Case conversion

toUpper :: Char -> Char Source

Micro sign/mu (0xb5) and small letter Y with diaeresis (0xff) remain the same.

toLower :: Char -> Char Source

toTitle :: Char -> Char Source

Micro sign/mu (0xb5) and small letter Y with diaeresis (0xff) remain the same.