Copyright | (c) 2024 Pierre Le Marre |
---|---|
Maintainer | dev@wismill.eu |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Unicode.CharacterDatabase.Parser.SpecialCasing
Description
Parser for SpecialCasing.txt
Since: 0.3.0
Synopsis
- parse :: HasCallStack => ByteString -> [Entry]
- data Entry = Entry {
- char :: !Char
- specialCasing :: !SpecialCasing
- data SpecialCasing = SpecialCasing {
- lower :: ![Char]
- title :: ![Char]
- upper :: ![Char]
- conditions :: ![SpecialCasingCondition]
- newtype SpecialCasingCondition = SpecialCasingCondition ShortByteString
Documentation
parse :: HasCallStack => ByteString -> [Entry] Source #
A parser for SpecialCasing.txt
file
Since: 0.3.0
An entry from SpecialCasing.txt
file
>>>
parse "00DF; 00DF; 0053 0073; 0053 0053; # LATIN SMALL LETTER SHARP S"
[Entry {char = '\223', specialCasing = SpecialCasing {lower = "\223", title = "Ss", upper = "SS", conditions = []}}]>>>
parse "03A3; 03C2; 03A3; 03A3; Final_Sigma; # GREEK CAPITAL LETTER SIGMA"
[Entry {char = '\931', specialCasing = SpecialCasing {lower = "\962", title = "\931", upper = "\931", conditions = ["Final_Sigma"]}}]
Since: 0.3.0
Constructors
Entry | |
Fields
|
data SpecialCasing Source #
Special casings of a character
Since: 0.3.0
Constructors
SpecialCasing | |
Fields
|
Instances
Show SpecialCasing Source # | |
Defined in Unicode.CharacterDatabase.Parser.SpecialCasing Methods showsPrec :: Int -> SpecialCasing -> ShowS # show :: SpecialCasing -> String # showList :: [SpecialCasing] -> ShowS # | |
Eq SpecialCasing Source # | |
Defined in Unicode.CharacterDatabase.Parser.SpecialCasing Methods (==) :: SpecialCasing -> SpecialCasing -> Bool # (/=) :: SpecialCasing -> SpecialCasing -> Bool # |
newtype SpecialCasingCondition Source #
Special casing condition
Since: 0.3.0
Constructors
SpecialCasingCondition ShortByteString |
Instances
Show SpecialCasingCondition Source # | |
Defined in Unicode.CharacterDatabase.Parser.SpecialCasing Methods showsPrec :: Int -> SpecialCasingCondition -> ShowS # show :: SpecialCasingCondition -> String # showList :: [SpecialCasingCondition] -> ShowS # | |
Eq SpecialCasingCondition Source # | |
Defined in Unicode.CharacterDatabase.Parser.SpecialCasing Methods (==) :: SpecialCasingCondition -> SpecialCasingCondition -> Bool # (/=) :: SpecialCasingCondition -> SpecialCasingCondition -> Bool # |