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

Unicode.CharacterDatabase.Parser.SpecialCasing

Description

Parser for SpecialCasing.txt

Since: 0.3.0

Synopsis

Documentation

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

A parser for SpecialCasing.txt file

Since: 0.3.0

data Entry Source #

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

Constructors

Entry 

Instances

Instances details
Show Entry Source # 
Instance details

Defined in Unicode.CharacterDatabase.Parser.SpecialCasing

Methods

showsPrec :: Int -> Entry -> ShowS #

show :: Entry -> String #

showList :: [Entry] -> ShowS #

Eq Entry Source # 
Instance details

Defined in Unicode.CharacterDatabase.Parser.SpecialCasing

Methods

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

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

data SpecialCasing Source #

Special casings of a character

Since: 0.3.0

Constructors

SpecialCasing 

Fields