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.Common

Description

Miscellaneous bits common to various parsers

Synopsis

Code point

parseCodePoint :: ShortByteString -> Char Source #

Parse a code point formatted as hexadecimal

Warning: raise an error on invalid input.

>>> parseCodePoint "0061"
'a'

Since: 0.1.0

parseCodePointList :: ShortByteString -> [Char] Source #

Parse a list of code points

Range

Numeric value

data NumericValue Source #

Numeric value of a code point, if relevant

Since: 0.1.0

Miscellaneous

parseList :: ShortByteString -> [ShortByteString] Source #

Parse space-separated list, similar to words.