Home
last modified time | relevance | path

Searched refs:Py_CHARMASK (Results 1 - 11 of 11) sorted by relevance

/third_party/python/Include/cpython/
H A 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/
H A 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/
H A Dbytesobject.c741 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx()
780 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx()
1125 digit1 = _PyLong_DigitValue[Py_CHARMASK(s[0])]; in _PyBytes_DecodeEscape()
1126 digit2 = _PyLong_DigitValue[Py_CHARMASK(s[1])]; in _PyBytes_DecodeEscape()
1570 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in bytes_richcompare()
1911 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip()
1920 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip()
2121 c = Py_CHARMASK(*input++); in bytes_translate_impl()
2122 if (Py_CHARMASK((*outpu in bytes_translate_impl()
[all...]
H A Dbytes_methods.c339 int c = Py_CHARMASK(*s++); in _Py_bytes_title()
383 int c = Py_CHARMASK(*s++); in _Py_bytes_swapcase()
H A Dlongobject.c2194 while (_PyLong_DigitValue[Py_CHARMASK(*p)] < base || *p == '_') { in long_from_binary_base()
2238 k = (int)_PyLong_DigitValue[Py_CHARMASK(*p)]; in long_from_binary_base()
2460 while (_PyLong_DigitValue[Py_CHARMASK(*scan)] < base || *scan == '_') { in PyLong_FromString()
2528 c = (digit)_PyLong_DigitValue[Py_CHARMASK(*str++)]; in PyLong_FromString()
2535 (int)_PyLong_DigitValue[Py_CHARMASK(*str)]); in PyLong_FromString()
/third_party/python/Include/
H A Dpymacro.h47 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) macro
/third_party/python/Modules/
H A Dbinascii.c913 unsigned int top = _PyLong_DigitValue[Py_CHARMASK(argbuf[i])]; in binascii_a2b_hex_impl()
914 unsigned int bot = _PyLong_DigitValue[Py_CHARMASK(argbuf[i+1])]; in binascii_a2b_hex_impl()
H A Dmmapmodule.c981 return PyLong_FromLong(Py_CHARMASK(self->data[i])); in mmap_subscript()
H A D_pickle.c6221 idx = Py_CHARMASK(s[0]); in load_binget()
6400 idx = Py_CHARMASK(s[0]); in load_binput()
/third_party/python/Parser/
H A Dtokenizer.c587 return Py_CHARMASK(*tok->str++); in buf_getc()
595 assert(Py_CHARMASK(*tok->str) == c); /* tok->cur may point to read-only segment */ in buf_ungetc()
1060 return Py_CHARMASK(*tok->cur++); /* Fast path */ in tok_nextc()
H A Dstring_parser.c177 int quote = Py_CHARMASK(*s); in _PyPegen_parsestr()
261 if (Py_CHARMASK(*ch) >= 0x80) { in _PyPegen_parsestr()

Completed in 30 milliseconds