unicode-data-parser-0.3.0: Parsers for Unicode Character Database (UCD) files
Copyright(c) 2024 Pierre Le Marre
Maintainerdev@wismill.eu
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageGHC2021

Unicode.CharacterDatabase.Parser.Properties.Single

Description

Parser for properties files with a single property, such as:

Since: 0.1.0

Synopsis

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

data Entry Source #

An entry from a properties file with one value per entry

Since: 0.1.0

Constructors

Entry 

Instances

Instances details
Show Entry Source # 
Instance details

Defined in Unicode.CharacterDatabase.Parser.Properties.Single

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

Eq Entry Source # 
Instance details

Defined in Unicode.CharacterDatabase.Parser.Properties.Single

Methods

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

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

parseMultipleValues :: ByteString -> [EntryMultipleValues] Source #

A parser for properties files with multiple values per entry

Since: 0.1.0