unicode-data-0.3.0: Access Unicode character database
Copyright(c) 2020 Composewell Technologies and Contributors
LicenseApache-2.0
Maintainerstreamly@composewell.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Unicode.Char

Contents

Description

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

Documentation

isAlpha :: Char -> Bool Source #

Same as isLetter.

Since: 0.3.0

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

unicodeVersion :: Version Source #

Version of Unicode standard used by unicode-data.

Since: 0.3.0

Re-export

ord :: Char -> Int #

The fromEnum method restricted to the type Char.

chr :: Int -> Char #

The toEnum method restricted to the type Char.