Home
last modified time | relevance | path

Searched refs:Py_CHARMASK (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Include/cpython/
Dpyctype.h21 #define Py_ISLOWER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_LOWER)
22 #define Py_ISUPPER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_UPPER)
23 #define Py_ISALPHA(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALPHA)
24 #define Py_ISDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_DIGIT)
25 #define Py_ISXDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_XDIGIT)
26 #define Py_ISALNUM(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALNUM)
27 #define Py_ISSPACE(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_SPACE)
32 #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
33 #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
/third_party/python/Python/
Dmystrtoul.c112 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
121 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 8) { in PyOS_strtoul()
130 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 2) { in PyOS_strtoul()
158 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul()
172 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 8) { in PyOS_strtoul()
186 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 2) { in PyOS_strtoul()
212 while ((c = _PyLong_DigitValue[Py_CHARMASK(*str)]) < base) { in PyOS_strtoul()
249 while (_PyLong_DigitValue[Py_CHARMASK(*str)] < base) in PyOS_strtoul()
/third_party/python/Objects/
Dbytesobject.c771 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx()
810 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx()
1149 digit1 = _PyLong_DigitValue[Py_CHARMASK(s[0])]; in _PyBytes_DecodeEscape()
1150 digit2 = _PyLong_DigitValue[Py_CHARMASK(s[1])]; in _PyBytes_DecodeEscape()
1572 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in bytes_richcompare()
1891 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip()
1900 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip()
2101 c = Py_CHARMASK(*input++); in bytes_translate_impl()
2102 if (Py_CHARMASK((*output++ = table_chars[c])) != c) in bytes_translate_impl()
2117 trans_table[i] = Py_CHARMASK(i); in bytes_translate_impl()
[all …]
Dbytes_methods.c339 int c = Py_CHARMASK(*s++); in _Py_bytes_title()
383 int c = Py_CHARMASK(*s++); in _Py_bytes_swapcase()
Dbytearrayobject.c1308 c = Py_CHARMASK(*input++); in bytearray_translate_impl()
1316 trans_table[i] = Py_CHARMASK(i); in bytearray_translate_impl()
1319 trans_table[i] = Py_CHARMASK(table_chars[i]); in bytearray_translate_impl()
1323 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1; in bytearray_translate_impl()
1326 c = Py_CHARMASK(*input++); in bytearray_translate_impl()
Dlongobject.c2054 while (_PyLong_DigitValue[Py_CHARMASK(*p)] < base || *p == '_') { in long_from_binary_base()
2098 k = (int)_PyLong_DigitValue[Py_CHARMASK(*p)]; in long_from_binary_base()
2320 while (_PyLong_DigitValue[Py_CHARMASK(*scan)] < base || *scan == '_') { in PyLong_FromString()
2388 c = (digit)_PyLong_DigitValue[Py_CHARMASK(*str++)]; in PyLong_FromString()
2395 (int)_PyLong_DigitValue[Py_CHARMASK(*str)]); in PyLong_FromString()
/third_party/python/Include/
Dpymacro.h25 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) macro
/third_party/python/Parser/
Dstring_parser.c166 int quote = Py_CHARMASK(*s); in _PyPegen_parsestr()
250 if (Py_CHARMASK(*ch) >= 0x80) { in _PyPegen_parsestr()
Dtokenizer.c559 return Py_CHARMASK(*tok->str++); in buf_getc()
567 assert(Py_CHARMASK(*tok->str) == c); /* tok->cur may point to read-only segment */ in buf_ungetc()
1031 return Py_CHARMASK(*tok->cur++); /* Fast path */ in tok_nextc()
/third_party/python/Modules/
Dbinascii.c1252 unsigned int top = _PyLong_DigitValue[Py_CHARMASK(argbuf[i])]; in binascii_a2b_hex_impl()
1253 unsigned int bot = _PyLong_DigitValue[Py_CHARMASK(argbuf[i+1])]; in binascii_a2b_hex_impl()
Dmmapmodule.c909 return PyLong_FromLong(Py_CHARMASK(self->data[i])); in mmap_subscript()
D_pickle.c6214 idx = Py_CHARMASK(s[0]); in load_binget()
6393 idx = Py_CHARMASK(s[0]); in load_binput()
/third_party/python/Doc/c-api/
Dintro.rst161 .. c:macro:: Py_CHARMASK(c)