std::mbstate_t
From cppreference.com
C++
Text processing library
Localization library | |||||||||||||||||||||||||
Regular expressions library (C++11) | |||||||||||||||||||||||||
Formatting library (C++20) | |||||||||||||||||||||||||
Null-terminated sequence utilities | |||||||||||||||||||||||||
Byte strings | |||||||||||||||||||||||||
Multibyte strings | |||||||||||||||||||||||||
Wide strings | |||||||||||||||||||||||||
Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
Text encoding identifications | |||||||||||||||||||||||||
|
Null-terminated multibyte strings
Defined in header <cuchar>
|
(since C++17) |
|
Defined in header <cwchar>
|
||
struct mbstate_t; |
||
The type mbstate_t is a trivial non-array type that can represent any of the conversion states that can occur in an implementation-defined set of supported multibyte character encoding rules. Zero-initialized value of mbstate_t
represents the initial conversion state, although other values of mbstate_t
Possible implementation of mbstate_t
The following functions should not be called from multiple threads without synchronization with the std::mbstate_t* argument of a null pointer due to possible data races: std::mbrlen, std::mbrtowc, std::mbsrtowcs, std::mbtowc, std::wcrtomb, std::wcsrtombs, std::wctomb
See also
checks if the std::mbstate_t object represents initial shift state (function) |
|
C documentation for mbstate_t
|