mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
remove some usage of Py_UNICODE_TOUPPER/LOWER
This commit is contained in:
parent
22ef4fa7e9
commit
21e0da228d
8 changed files with 21 additions and 27 deletions
|
|
@ -18,8 +18,6 @@
|
|||
#define STRINGLIB_ISLINEBREAK(x) ((x == '\n') || (x == '\r'))
|
||||
#define STRINGLIB_ISDECIMAL(x) ((x >= '0') && (x <= '9'))
|
||||
#define STRINGLIB_TODECIMAL(x) (STRINGLIB_ISDECIMAL(x) ? (x - '0') : -1)
|
||||
#define STRINGLIB_TOUPPER Py_TOUPPER
|
||||
#define STRINGLIB_TOLOWER Py_TOLOWER
|
||||
#define STRINGLIB_STR PyBytes_AS_STRING
|
||||
#define STRINGLIB_LEN PyBytes_GET_SIZE
|
||||
#define STRINGLIB_NEW PyBytes_FromStringAndSize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue