Traditional Chinese Solaris User's Guide

Traditional Chinese Test Utilities

Every utility listed in this section is supported, but for this version of Solaris, you are encouraged to use the XPG4 internationalization APIs as described in the International Language Environments Guide.

The utilities in the following table test various aspects of the Traditional Chinese (CNS 11643) national standard character set. These utilities also assume that the character being tested is part of the national standard character set. Each utility returns true if the character meets the test requirement referenced in the description.

The arguments for the functions in the following table must be characters in wide character code (WC), wchar_t. For more information, see Asian-Specific Utilities and the hctype(3x) man page.

Table A–1 Traditional Chinese Test Utilities

Utility 

Description 

ishalpha

Tests for a Roman character in the CNS 11643 character set. 

ishupper

Tests for an uppercase Roman character as defined by the CNS 11643 character set. 

ishlower

Tests for a lowercase Roman character in the CNS 11643 character set. 

ishdigit

Tests for a number in the CNS 11643 character set. 

ishspace

Tests for the space character in the CNS 11643 character set. 

ishpunct

Tests for a punctuation character in the CNS 11643 character set. 

ishparen

Tests for a left or right parenthesis in the CNS 11643 character set. 

ishphontone

Tests for a Mandarin phonetic tone. 

ishradical

Tests for a Chinese character radical. 

ishline

Tests for a ruled line symbol in the CNS 11643 character set. 

ishunit

Tests for a unit character in the CNS 11643 character set. 

ishsci

Tests for a scientific symbol in the CNS 11643 character set. 

ishgen

Tests for a general symbol in the CNS 11643 character set. 

ishgreek

Tests for a Greek character in the CNS 11643 character set.