在线文档教程
C++
本土化 | Localizations

std::codecvt_base

STD::编解码器[医]底座

Defined in header
class codecvt_base;

全班std::codecvt_base对象继承和使用的转换状态常量。std::codecvt面。

成员类型

Member typeDefinition
enum result { ok, partial, error, noconv };Unscoped enumeration type

ValueExplanation
okconversion was completed with no error
partialnot all source characters were converted
errorencountered an invalid character
noconvno conversion required, input and output types are the same

注记

价值std::codecvt_base::partial用于指示目标范围太短,无法接收转换结果,或者输入被截断在其他有效的多字节字符的中间。

另见

codecvtconverts between character encodings, including UTF-8, UTF-16, UTF-32 (class template)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/locale/codecvt[医]底座