charset-0.3.7.1: Fast unicode character sets based on complemented PATRICIA tries

Copyright | (c) Edward Kmett 2010-2012
License | BSD3
Maintainer | ekmett@gmail.com
Stability | experimental
Portability | DeriveDataTypeable
Safe Haskell | Safe
Language | Haskell98

Data.CharSet.Unicode.Category

Contents

- Unicode General Category
- Lookup
- CharSets by Category
  - Letter
    - Letter&
  - Mark
  - Separator
  - Symbol
  - Number
  - Punctuation
  - Other

Description

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.

Synopsis

- data Category = Category {
  - categoryName :: String
  - categoryAbbreviation :: String
  - categoryCharSet :: CharSet
  - categoryDescription :: String
  }
- 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

data Category Source

Constructors

Category |

Fields

categoryName :: String
categoryAbbreviation :: String
categoryCharSet :: CharSet
categoryDescription :: String

Instances

Data Category Source |
Show Category Source |

# Lookup

categories :: [Category] Source

lookupCategory :: String -> Maybe Category Source

lookupCategoryCharSet :: String -> Maybe CharSet Source

# CharSets by Category

## Letter

modifierLetter :: CharSet Source

otherLetter :: CharSet Source

letter :: CharSet Source

### Letter&

lowercaseLetter :: CharSet Source

uppercaseLetter :: CharSet Source

titlecaseLetter :: CharSet Source

letterAnd :: CharSet Source

## Mark

nonSpacingMark :: CharSet Source

spacingCombiningMark :: CharSet Source

enclosingMark :: CharSet Source

mark :: CharSet Source

## Separator

space :: CharSet Source

lineSeparator :: CharSet Source

paragraphSeparator :: CharSet Source

separator :: CharSet Source

## Symbol

mathSymbol :: CharSet Source

currencySymbol :: CharSet Source

modifierSymbol :: CharSet Source

otherSymbol :: CharSet Source

symbol :: CharSet Source

## Number

decimalNumber :: CharSet Source

letterNumber :: CharSet Source

otherNumber :: CharSet Source

number :: CharSet Source

## Punctuation

dashPunctuation :: CharSet Source

openPunctuation :: CharSet Source

closePunctuation :: CharSet Source

initialQuote :: CharSet Source

finalQuote :: CharSet Source

connectorPunctuation :: CharSet Source

otherPunctuation :: CharSet Source

punctuation :: CharSet Source

## Other

control :: CharSet Source

format :: CharSet Source

privateUse :: CharSet Source

surrogate :: CharSet Source

notAssigned :: CharSet Source

other :: CharSet Source