Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      wctype

      From cppreference.com
      <c‎ |string‎ |wide
       
       
       
      Null-terminated wide strings
       
      Defined in header<wctype.h>
      wctype_t wctype(constchar* str);
      (since C95)

      Constructs a value of typewctype_t that describes aLC_CTYPE category of wide character classification. It may be one of the standard classification categories, or a locale-specific category, such as"jkanji".

      Contents

      [edit]Parameters

      str - C string holding the name of the desired category

      The following values ofstr are supported in all C locales:

      value ofstr effect
      "alnum" identifies the category used byiswalnum
      "alpha" identifies the category used byiswalpha
      "blank" identifies the category used byiswblank(C99)
      "cntrl" identifies the category used byiswcntrl
      "digit" identifies the category used byiswdigit
      "graph" identifies the category used byiswgraph
      "lower" identifies the category used byiswlower
      "print" identifies the category used byiswprint
      "space" identifies the category used byiswspace
      "upper" identifies the category used byiswupper
      "xdigit" identifies the category used byiswxdigit

      [edit]Return value

      wctype_t object suitable for use withiswctype to classify wide characters according to the named category of the current C locale or zero ifstr does not name a category supported by the current C locale.

      [edit]References

      • C23 standard (ISO/IEC 9899:2024):
      • 7.30.2.2.2 The wctype function (p: TBD)
      • C17 standard (ISO/IEC 9899:2018):
      • 7.30.2.2.2 The wctype function (p: TBD)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.30.2.2.2 The wctype function (p: 452)
      • C99 standard (ISO/IEC 9899:1999):
      • 7.25.2.2.2 The wctype function (p: 398)

      [edit]See also

      classifies a wide character according to the specifiedLC_CTYPE category
      (function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/string/wide/wctype&oldid=153721"

      [8]ページ先頭

      ©2009-2025 Movatter.jp