Wide null-terminated strings
From Cppreference
C++ Standard Library | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Strings library | |||||||||||||||||||||||||||
| |||||||||||||||||||||||||||
Wide null-terminated strings | |||||||||||||||||||||||||||
Template:cpp/string/wide/sidebar content | |||||||||||||||||||||||||||
A wide null-terminated string is a sequence of valid wide characters, ending with a null-character.
Contents |
[edit] Wide character classification and manipulation
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 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) |
||
|
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) |
||
|
looks up a character classification category in the current C locale (function) |
||
|
classifies a wide character according to the specified LC_CTYPE category (function) |
||
|
converts a wide character to lowercase (function) |
||
|
converts a wide character to uppercase (function) |
||
|
looks up a character mapping category in the current C locale (function) |
||
|
performs character mapping according to the specified LC_CTYPE mapping category (function) |
[edit] Conversions to numeric formats
Defined in header
<cwchar> | ||
|
converts a wide character string to a floating point value (function) |
|
|
converts a wide character string to an integer value (function) |
|
|
converts a wide character string to an unsigned integer value (function) |
[edit] Wide string operations
Defined in header
<cwchar> | ||
|
returns the length of a wide string (function) |
|
|
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) |
|
|
lexicographically compares two wide strings, locale-independent (function) |
|
|
lexicographically compares two wide strings, locale-dependent (function) |
|
|
compares a certain amount of characters from two wide strings (function) |
|
|
transform a wide string so that wcscmp would produce the same result as wcscoll (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) |
|
|
finds the first occurrence of any wide character from another wide string (function) |
|
|
returns the length of the maximum prefix that consists of only the characters found in another wide string (function) |
|
|
returns the length of the maximum prefix that consists of only the characters not found 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 character string (function) |
[edit] Wide character array operations
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] Multibyte/wide character conversions
Defined in header
<cstdlib> | |||
|
returns the number of bytes in the next multibyte character (function) |
||
|
converts the next multibyte character to wide character (function) |
||
|
converts a wide character to its multibyte representation (function) |
||
|
converts a narrow multibyte character string to wide character string (function) |
||
|
converts a wide character string to narrow multibyte character string (function) |
||
Defined in header
<cwchar> | |||
|
checks if the mbstate_t object represents initial shift state (function) |
||
|
widens a single-byte narrow character to wide character, if possible (function) |
||
|
narrows a wide character to a single-byte narrow character, if possible (function) |
||
|
returns the number of bytes in the next multibyte character, given state (function) |
||
|
converts the next multibyte character to wide character, given state (function) |
||
|
converts a wide character to its multibyte representation, given state (function) |
||
|
converts a narrow multibyte character string to wide character string, given state (function) |
||
|
converts a wide character string to narrow multibyte character string, given state (function) |
||
Defined in header
<cuchar> | |||
|
generate the next 16-bit wide character from a narrow multibyte string (function) |
||
|
convert a 16-bit wide character to narrow multibyte string (function) |
||
|
generate the next 32-bit wide character from a narrow multibyte string (function) |
||
|
convert a 32-bit wide character to narrow multibyte string (function) |
[edit] Types
Defined in header
<cwctype> | |
wctrans_t | scalar type that holds locale-specific character mapping |
wctype_t | scalar type that holds locale-specific character classification |
wint_t | integer type that can hold any valid wide character and at least one more value |
Defined in header
<cwchar> | |
mbstate_t | scalar type that holds the state information necessary to convert between sequences of multibyte and wide characters |
[edit] Macros
Defined in header
<climits> | |
MB_LEN_MAX | maximum number of bytes in a multibyte character (macro constant) |
Defined in header
<cstdlib> | |
MB_CUR_MAX | maximum number of bytes in a multibyte character in the current C locale (macro constant) |
Defined in header
<cwchar> | |
WEOF | a non-character value of type 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) |
Defined in header
<cuchar> | |
__STDC_UTF_16__ | indicates that UTF-16 encoding is used by mbrtoc16 and c16rtomb (macro constant) |
__STDC_UTF_32__ | indicates that UTF-32 encoding is used by mbrtoc32 and c32rtomb (macro constant) |