unicode-data-names-0.4.0: Unicode characters names and aliases
Copyright(c) 2024 Composewell Technologies and Contributors
LicenseApache-2.0
Maintainerstreamly@composewell.com
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unicode.Internal.Char.Label

Description

 
Synopsis

Documentation

label :: Char -> IO CStringLen Source #

Returns the label of a code point if it has no character name, otherwise returns "UNDEFINED".

See subsection “Code Point Labels” in section 4.8 “Name” of the Unicode Standard.

Since: 0.4.0

addHexCodePoint Source #

Arguments

:: CString

Destination ASCII string

-> Int#

String length

-> Int#

Index

-> Char

Character which code point will be added to the string

-> IO Int

New size of the string

Appned the code point of a character using the Unicode Standard convention: hexadecimal codepoint padded with zeros if inferior to 4 characters.

It is the responsability of the caller to provide a CString that can hold up to 6 characters from the provided index.

intToDigiT :: Int# -> CChar Source #

Convert an Int# in the range 0..15 to the corresponding single digit CChar in upper case.

Undefined for numbers outside the 0..15 range.