Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Null-terminated wide strings

      From cppreference.com
      <c‎ |string
       
       
       
      Null-terminated wide strings
       

      A null-terminated wide string is a sequence of valid wide characters, ending with a null-character.

      Contents

      [edit]Functions

      Character classification
      Defined in header<wctype.h>
      checks if a wide character is alphanumeric
      (function)[edit]
      checks if a wide character is alphabetic
      (function)[edit]
      checks if a wide character is an lowercase character
      (function)[edit]
      checks if a wide character is an uppercase character
      (function)[edit]
      checks if a wide character is a digit
      (function)[edit]
      checks if a wide character is a hexadecimal character
      (function)[edit]
      checks if a wide character is a control character
      (function)[edit]
      checks if a wide character is a graphical character
      (function)[edit]
      checks if a wide character is a space character
      (function)[edit]
      checks if a wide character is a blank character
      (function)[edit]
      checks if a wide character is a printing character
      (function)[edit]
      checks if a wide character is a punctuation character
      (function)[edit]
      classifies a wide character according to the specifiedLC_CTYPE category
      (function)[edit]
      (C95)
      looks up a character classification category in the current C locale
      (function)[edit]
      Character manipulation
      Defined in header<wctype.h>
      converts a wide character to lowercase
      (function)[edit]
      converts a wide character to uppercase
      (function)[edit]
      performs character mapping according to the specifiedLC_CTYPE mapping category
      (function)[edit]
      (C95)
      looks up a character mapping category in the current C locale
      (function)[edit]
      ASCII valuescharacters

      iscntrl
      iswcntrl

      isprint
      iswprint

      isspace
      iswspace

      isblank
      iswblank

      isgraph
      iswgraph

      ispunct
      iswpunct

      isalnum
      iswalnum

      isalpha
      iswalpha

      isupper
      iswupper

      islower
      iswlower

      isdigit
      iswdigit

      isxdigit
      iswxdigit

      decimal hexadecimal octal
      0–8\x0\x8\0\10control codes (NUL, etc.)≠000000000000
      9\x9\11tab (\t)≠00≠0≠000000000
      10–13\xA\xD\12\15whitespaces (\n,\v,\f,\r)≠00≠0000000000
      14–31\xE\x1F\16\37control codes≠000000000000
      32\x20\40space0≠0≠0≠000000000
      33–47\x21\x2F\41\57!"#$%&'()*+,-./0≠000≠0≠0000000
      48–57\x30\x39\60\7101234567890≠000≠00≠0000≠0≠0
      58–64\x3A\x40\72\100:;<=>?@0≠000≠0≠0000000
      65–70\x41\x46\101\106ABCDEF0≠000≠00≠0≠0≠000≠0
      71–90\x47\x5A\107\132GHIJKLMNOP
      QRSTUVWXYZ
      0≠000≠00≠0≠0≠0000
      91–96\x5B\x60\133\140[\]^_`0≠000≠0≠0000000
      97–102\x61\x66\141\146abcdef0≠000≠00≠0≠00≠00≠0
      103–122\x67\x7A\147\172ghijklmnop
      qrstuvwxyz
      0≠000≠00≠0≠00≠000
      123–126\x7B\x7E\173\176{|}~0≠000≠0≠0000000
      127\x7F\177backspace character (DEL)≠000000000000
      Conversions to numeric formats
      Defined in header<wchar.h>
      (C95)(C99)
      converts a wide string to an integer value
      (function)[edit]
      (C95)(C99)
      converts a wide string to an unsigned integer value
      (function)[edit]
      (C99)(C95)(C99)
      converts a wide string to a floating-point value
      (function)[edit]
      Defined in header<inttypes.h>
      converts a wide string tointmax_t oruintmax_t
      (function)[edit]
      String manipulation
      Defined in header<wchar.h>
      (C95)(C11)
      copies one wide string to another
      (function)[edit]
      copies a certain amount of wide characters from one string to another
      (function)[edit]
      (C95)(C11)
      appends a copy of one wide string to another
      (function)[edit]
      appends a certain amount of wide characters from one wide string to another
      (function)[edit]
      (C95)
      transform a wide string so thatwcscmp would produce the same result aswcscoll
      (function)[edit]
      String examination
      Defined in header<wchar.h>
      (C95)(C11)
      returns the length of a wide string
      (function)[edit]
      (C95)
      compares two wide strings
      (function)[edit]
      (C95)
      compares a certain amount of characters from two wide strings
      (function)[edit]
      (C95)
      compares two wide strings in accordance to the current locale
      (function)[edit]
      (C95)
      finds the first occurrence of a wide character in a wide string
      (function)[edit]
      (C95)
      finds the last occurrence of a wide character in a wide string
      (function)[edit]
      (C95)
      returns the length of the maximum initial segment that consists
      of only the wide characters found in another wide string
      (function)[edit]
      (C95)
      returns the length of the maximum initial segment that consists
      of only the wide charsnot found in another wide string
      (function)[edit]
      (C95)
      finds the first location of any wide character in one wide string, in another wide string
      (function)[edit]
      (C95)
      finds the first occurrence of a wide string within another wide string
      (function)[edit]
      (C95)(C11)
      finds the next token in a wide string
      (function)[edit]
      Wide character array manipulation
      Defined in header<wchar.h>
      copies a certain amount of wide characters between two non-overlapping arrays
      (function)[edit]
      copies a certain amount of wide characters between two, possibly overlapping, arrays
      (function)[edit]
      (C95)
      compares a certain amount of wide characters from two arrays
      (function)[edit]
      (C95)
      finds the first occurrence of a wide character in a wide character array
      (function)[edit]
      (C95)
      copies the given wide character to every position in a wide character array
      (function)[edit]

      [edit]Types

      Defined in header<stddef.h>
      Defined in header<stdlib.h>
      Defined in header<wchar.h>
      wchar_t
      integer type that can hold any valid wide character
      (typedef)
      Defined in header<wchar.h>
      Defined in header<wctype.h>
      wint_t
      (C95)
      integer type that can hold any valid wide character and at least one more value
      (typedef)
      Defined in header<wctype.h>
      wctrans_t
      (C95)
      scalar type that holds locale-specific character mapping
      (typedef)
      wctype_t
      (C95)
      scalar type that holds locale-specific character classification
      (typedef)

      [edit]Macros

      Defined in header<wchar.h>
      Defined in header<wctype.h>
      WEOF
      (C95)
      a non-character value of typewint_t used to indicate errors
      (macro constant)
      Defined in header<wchar.h>
      Defined in header<stdint.h>
      WCHAR_MIN
      (C95)
      the smallest valid value ofwchar_t
      (macro constant)
      WCHAR_MAX
      (C95)
      the largest valid value ofwchar_t
      (macro constant)

      [edit]References

      • C23 standard (ISO/IEC 9899:2024):
      • 7.19 Common definitions <stddef.h> (p: TBD)
      • 7.29 Extended multibyte and wide character utilities <wchar.h> (p: TBD)
      • 7.30 Wide character classification and mapping utilities <wctype.h> (p: TBD)
      • 7.31.16 Extended multibyte and wide character utilities <wchar.h> (p: TBD)
      • 7.31.17 Wide character classification and mapping utilities <wctype.h> (p: TBD)
      • K.3.3 Common definitions <stddef.h> (p: TBD)
      • K.3.9 Extended multibyte and wide character utilities <wchar.h> (p: TBD)
      • C17 standard (ISO/IEC 9899:2018):
      • 7.19 Common definitions <stddef.h> (p: TBD)
      • 7.29 Extended multibyte and wide character utilities <wchar.h> (p: TBD)
      • 7.30 Wide character classification and mapping utilities <wctype.h> (p: TBD)
      • 7.31.16 Extended multibyte and wide character utilities <wchar.h> (p: TBD)
      • 7.31.17 Wide character classification and mapping utilities <wctype.h> (p: TBD)
      • K.3.3 Common definitions <stddef.h> (p: TBD)
      • K.3.9 Extended multibyte and wide character utilities <wchar.h> (p: TBD)
      • C11 standard (ISO/IEC 9899:2011):
      • 7.19 Common definitions <stddef.h> (p: 288)
      • 7.29 Extended multibyte and wide character utilities <wchar.h> (p: 402-446)
      • 7.30 Wide character classification and mapping utilities <wctype.h> (p: 447-454)
      • 7.31.16 Extended multibyte and wide character utilities <wchar.h> (p: 456)
      • 7.31.17 Wide character classification and mapping utilities <wctype.h> (p: 457)
      • K.3.3 Common definitions <stddef.h> (p: 585)
      • K.3.9 Extended multibyte and wide character utilities <wchar.h> (p: 627-651)
      • C99 standard (ISO/IEC 9899:1999):
      • 7.17 Common definitions <stddef.h> (p: 254)
      • 7.24 Extended multibyte and wide character utilities <wchar.h> (p: 348-392)
      • 7.25 Wide character classification and mapping utilities <wctype.h> (p: 393-400)
      • 7.26.12 Extended multibyte and wide character utilities <wchar.h> (p: 402)
      • 7.26.13 Wide character classification and mapping utilities <wctype.h> (p: 402)
      • C89/C90 standard (ISO/IEC 9899:1990):
      • 4.1.5 Common definitions <stddef.h>

      [edit]See also

      C++ documentation forNull-terminated wide strings
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/string/wide&oldid=180714"

      [8]ページ先頭

      ©2009-2025 Movatter.jp