std::codecvt_base
Defined in header <locale> | ? | ? |
---|---|---|
class codecvt_base; | ? | ? |
全班std::codecvt_base
对象继承和使用的转换状态常量。std::codecvt
面。
成员类型
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 |
注记
价值std::codecvt_base::partial
用于指示目标范围太短,无法接收转换结果,或者输入被截断在其他有效的多字节字符的中间。
另见
codecvt | converts between character encodings, including UTF-8, UTF-16, UTF-32 (class template) |
---|
? cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com