Copyright | (c) 2024 Pierre Le Marre |
---|---|
Maintainer | dev@wismill.eu |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
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
Entry | |
|
data SpecialCasing Source #
Special casings of a character
Since: 0.3.0
SpecialCasing | |
|
Instances
Show SpecialCasing Source # | |
Defined in Unicode.CharacterDatabase.Parser.SpecialCasing showsPrec :: Int -> SpecialCasing -> ShowS # show :: SpecialCasing -> String # showList :: [SpecialCasing] -> ShowS # | |
Eq SpecialCasing Source # | |
Defined in Unicode.CharacterDatabase.Parser.SpecialCasing (==) :: SpecialCasing -> SpecialCasing -> Bool # (/=) :: SpecialCasing -> SpecialCasing -> Bool # |
newtype SpecialCasingCondition Source #
Special casing condition
Since: 0.3.0