Name

wctype function — Constructs a wctype_t object

Synopsis

wctype_t wctype(const char* property)

The wctype function constructs a wctype_t object that describes wide characters that have the given property. Table 13-8 lists the properties that are supported by this standard.

Table 13-8. Character classification properties

Property

Description

"alnum"

Alphanumeric

"alpha"

Alphabetic

"cntrl"

Control

"digit"

Digit

"graph"

Non-space printable

"lower"

Lowercase

"print"

Printable or whitespace

"punct"

Punctuation

"space"

Whitespace

"upper"

Uppercase

"xdigit"

Hexadecimal digit

Get C++ In a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.