C++ Standard Library C++ STL Library

C++ - <cwctype> (wctype.h)



The C++ has a number of functions that can be used to classify and transform individual wide characters. These functions are available to use in a current program after including the header file using - #include <cwctype> or #include <wctype.h>. This header is part of the null-terminated wide strings library. All functions of this header file are listed below:

Library Functions

Character classification functions

FunctionsDescription
iswalnum() Check if wide character is alphanumeric.
iswalpha() Check if wide character is alphabetic.
iswblank() (C++11) Check if wide character is blank.
iswcntrl() Check if wide character is a control character.
iswdigit() Check if wide character is decimal digit.
iswgraph() Check if wide character has graphical representation.
iswlower() Check if wide character is lowercase letter.
iswprint() Check if wide character is printable.
iswpunct() Check if wide character is a punctuation character.
iswspace() Check if wide character is a whitespace.
iswupper() Check if wide character is uppercase letter.
iswxdigit() Check if character is wide hexadecimal digit.

Character conversion functions

FunctionsDescription
towlower() Convert uppercase wide character to lowercase.
towupper() Convert lowercase wide character to uppercase.

Extensible classification/conversion functions

FunctionsDescription
iswctype() Check if wide character has property.
towctrans() Convert using transformation.
wctrans() Return character transformation.
wctype() Return character property.

Library Types

ConstantsDescription
wctrans_t Wide character transformation.
wctype_t Wide character type.
wint_t Wide character integer type.

Library Macros

Macro constants

MacrosDescription
WEOF Wide End-of-File.