std::mbstate_t
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
在头文件 <cwchar> 中定义
|
||
struct mbstate_t; |
||
。的的类型的mbstate_t是一个简单的非数组类型,可以代表任何的转换状态,可以发生在一个实现定义的设置支持多字节字符的编码规则。零初始化的值
mbstate_t
为初始转换状态,,虽然其他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
may exist that also represent the initial conversion state.。
可能实施的
mbstate_t
是一个结构型的保持一个数组,表示不完整的多字节字符,数组中的已处理的字节数的整数计数器,并表示目前的移位状态.原文:
Possible implementation of
mbstate_t
is a struct type holding an array representing the incomplete multibyte character, an integer counter indicating the number of bytes in the array that have been processed, and a representation of the current shift state.。下面的函数不应该被称为多线程不同步std::mbstate_t*由于可能的数据争用的
NULL
参数:std::mbrlen,std::mbrtowc,std::mbsrtowc,std::mbtowc,std::wcrtomb,std::wcsrtomb,std::wctomb. 原文:
The following functions should not be called from multiple threads without synchronization with the std::mbstate_t* argument of
NULL
due to possible data races: std::mbrlen, std::mbrtowc, std::mbsrtowc, std::mbtowc, std::wcrtomb, std::wcsrtomb, std::wctomb. [编辑] 。另请参阅。
检查如果的mbstate_t对象初始移位状态 原文: checks if the mbstate_t object represents initial shift state (函数) |