Null-terminated wide strings
From cppreference.com
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Text processing library
scalar type that holds locale-specific character mapping
(typedef)
scalar type that holds locale-specific character classification
(typedef)
integer type that can hold any valid wide character and at least one more value
(typedef)
a non-character value of type std::wint_t used to indicate errors
(macro constant)
the smallest valid value of wchar_t
(macro constant)
the largest valid value of wchar_t
(macro constant)
Regular expressions library (C++11)
Formatting library (C++20)
Wide strings
Null-terminated wide strings
Character manipulation
Conversions to numeric formats
String manipulation
String examination
Array manipulation
(C++11)
(C++11)(C++11)
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
<cwctype> Character manipulation
Defined in header
<cwctype> | ASCII values | characters | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| decimal | hexadecimal | octal | |||||||||||||
| 0–8 | \x0–\x8
|
0円–10円
|
control codes (NUL, etc.)
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 9 | \x9
|
11円
|
tab (\t)
|
≠0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 10–13 | \xA–\xD
|
12円–15円
|
whitespaces (\n, \v, \f, \r)
|
≠0
|
0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 14–31 | \xE–\x1F
|
16円–37円
|
control codes | ≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 32 | \x20
|
40円
|
space | 0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 33–47 | \x21–\x2F
|
41円–57円
|
!"#$%&'()*+,-./
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 48–57 | \x30–\x39
|
60円–71円
|
0123456789
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
0
|
0
|
0
|
≠0
|
≠0
|
| 58–64 | \x3A–\x40
|
72円–100円
|
:;<=>?@
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 65–70 | \x41–\x46
|
101円–106円
|
ABCDEF
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
≠0
|
| 71–90 | \x47–\x5A
|
107円–132円
|
GHIJKLMNOPQRSTUVWXYZ
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
≠0
|
0
|
0
|
0
|
| 91–96 | \x5B–\x60
|
133円–140円
|
[\]^_`
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 97–102 | \x61–\x66
|
141円–146円
|
abcdef
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
0
|
≠0
|
0
|
≠0
|
| 103–122 | \x67–\x7A
|
147円–172円
|
ghijklmnopqrstuvwxyz
|
0
|
≠0
|
0
|
0
|
≠0
|
0
|
≠0
|
≠0
|
0
|
≠0
|
0
|
0
|
| 123–126 | \x7B–\x7E
|
172円–176円
|
{|}~
|
0
|
≠0
|
0
|
0
|
≠0
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
| 127 | \x7F
|
177円
|
backspace character (DEL)
|
≠0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
0
|
Conversions to numeric formats
Defined in header
<cwchar> Defined in header
<cinttypes> String manipulation
Defined in header
<cwchar> String examination
Defined in header
<cwchar>
returns the length of the maximum initial segment that consists
of only the wide characters found in another wide string
(function) [edit]
of only the wide characters found in another wide string
(function) [edit]
returns the length of the maximum initial segment that consists
of only the wide not found in another wide string
(function) [edit]
of only the wide not found in another wide string
(function) [edit]
finds the first location of any wide character in one wide string, in another wide string
(function) [edit]
(function) [edit]
Wide character array manipulation
Defined in header
<cwchar>
copies a certain amount of wide characters between two, possibly overlapping, arrays
(function) [edit]
(function) [edit]
[edit] Types
Defined in header
<cwctype> wctrans_t
(typedef)
wctype_t
(typedef)
Defined in header
<cwctype> Defined in header
<cwchar> wint_t
(typedef)
[edit] Macros
Defined in header
<cwchar> WEOF
(macro constant)
WCHAR_MIN
(macro constant)
WCHAR_MAX
(macro constant)
[edit] See also
C documentation for Null-terminated wide strings