ReactOS
0.4.16-dev-974-g5022a45
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
iswctype.cpp
Go to the documentation of this file.
1
//
2
// iswctype.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Support functionality for the wide character classification functions and
7
// macros.
8
//
9
#include <
corecrt_internal.h
>
10
#include <ctype.h>
11
#include <locale.h>
12
13
14
15
// Ensure that the masks used by GetCharType() match the CRT masks, so that we
16
// can simply reinterpret the masks.
17
#if _UPPER != C1_UPPER || \
18
_LOWER != C1_LOWER || \
19
_DIGIT != C1_DIGIT || \
20
_SPACE != C1_SPACE || \
21
_PUNCT != C1_PUNCT || \
22
_CONTROL != C1_CNTRL
23
#error Character type masks do not agree in ctype and winnls
24
#endif
25
26
27
28
// The iswctype functions are called by the wide character classification
29
// functions and macros (e.g. iswalpha) when their argument is a wide
30
// character greater than 255. It is also a standard function and can be
31
// called by the user, even for characters less than 256. The function
32
// returns nonzero if the argument c satisfies the character class property
33
// encoded by the mask. Returns zero otherwise, or for WEOF. These functions
34
// are neither locale nor codepage dependent.
35
extern
"C"
int
__cdecl
_iswctype_l
(
wint_t
const
c
,
wctype_t
const
mask
,
_locale_t
)
36
{
37
return
iswctype
(
c
,
mask
);
38
}
39
40
extern
"C"
int
__cdecl
iswctype
(
wint_t
const
c
,
wctype_t
const
mask
)
41
{
42
if
(
c
==
WEOF
)
43
return
0;
44
45
if
(
c
< 256)
46
return
static_cast<
int
>
(
_pwctype
[
c
] &
mask
);
47
48
wchar_t
const
wide_character =
c
;
49
50
wint_t
char_type = 0;
51
if
(__acrt_GetStringTypeW(
CT_CTYPE1
, &wide_character, 1, &char_type) == 0)
52
return
0;
53
54
return
static_cast<
int
>
(char_type &
mask
);
55
}
wint_t
int wint_t
Definition:
_apple.h:38
__cdecl
#define __cdecl
Definition:
accygwin.h:79
corecrt_internal.h
c
const GLubyte * c
Definition:
glext.h:8905
mask
GLenum GLint GLuint mask
Definition:
glext.h:6028
_pwctype
#define _pwctype
Definition:
wctype.h:67
iswctype
int __cdecl iswctype(wint_t const c, wctype_t const mask)
Definition:
iswctype.cpp:40
_iswctype_l
int __cdecl _iswctype_l(wint_t const c, wctype_t const mask, _locale_t)
Definition:
iswctype.cpp:35
c
#define c
Definition:
ke_i.h:80
WEOF
#define WEOF
Definition:
conio.h:185
localeinfo_struct
Definition:
corecrt.h:22
wctype_t
unsigned short wctype_t
Definition:
corecrt.h:617
CT_CTYPE1
#define CT_CTYPE1
Definition:
winnls.h:239
sdk
lib
ucrt
convert
iswctype.cpp
Generated on Thu Apr 10 2025 06:22:50 for ReactOS by
1.9.6