btowc
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <wchar.h> 中定义
|
||
| wint_t btowc( int c ); |
||
一个单字节字符
c扩大其广泛的字符相当于.原文:
Widens a single-byte character
c to its wide character equivalent.多字节字符编码使用单字节码来表示ASCII字符集的字符。此功能可用于将此类字符wchar_t.
原文:
Most multibyte character encodings use single-byte codes to represent the characters from the ASCII character set. This function may be used to convert such characters to wchar_t.
目录 |
[编辑] 参数
| c | - | 单字节字符扩大
|
[编辑] 返回值
WEOF if c is EOF
宽字符表示
c如果(unsigned char)c是一个有效的单字节字符的初始位移状态,WEOF否则.原文:
wide character representation of
c if (unsigned char)c is a valid single-byte character in the initial shift state, WEOF otherwise.[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| 缩小了宽到窄字符的单字节字符,如果可能的话 原文: narrows a wide character to a single-byte narrow character, if possible (函数) | |
| C++ documentation for btowc
| |