util.uni

Simple Unicode character classification functions. References: ASCII Table, Wikipedia, The Unicode Consortium Trademarks: Unicode™ is a trademark of Unicode, Inc.

Members

Functions

isUniAlpha
int isUniAlpha(dchar u)

Returns non-zero if u is a Unicode alpha character. (General Unicode category: Lu, Ll, Lt, Lm and Lo)

isUniLower
int isUniLower(dchar c)

Returns non-zero if c is a Unicode lower case character.

isUniUpper
int isUniUpper(dchar c)

Returns non-zero if c is a Unicode upper case character.

toUniLower
dchar toUniLower(dchar c)

If c is a Unicode upper case character, return the lower case equivalent, otherwise return c.

toUniUpper
dchar toUniUpper(dchar c)

If c is a Unicode lower case character, return the upper case equivalent, otherwise return c.

Static variables

uniAlphaTable
dchar[2][] uniAlphaTable;

A sorted list of Unicode ranges that define valid UniAlpha characters.

Meta