Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 2.07 KB

File metadata and controls

62 lines (47 loc) · 2.07 KB
description title ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords
Learn more about: wctype
wctype
1/14/2021
wctype
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-string-l1-1-0.dll
DLLExport
apiref
WCTYPE/wctype
wctype
wctype function
wide characters

wctype

Determines a classification rule for wide-character codes.

Syntax

wctype_t wctype(
   const char * property
);

Parameters

property
Property string.

Return value

If the LC_CTYPE category of the current locale doesn't 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.

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 more classification rules even in the "C" locale):

Function Same 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" ))

Requirements

Routine Required header
wctype <wctype.h>

For more compatibility information, see Compatibility.

See also

Data conversion
setlocale, _wsetlocale