Portability | DeriveDataTypeable |
---|---|
Stability | experimental |
Maintainer | ekmett@gmail.com |
Safe Haskell | Safe-Inferred |
Provides unicode general categories, which are typically connoted by
p{Ll}
or p{Modifier_Letter}
. Lookups can be constructed using categories
or individual character sets can be used directly.
A case, _
and -
insensitive lookup is provided by lookupCategory
and can be used to provide behavior similar to that of Perl or PCRE.
- data Category = Category {}
- categories :: [Category]
- lookupCategory :: String -> Maybe Category
- lookupCategoryCharSet :: String -> Maybe CharSet
- modifierLetter :: CharSet
- otherLetter :: CharSet
- letter :: CharSet
- lowercaseLetter :: CharSet
- uppercaseLetter :: CharSet
- titlecaseLetter :: CharSet
- letterAnd :: CharSet
- nonSpacingMark :: CharSet
- spacingCombiningMark :: CharSet
- enclosingMark :: CharSet
- mark :: CharSet
- space :: CharSet
- lineSeparator :: CharSet
- paragraphSeparator :: CharSet
- separator :: CharSet
- mathSymbol :: CharSet
- currencySymbol :: CharSet
- modifierSymbol :: CharSet
- otherSymbol :: CharSet
- symbol :: CharSet
- decimalNumber :: CharSet
- letterNumber :: CharSet
- otherNumber :: CharSet
- number :: CharSet
- dashPunctuation :: CharSet
- openPunctuation :: CharSet
- closePunctuation :: CharSet
- initialQuote :: CharSet
- finalQuote :: CharSet
- connectorPunctuation :: CharSet
- otherPunctuation :: CharSet
- punctuation :: CharSet
- control :: CharSet
- format :: CharSet
- privateUse :: CharSet
- surrogate :: CharSet
- notAssigned :: CharSet
- other :: CharSet
Unicode General Category
Lookup
categories :: [Category]Source