30
Localization library
[localization]
30.4
Standard
locale
categories
[locale.categories]
30.4.2
The
ctype
category
[category.ctype]
30.4.2.2
Class template
ctype
[locale.ctype]
30.4.2.2.1
General
[locale.ctype.general]
🔗
namespace
std
{
template
<
class
charT
>
class
ctype
:
public
locale
::
facet,
public
ctype_base
{
public
:
using
char_type
=
charT;
explicit
ctype
(
size_t refs
=
0
)
;
bool
is
(
mask m, charT c
)
const
;
const
charT
*
is
(
const
charT
*
low,
const
charT
*
high, mask
*
vec
)
const
;
const
charT
*
scan_is
(
mask m,
const
charT
*
low,
const
charT
*
high
)
const
;
const
charT
*
scan_not
(
mask m,
const
charT
*
low,
const
charT
*
high
)
const
; charT toupper
(
charT c
)
const
;
const
charT
*
toupper
(
charT
*
low,
const
charT
*
high
)
const
; charT tolower
(
charT c
)
const
;
const
charT
*
tolower
(
charT
*
low,
const
charT
*
high
)
const
; charT widen
(
char
c
)
const
;
const
char
*
widen
(
const
char
*
low,
const
char
*
high, charT
*
to
)
const
;
char
narrow
(
charT c,
char
dfault
)
const
;
const
charT
*
narrow
(
const
charT
*
low,
const
charT
*
high,
char
dfault,
char
*
to
)
const
;
static
locale
::
id id;
protected
:
~
ctype
(
)
;
virtual
bool
do_is
(
mask m, charT c
)
const
;
virtual
const
charT
*
do_is
(
const
charT
*
low,
const
charT
*
high, mask
*
vec
)
const
;
virtual
const
charT
*
do_scan_is
(
mask m,
const
charT
*
low,
const
charT
*
high
)
const
;
virtual
const
charT
*
do_scan_not
(
mask m,
const
charT
*
low,
const
charT
*
high
)
const
;
virtual
charT do_toupper
(
charT
)
const
;
virtual
const
charT
*
do_toupper
(
charT
*
low,
const
charT
*
high
)
const
;
virtual
charT do_tolower
(
charT
)
const
;
virtual
const
charT
*
do_tolower
(
charT
*
low,
const
charT
*
high
)
const
;
virtual
charT do_widen
(
char
)
const
;
virtual
const
char
*
do_widen
(
const
char
*
low,
const
char
*
high, charT
*
dest
)
const
;
virtual
char
do_narrow
(
charT,
char
dfault
)
const
;
virtual
const
charT
*
do_narrow
(
const
charT
*
low,
const
charT
*
high,
char
dfault,
char
*
dest
)
const
;
}
;
}
1
#
Class
ctype
encapsulates the C library
<cctype>
features
.
istream
members are required to use
ctype
<
>
for character classing during input parsing
.
2
#
The specializations required in Table
104
(
[locale.
category]
), namely
ctype
<
char
>
and
ctype
<
wchar_
t
>
, implement character classing appropriate to the implementation's native character set
.