unicode-data-parser-0.3.0.2: Parsers for Unicode Character Database (UCD) files
Copyright(c) 2024 Pierre Le Marre
Maintainer[email protected]
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageGHC2021

Unicode.CharacterDatabase.Parser.PropertyValueAliases

Description

Parser for PropertyValueAliases.txt

Since: 0.3.0

Synopsis

Documentation

parse :: HasCallStack => ByteString -> [Entry] Source #

A parser for PropertyValueAliases.txt file

Since: 0.3.0

data Entry Source #

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 

Instances

Instances details
Show Entry Source # 
Instance details

Defined in Unicode.CharacterDatabase.Parser.PropertyValueAliases

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

Eq Entry Source # 
Instance details

Defined in Unicode.CharacterDatabase.Parser.PropertyValueAliases

Methods

(==) :: Entry -> Entry -> Bool #

(/=) :: Entry -> Entry -> Bool #