Namespaces
Variants

std::basic_ios<CharT,Traits>:: widen

From cppreference.net
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> 的虚受保护成员函数)
将单字节窄字符扩展为宽字符(若可能)
(函数)