wctype

Determines a classification rule for wide-character codes.

wctype_t wctype( const char * property );

Routine Required Header Compatibility
wctype <wctype.h> Win 95, Win NT

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBCP.LIB Single thread static library, retail version
LIBCPMT.LIB Multithread static library, retail version
MSVCPRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

If the LC_CTYPE category of the current locale does not define a classification rule whose name matches the property string property, the function returns zero. Otherwise, it returns a nonzero value suitable for use as the second argument to a subsequent call to towctrans.

Parameters

property   property string

Remarks

The function determines a classification rule for wide-character codes. The following pairs of calls have the same behavior in all locales (but an implementation can define additional classification rules even in the "C" locale):

iswalnum( c ) same as  iswctype( c, wctype( "alnum" ) )

iswalpha( c ) same as  iswctype( c, wctype( "alpha" ) )

iswcntrl( c ) same as  iswctype( c, wctype( "cntrl" ) )

iswdigit( c ) same as  iswctype( c, wctype( "digit" ) )

iswgraph( c ) same as  iswctype( c, wctype( "graph" ) )

iswlower( c ) same as  iswctype( c, wctype( "lower" ) )

iswprint( c ) same as  iswctype( c, wctype( "print" ) )

iswpunct( c ) same as  iswctype( c, wctype( "punct" ) )

iswspace( c ) same as  iswctype( c, wctype( "space" ) )

iswupper( c ) same as  iswctype( c, wctype( "upper" ) )

iswxdigit( c ) same as  iswctype( c, wctype( "xdigit" ) )

Data Conversion Routines

See Also   setlocale