Facebook Page Twitter Page LinkedIn Page
× C++ Standard Library C++ STL Library


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() 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.

Library Types

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

Library Macros

Macro constants

MacrosDescription
WEOF Wide End-of-File.