FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Include/pyctype.h at pythoncapi · pythoncapi/cpython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
pythoncapi
/
cpython
Public
forked from
python/cpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Include
/
pyctype.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (27 loc) · 1.29 KB
Breadcrumbs
cpython
/
Include
/
pyctype.h
Copy path
File metadata and controls
33 lines (27 loc) · 1.29 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef
Py_LIMITED_API
#ifndef
PYCTYPE_H
#define
PYCTYPE_H
#define
PY_CTF_LOWER
0x01
#define
PY_CTF_UPPER
0x02
#define
PY_CTF_ALPHA
(PY_CTF_LOWER|PY_CTF_UPPER)
#define
PY_CTF_DIGIT
0x04
#define
PY_CTF_ALNUM
(PY_CTF_ALPHA|PY_CTF_DIGIT)
#define
PY_CTF_SPACE
0x08
#define
PY_CTF_XDIGIT
0x10
PyAPI_DATA
(
const
unsigned
int
)
_Py_ctype_table
[
256
];
/* Unlike their C counterparts, the following macros are not meant to
* handle an int with any of the values [EOF, 0-UCHAR_MAX]. The argument
* must be a signed/unsigned char. */
#define
Py_ISLOWER
(
c
) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_LOWER)
#define
Py_ISUPPER
(
c
) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_UPPER)
#define
Py_ISALPHA
(
c
) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALPHA)
#define
Py_ISDIGIT
(
c
) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_DIGIT)
#define
Py_ISXDIGIT
(
c
) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_XDIGIT)
#define
Py_ISALNUM
(
c
) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALNUM)
#define
Py_ISSPACE
(
c
) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_SPACE)
PyAPI_DATA
(
const
unsigned
char
)
_Py_ctype_tolower
[
256
];
PyAPI_DATA
(
const
unsigned
char
)
_Py_ctype_toupper
[
256
];
#define
Py_TOLOWER
(
c
) (_Py_ctype_tolower[Py_CHARMASK(c)])
#define
Py_TOUPPER
(
c
) (_Py_ctype_toupper[Py_CHARMASK(c)])
#endif
/* !PYCTYPE_H */
#endif
/* !Py_LIMITED_API */
Back
|
FazBrowse Home
|
New Git URL