共用方式為


wctype

判斷分類規則為寬字元代碼。

wctype_t wctype(
   const char * property 
);

參數

  • property
    屬性的字串。

傳回值

如果LC_CTYPE類別目前的地區設定不會定義分類規則名稱符合屬性字串property,則函數會傳回零。 否則,它會傳回非零的值適用於第二個引數的後續呼叫, towctrans

備註

函式會判斷分類規則為寬字元代碼。 下列的括號呼叫的所有地區設定中具有相同的行為 (但實作可定義其他分類規則,即使是在"C"地區設定):

Function

相同

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

需求

常式

所需的標頭

wctype

<wctype.h>

其他的相容性資訊,請參閱相容性在簡介中。

請參閱

參考

資料轉換

setlocale _wsetlocale