std::basic_ios<CharT,Traits>:: widen
| I/O manipulators | ||||
| Print functions (C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(C++20)
|
||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
| Synchronized Output | ||||
|
(C++20)
|
||||
| Types | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
| Member functions | ||||
| State functions | ||||
| Formatting | ||||
| Miscellaneous | ||||
|
basic_ios::widen
|
||||
| Protected member functions | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
|
char_type widen
(
char
c
)
const
;
|
||
将字符 c 转换为当前区域设置中的等效形式。如有需要,结果会从 char 转换为流内部使用的字符类型。
等效地调用 std:: use_facet < std:: ctype < char_type > > ( getloc ( ) ) . widen ( c ) 。
参数
| c | - | 要转换的字符 |
返回值
字符转换为
char_type
另请参阅
|
缩小字符
(公开成员函数) |
|
|
[virtual]
|
将字符从
char
转换为
CharT
(
std::ctype<CharT>
的虚受保护成员函数)
|
|
将单字节窄字符扩展为宽字符(若可能)
(函数) |