Copyright | (c) 2020 Composewell Technologies and Contributors |
---|---|
License | Apache-2.0 |
Maintainer | streamly@composewell.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
This module provides APIs to access the Unicode character database (UCD) corresponding to Unicode Standard version 14.0.0.
This module re-exports several sub-modules under it. The sub-module
structure under Char
is largely based on the
"Property Index by Scope of Use" in Unicode® Standard Annex #44.
The Unicode.Char.*
modules in turn depend on Unicode.Internal.Char.*
modules which are programmatically generated from the Unicode standard's
Unicode character database files. The module structure under
Unicode.Internal.Char
is largely based on the UCD text file names from
which the properties are generated.
For the original UCD files used in this code please refer to the UCD
section on the Unicode standard page. See
https://www.unicode.org/reports/tr44/ to understand the contents and the
format of the unicode database files.
Synopsis
- module Unicode.Char.General
- isAlpha :: Char -> Bool
- module Unicode.Char.Case
- toUpper :: Char -> Char
- toLower :: Char -> Char
- toTitle :: Char -> Char
- module Unicode.Char.Numeric
- module Unicode.Char.Normalization
- module Unicode.Char.Identifiers
- unicodeVersion :: Version
- ord :: Char -> Int
- chr :: Int -> Char
Documentation
module Unicode.Char.General
module Unicode.Char.Case
toUpper :: Char -> Char Source #
Convert a letter to the corresponding upper-case letter, if any. Any other character is returned unchanged.
toUpper c == Data.Char.toUpper c
Since: 0.3.0
toLower :: Char -> Char Source #
Convert a letter to the corresponding lower-case letter, if any. Any other character is returned unchanged.
toLower c == Data.Char.toLower c
Since: 0.3.0
toTitle :: Char -> Char Source #
Convert a letter to the corresponding title-case or upper-case letter, if any. (Title case differs from upper case only for a small number of ligature letters.) Any other character is returned unchanged.
toTitle c == Data.Char.toTitle c
Since: 0.3.0
module Unicode.Char.Numeric
module Unicode.Char.Normalization
module Unicode.Char.Identifiers
unicodeVersion :: Version Source #
Version of Unicode standard used by unicode-data
.
Since: 0.3.0