template <class internT, class externT, class stateT> class codecvt;
facets in locale objects | description |
---|---|
codecvt<char,char,mbstate_t> | performs no conversion |
codecvt<wchar_t,char,mbstate_t> | converts between native wide and narrow character sets |
facets in locale objects | description |
---|---|
codecvt<char,char,mbstate_t> | performs no conversion |
codecvt<wchar_t,char,mbstate_t> | converts between native wide and narrow character sets |
codecvt<char16_t,char,mbstate_t> | converts between UTF16 and UTF8 encodings |
codecvt<char32_t,char,mbstate_t> | converts between UTF32 and UTF8 encodings |
<codecvt>
defines additional stand-alone facet objects derived from codecvt (for more info, see header <codecvt>
).char_traits<externT>::state_type
).member type | definition | description |
---|---|---|
intern_type | The first template parameter (internT) | Internal character type |
extern_type | The second template parameter (externT) | External character type |
state_type | The third template parameter (stateT) | State type |
enum
type codecvt_base::result); They are used as return values by certain member functions.member constant | type | value | description |
---|---|---|---|
ok | codecvt_base::result | 0 | Conversion successful |
partial | codecvt_base::result | 1 | Partial conversion |
error | codecvt_base::result | 2 | Conversion error |
noconv | codecvt_base::result | 3 | No conversion |
specialization |
---|
codecvt<char,char,mbstate_t> |
codecvt<wchar_t,char,mbstate_t> |
specialization |
---|
codecvt<char,char,mbstate_t> |
codecvt<wchar_t,char,mbstate_t> |
codecvt<char16_t,char,mbstate_t> |
codecvt<char32_t,char,mbstate_t> |