12.3 Wide Character Classes

The iswctype and wctype functions use the values in the wctype_t enumeration to specify character class. This enumeration has the following values.

Constant

Value

Description

WCTYPE_UNDEF

0

Character class is not defined.

WCTYPE_ALNUM

1

Alphabetic or numeric class.

WCTYPE_ALPHA

2

Alphabetic class.

WCTYPE_BLANK

3

Blank class.

WCTYPE_CNTRL

4

Control character class.

WCTYPE_DIGIT

5

Decimal digit class.

WCTYPE_GRAPH

6

Graphical class.

WCTYPE_LOWER

7

Lowercase alphabetic class.

WCTYPE_PRINT

8

Printable class.

WCTYPE_PUNCT

9

Punctuation mark class.

WCTYPE_SPACE

10

Whitespace character class.

WCTYPE_UPPER

11

Uppercase alphabetic class.

WCTYPE_XDIGIT

12

Hexadecimal class, including the digits 0-9 and the alphabetical characters of a to f (or A to F)