Copyright | (c) 2024 Composewell Technologies and Contributors |
---|---|
License | Apache-2.0 |
Maintainer | streamly@composewell.com |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Unicode.Internal.Char.Label
Description
Synopsis
- label :: Char -> IO CStringLen
- addHexCodePoint :: CString -> Int# -> Int# -> Char -> IO Int
- intToDigiT :: Int# -> CChar
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
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.