Contains wide-character classification and mapping utilities.
The wctype.h header defines the following data types through typedef:
|wint_t||As described in wchar.h.|
|wctrans_t||A scalar type that can hold values that represent locale-specific character mappings.|
|wctype_t||As described in wchar.h.|
The wctype.h header declares the following as functions and may also define them as macros. Function prototypes must be provided for use with an ISO C compiler.
int iswctype(wint_t, wctype_t);
wint_t towctrans(wint_t, wctrans_t);
wctrans_t wctrans(const char *);
wctype_t wctype(const char *);
The wctype.h defines the following macro name:
|WEOF||Constant expression of type wint_t that is returned by several MSE functions to indicate end-of-file.|
For all functions described in this header that accept an argument of type wint_t, the value will be representable as a wchar_t or will equal the value of WEOF. If this argument has any other value, the behaviour is undefined.
The behaviour of these functions is affected by the LC_CTYPE category of the current locale.
Inclusion of the wctype.h header may make visible all symbols from the headers ctype.h, stdio.h, stdarg.h, stdlib.h, string.h, stddef.h time.h and wchar.h.
The iswalnum, iswalpha, iswcntrl, iswctype, iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, setlocale, towctrans, towlower, towupper, wctrans, and wctype subroutines.
The locale.h and wchar.h header files.