Copyright | (c) 2024 Pierre Le Marre |
---|---|
Maintainer | [email protected] |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Unicode.CharacterDatabase.Parser.PropertyValueAliases
Description
Parser for PropertyValueAliases.txt
Since: 0.3.0
Synopsis
- parse :: HasCallStack => ByteString -> [Entry]
- data Entry = Entry {}
- data PropertyValue = PropertyValue {
- shortName :: !ShortByteString
- longName :: !ShortByteString
- numericValue :: !(Maybe Word8)
- aliases :: ![ShortByteString]
Documentation
parse :: HasCallStack => ByteString -> [Entry] Source #
A parser for PropertyValueAliases.txt
file
Since: 0.3.0
An entry from PropertyValueAliases.txt
file
>>>
parse "age; 1.1 ; V1_1"
[Entry {property = "age", value = PropertyValue {shortName = "1.1", longName = "V1_1", numericValue = Nothing, aliases = []}}]>>>
parse "Alpha; N ; No ; F ; False"
[Entry {property = "Alpha", value = PropertyValue {shortName = "N", longName = "No", numericValue = Nothing, aliases = ["F","False"]}}]>>>
parse "blk; Aegean_Numbers ; Aegean_Numbers"
[Entry {property = "blk", value = PropertyValue {shortName = "Aegean_Numbers", longName = "Aegean_Numbers", numericValue = Nothing, aliases = []}}]>>>
parse "ccc; 0; NR ; Not_Reordered"
[Entry {property = "ccc", value = PropertyValue {shortName = "NR", longName = "Not_Reordered", numericValue = Just 0, aliases = []}}]>>>
parse "ccc; 133; CCC133 ; CCC133 # RESERVED"
[Entry {property = "ccc", value = PropertyValue {shortName = "CCC133", longName = "CCC133", numericValue = Just 133, aliases = []}}]
Since: 0.3.0
Constructors
Entry | |
Fields
|
data PropertyValue Source #
Constructors
PropertyValue | |
Fields
|
Instances
Show PropertyValue Source # | |
Defined in Unicode.CharacterDatabase.Parser.PropertyValueAliases Methods showsPrec :: Int -> PropertyValue -> ShowS # show :: PropertyValue -> String # showList :: [PropertyValue] -> ShowS # | |
Eq PropertyValue Source # | |
Defined in Unicode.CharacterDatabase.Parser.PropertyValueAliases Methods (==) :: PropertyValue -> PropertyValue -> Bool # (/=) :: PropertyValue -> PropertyValue -> Bool # |