std::codecvt_base
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 | |||||||||||||||||||||||||
|
Localization library
|
Defined in header <locale>
|
||
class codecvt_base; |
||
The class std::codecvt_base provides the conversion status constants which are inherited and used by the std::codecvt
Member types
Member type | Definition |
enum result { ok, partial, error, noconv }; | Unscoped enumeration type |
Value | Explanation |
ok
|
conversion was completed with no error |
partial
|
not all source characters were converted |
error
|
encountered an invalid character |
noconv
|
no conversion required, input and output types are the same |
Notes
The value std::codecvt_base::partial
See also
converts between character encodings, including UTF-8, UTF-16, UTF-32 (class template) |