std::iswpunct

Defined in header <cwctype> int iswpunct( std::wint_t ch ); Checks if the given wide character is a punctuation character, i.e. it is one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ or any punctuation character specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a punctuation character, zero otherwise. Example #include <iostream> #include <cwctype> #include <clocale> int

std::iswprint

Defined in header <cwctype> int iswprint( std::wint_t ch ); Checks if the given wide character can be printed, i.e. it is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), a punctuation character(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~), space or any printable character specific to the current C locale. Parameters ch - wide character Return value Non-zero value if the wide charac

std::iswlower

Defined in header <cwctype> int iswlower( std::wint_t ch ); Checks if the given wide character is a lowercase letter, i.e. one of abcdefghijklmnopqrstuvwxyz or any lowercase letter specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is an lowercase letter, zero otherwise. Example #include <iostream> #include <cwctype> #include <clocale> int main() { wchar_t c = L'\u0444';

std::iswgraph

Defined in header <cwctype> int iswgraph( std::wint_t ch ); Checks if the given wide character has a graphical representation, i.e. it is either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz), a punctuation character(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~) or any graphical character specific to the current C locale. Parameters ch - wide character Return value Non-zero value if the wi

std::iswdigit

Defined in header <cwctype> int iswdigit( wint_t ch ); Checks if the given wide character corresponds (if narrowed) to one of the ten decimal digit characters 0123456789. Parameters ch - wide character Return value Non-zero value if the wide character is an numeric character, zero otherwise. Notes std::iswdigit and std::iswxdigit are the only standard wide character classification functions that are not affected by the currently installed C locale. Exampl

std::iswctype

Defined in header <cwctype> int iswctype( std::wint_t wc, std::wctype_t desc ); Classifies the wide character wc using the current C locale's LC_CTYPE category identified by desc. Parameters wc - the wide character to classify desc - the LC_CTYPE category, obtained from a call to std::wctype Return value Non-zero if the character ch has the property identified by desc in LC_CTYPE facet of the current C locale, zero otherwise. Example #include <cl

std::iswcntrl

Defined in header <cwctype> int iswcntrl( std::wint_t ch ); Checks if the given wide character is a control character, i.e. codes 0x00-0x1F and 0x7F and any control characters specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a control character, zero otherwise. Example #include <iostream> #include <cwctype> #include <clocale> int main() { wchar_t c = L'\u2028'; // t

std::iswblank

Defined in header <cwctype> int iswblank( std::wint_t ch ); (since C++11) Checks if the given wide character is classified as blank character (that is, a whitespace character used to separate words in a sentence) by the current C locale. In the default C locale, only space (0x20) and horizontal tab (0x09) are blank characters. Parameters ch - wide character Return value Non-zero value if the wide character is a blank character, zero otherwise. Example #in

std::iswalpha

Defined in header <cwctype> int iswalpha( std::wint_t ch ); Checks if the given wide character is an alphabetic character, i.e. either an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz) or any alphabetic character specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a alphabetic character, 0 otherwise. Example #include <iostream> #include &l

std::iswalnum

Defined in header <cwctype> int iswalnum( std::wint_t ch ); Checks if the given wide character is an alphanumeric character, i.e. either a number (0123456789), an uppercase letter (ABCDEFGHIJKLMNOPQRSTUVWXYZ), a lowercase letter (abcdefghijklmnopqrstuvwxyz) or any alphanumeric character specific to the current locale. Parameters ch - wide character Return value Non-zero value if the wide character is a alphanumeric character, zero otherwise. Example #incl