Copyright | (c) 2024 Pierre Le Marre |
---|---|
Maintainer | dev@wismill.eu |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
Parser for properties files with a single property, such as:
Since: 0.1.0
Synopsis
- parse :: ByteString -> [Entry]
- data Entry = Entry {
- range :: !CodePointRange
- value :: !ShortByteString
- parseMultipleValues :: ByteString -> [EntryMultipleValues]
- data EntryMultipleValues = EntryMultipleValues {
- range :: !CodePointRange
- values :: !(NonEmpty ShortByteString)
Documentation
parse :: ByteString -> [Entry] Source #
A parser for properties files with one value per entry
>>>
parse "102E0 ; Arab Copt # Mn COPTIC EPACT THOUSANDS MARK"
[Entry {range = SingleChar {start = '\66272'}, value = "Arab Copt"}]>>>
parse "1CF7 ; Beng # Mc VEDIC SIGN ATIKRAMA"
[Entry {range = SingleChar {start = '\7415'}, value = "Beng"}]>>>
parse "1CDE..1CDF ; Deva # Mn [2] VEDIC TONE TWO DOTS BELOW..VEDIC TONE THREE DOTS BELOW"
[Entry {range = CharRange {start = '\7390', end = '\7391'}, value = "Deva"}]>>>
parse "1CD0 ; Beng Deva Gran Knda # Mn VEDIC TONE KARSHANA"
[Entry {range = SingleChar {start = '\7376'}, value = "Beng Deva Gran Knda"}]
Since: 0.1.0
An entry from a properties file with one value per entry
Since: 0.1.0
Entry | |
|
parseMultipleValues :: ByteString -> [EntryMultipleValues] Source #
A parser for properties files with multiple values per entry
Since: 0.1.0
data EntryMultipleValues Source #
An entry from a properties file with multiple values per entry
Since: 0.1.0
Instances
Show EntryMultipleValues Source # | |
Defined in Unicode.CharacterDatabase.Parser.Properties.Single showsPrec :: Int -> EntryMultipleValues -> ShowS # show :: EntryMultipleValues -> String # showList :: [EntryMultipleValues] -> ShowS # | |
Eq EntryMultipleValues Source # | |
Defined in Unicode.CharacterDatabase.Parser.Properties.Single (==) :: EntryMultipleValues -> EntryMultipleValues -> Bool # (/=) :: EntryMultipleValues -> EntryMultipleValues -> Bool # |