Null-terminated wide strings
From cppreference.com
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> | |
checks if a wide character is alphanumeric (function) | |
checks if a wide character is alphabetic (function) | |
checks if a wide character is lowercase (function) | |
checks if a wide character is an uppercase character (function) | |
checks if a wide character is a digit (function) | |
checks if a wide character is a hexadecimal character (function) | |
checks if a wide character is a control character (function) | |
checks if a wide character is a graphical character (function) | |
checks if a wide character is a space character (function) | |
(C++11) |
checks if a wide character is a blank character (function) |
checks if a wide character is a printing character (function) | |
checks if a wide character is a punctuation character (function) | |
classifies a wide character according to the specified LC_CTYPE category (function) | |
looks up a character classification category in the current C locale (function) | |
Character manipulation | |
Defined in header
<cwctype> | |
converts a wide character to lowercase (function) | |
converts a wide character to uppercase (function) | |
performs character mapping according to the specified LC_CTYPE mapping category (function) | |
looks up a character mapping category in the current C locale (function) |
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
|
GHIJKLMNOP QRSTUVWXYZ
|
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
|
ghijklmnop qrstuvwxyz
|
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> | |
converts a wide string to an integer value (function) | |
converts a wide string to an unsigned integer value (function) | |
converts a wide string to a floating-point value (function) | |
Defined in header
<cinttypes> | |
(C++11)(C++11) |
converts a wide string to std::intmax_t or std::uintmax_t (function) |
String manipulation | |
Defined in header
<cwchar> | |
copies one wide string to another (function) | |
copies a certain amount of wide characters from one string to another (function) | |
appends a copy of one wide string to another (function) | |
appends a certain amount of wide characters from one wide string to another (function) | |
transform a wide string so that wcscmp would produce the same result as wcscoll (function) | |
String examination | |
Defined in header
<cwchar> | |
returns the length of a wide string (function) | |
compares two wide strings (function) | |
compares a certain amount of characters from two wide strings (function) | |
compares two wide strings in accordance to the current locale (function) | |
finds the first occurrence of a wide character in a wide string (function) | |
finds the last occurrence of a wide character in a wide string (function) | |
returns the length of the maximum initial segment that consists of only the wide characters found in another wide string (function) | |
returns the length of the maximum initial segment that consists of only the wide not found in another wide string (function) | |
finds the first location of any wide character in one wide string, in another wide string (function) | |
finds the first occurrence of a wide string within another wide string (function) | |
finds the next token in a wide string (function) |
Wide character array manipulation | |
Defined in header
<cwchar> | |
copies a certain amount of wide characters between two non-overlapping arrays (function) | |
copies a certain amount of wide characters between two, possibly overlapping, arrays (function) | |
compares a certain amount of wide characters from two arrays (function) | |
finds the first occurrence of a wide character in a wide character array (function) | |
copies the given wide character to every position in a wide character array (function) |
[edit] Types
Defined in header
<cwctype> | |
wctrans_t |
scalar type that holds locale-specific character mapping (typedef) |
wctype_t |
scalar type that holds locale-specific character classification (typedef) |
Defined in header
<cwctype> | |
Defined in header
<cwchar> | |
wint_t |
integer type that can hold any valid wide character and at least one more value (typedef) |
[edit] Macros
Defined in header
<cwchar> | |
WEOF |
a non-character value of type std::wint_t used to indicate errors (macro constant) |
WCHAR_MIN |
the smallest valid value of wchar_t (macro constant) |
WCHAR_MAX |
the largest valid value of wchar_t (macro constant) |
[edit] See also
C documentation for Null-terminated wide strings
|