std::ctype <char> :: ctype
| Localization library | |||||||||||||||||||||||||
| Regular expressions library (C++11) | |||||||||||||||||||||||||
| Formatting library (C++20) | |||||||||||||||||||||||||
| Null-terminated sequence utilities | |||||||||||||||||||||||||
| Byte strings | |||||||||||||||||||||||||
| Multibyte strings | |||||||||||||||||||||||||
| Wide strings | |||||||||||||||||||||||||
| Primitive numeric conversions | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
| Text encoding identifications | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Member functions of ctype<char> | ||||
|
ctype<char>::ctype
|
||||
|
定义于头文件
<locale>
|
||
|
explicit
ctype
(
const
mask
*
tbl
=
0
,
bool
del
=
false
,
std::
size_t
refs
=
0
)
;
|
||
创建一个 std:: ctype < char > facet,并将初始引用计数 refs 转发给基类构造函数 locale::facet::facet() 。
如果 tbl 为空指针,所有分类成员函数将使用 classic_table() 。否则, tbl 必须指向掩码数组的首元素,该数组长度至少为 std:: ctype < char > :: table_size ,且该facet的所有分类成员函数都将使用此数组。
如果 del 为 true ,则假定该数组是通过 new [ ] 分配的,且此 facet 的析构函数将调用 delete [ ] tbl 。
参数
| tbl | - | 要使用的分类表或空指针 |
| del | - | 指示是否需要删除该表的标志 |
| refs | - | 初始引用计数 |
示例
|
本节内容不完整
原因:缺少示例 |