wctype

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at wctype.

Determines a classification rule for wide-character codes.

wctype_t wctype(  
   const char * property   
);  

Parameters

property
Property string.

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.

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):

FunctionSame as
iswalnum(  c  )iswctype(  c , wctype( "alnum" ) )
iswalpha(  c  )iswctype(  c , wctype( "alpha" ) )
iswcntrl(  c  )iswctype(  c , wctype( "cntrl" ) )
iswdigit(  c  )iswctype(  c , wctype( "digit" ) )
iswgraph(  c  )iswctype(  c , wctype( "graph" ) )
iswlower(  c  )iswctype(  c , wctype( "lower" ) )
iswprint(  c  )iswctype(  c , wctype( "print" ) )
iswpunct(  c  )iswctype(  c , wctype( "punct" ) )
iswspace(  c  )iswctype(  c , wctype( "space" ) )
iswupper(  c  )iswctype(  c , wctype( "upper" ) )
iswxdigit(  c  )iswctype(  c , wctype( "xdigit" ) )
RoutineRequired header
wctype<wctype.h>

For additional compatibility information, see Compatibility in the Introduction.

Data Conversion
setlocale, _wsetlocale

Show: