/external/python/cpython2/Include/ |
D | pyctype.h | 17 #define Py_ISLOWER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_LOWER) 18 #define Py_ISUPPER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_UPPER) 19 #define Py_ISALPHA(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALPHA) 20 #define Py_ISDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_DIGIT) 21 #define Py_ISXDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_XDIGIT) 22 #define Py_ISALNUM(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALNUM) 23 #define Py_ISSPACE(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_SPACE) 28 #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)]) 29 #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
|
D | Python.h | 157 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) macro
|
/external/python/cpython3/Include/ |
D | pyctype.h | 18 #define Py_ISLOWER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_LOWER) 19 #define Py_ISUPPER(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_UPPER) 20 #define Py_ISALPHA(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALPHA) 21 #define Py_ISDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_DIGIT) 22 #define Py_ISXDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_XDIGIT) 23 #define Py_ISALNUM(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALNUM) 24 #define Py_ISSPACE(c) (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_SPACE) 29 #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)]) 30 #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
|
D | pymacro.h | 25 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) macro
|
/external/python/cpython3/Python/ |
D | mystrtoul.c | 102 while (*str && Py_ISSPACE(Py_CHARMASK(*str))) in PyOS_strtoul() 112 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() 141 while (Py_ISSPACE(Py_CHARMASK(*str))) 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() [all …]
|
D | dynload_aix.c | 143 while (Py_ISDIGIT(Py_CHARMASK(*message[i]))) message[i]++ ; in aix_loaderror()
|
/external/python/cpython2/Python/ |
D | mystrtoul.c | 102 while (*str && isspace(Py_CHARMASK(*str))) in PyOS_strtoul() 112 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() 150 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 2) { in PyOS_strtoul() 165 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 8) { in PyOS_strtoul() 180 if (_PyLong_DigitValue[Py_CHARMASK(str[1])] >= 16) { in PyOS_strtoul() 206 while ((c = _PyLong_DigitValue[Py_CHARMASK(*str)]) < base) { in PyOS_strtoul() 243 while (_PyLong_DigitValue[Py_CHARMASK(*str)] < base) in PyOS_strtoul() 263 while (*str && isspace(Py_CHARMASK(*str))) in PyOS_strtol()
|
D | dynload_aix.c | 147 while (isdigit(Py_CHARMASK(*message[i]))) message[i]++ ; in aix_loaderror()
|
/external/python/cpython2/Modules/ |
D | stropmodule.c | 42 while (i < len && isspace(Py_CHARMASK(s[i]))) { in split_whitespace() 46 while (i < len && !isspace(Py_CHARMASK(s[i]))) { in split_whitespace() 60 while (i < len && isspace(Py_CHARMASK(s[i]))) { in split_whitespace() 392 while (i < len && isspace(Py_CHARMASK(s[i]))) { in do_strip() 401 } while (j >= i && isspace(Py_CHARMASK(s[j]))); in do_strip() 476 int c = Py_CHARMASK(*s++); in strop_lower() 515 int c = Py_CHARMASK(*s++); in strop_upper() 555 int c = Py_CHARMASK(*s++); in strop_capitalize() 564 int c = Py_CHARMASK(*s++); in strop_capitalize() 734 int c = Py_CHARMASK(*s++); in strop_swapcase() [all …]
|
D | unicodedata.c | 844 h = (h * scale) + (unsigned char) Py_TOUPPER(Py_CHARMASK(s[i])); in _gethash() 992 if (Py_TOUPPER(Py_CHARMASK(name[i])) != buffer[i]) in _cmpname()
|
/external/python/cpython2/Objects/ |
D | bytes_methods.c | 262 int c = Py_CHARMASK(result[i]); in _Py_bytes_lower() 290 int c = Py_CHARMASK(result[i]); in _Py_bytes_upper() 316 int c = Py_CHARMASK(*s++); in _Py_bytes_title() 350 int c = Py_CHARMASK(*s++); in _Py_bytes_capitalize() 358 int c = Py_CHARMASK(*s++); in _Py_bytes_capitalize() 386 int c = Py_CHARMASK(*s++); in _Py_bytes_swapcase()
|
D | stringobject.c | 192 while (*++f && *f != '%' && !isalpha(Py_CHARMASK(*f))) in PyString_FromFormatV() 287 while (isdigit(Py_CHARMASK(*f))) in PyString_FromFormatV() 292 while (isdigit(Py_CHARMASK(*f))) in PyString_FromFormatV() 295 while (*f && *f != '%' && !isalpha(Py_CHARMASK(*f))) in PyString_FromFormatV() 695 isxdigit(Py_CHARMASK(s[0])) && in PyString_DecodeEscape() 696 isxdigit(Py_CHARMASK(s[1]))) in PyString_DecodeEscape() 699 c = Py_CHARMASK(*s); in PyString_DecodeEscape() 708 c = Py_CHARMASK(*s); in PyString_DecodeEscape() 736 if (s < end && isxdigit(Py_CHARMASK(s[0]))) in PyString_DecodeEscape() 1235 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in string_richcompare() [all …]
|
D | bytesobject.c | 755 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx() 794 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx() 1194 digit1 = _PyLong_DigitValue[Py_CHARMASK(s[0])]; in _PyBytes_DecodeEscape() 1195 digit2 = _PyLong_DigitValue[Py_CHARMASK(s[1])]; in _PyBytes_DecodeEscape() 1632 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in bytes_richcompare() 1962 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip() 1971 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip() 2171 c = Py_CHARMASK(*input++); in bytes_translate_impl() 2172 if (Py_CHARMASK((*output++ = table_chars[c])) != c) in bytes_translate_impl() 2187 trans_table[i] = Py_CHARMASK(i); in bytes_translate_impl() [all …]
|
D | bytearrayobject.c | 35 *value = Py_CHARMASK(((PyBytesObject*)arg)->ob_sval[0]); in _getbytevalue() 1517 c = Py_CHARMASK(*input++); in bytearray_translate() 1525 trans_table[i] = Py_CHARMASK(i); in bytearray_translate() 1528 trans_table[i] = Py_CHARMASK(table[i]); in bytearray_translate() 1532 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1; in bytearray_translate() 1535 c = Py_CHARMASK(*input++); in bytearray_translate() 1537 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in bytearray_translate()
|
D | intobject.c | 365 while (*s && isspace(Py_CHARMASK(*s))) in PyInt_FromString() 375 if (end == s || !isalnum(Py_CHARMASK(end[-1]))) in PyInt_FromString() 377 while (*end && isspace(Py_CHARMASK(*end))) in PyInt_FromString()
|
D | longobject.c | 1671 while (_PyLong_DigitValue[Py_CHARMASK(*p)] < base) in long_from_binary_base() 1692 int k = _PyLong_DigitValue[Py_CHARMASK(*p)]; in long_from_binary_base() 1728 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString() 1736 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString() 1885 while (_PyLong_DigitValue[Py_CHARMASK(*scan)] < base) in PyLong_FromString() 1911 c = (digit)_PyLong_DigitValue[Py_CHARMASK(*str++)]; in PyLong_FromString() 1914 _PyLong_DigitValue[Py_CHARMASK(*str)]); in PyLong_FromString() 1971 while (*str && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
|
/external/python/cpython3/Objects/ |
D | bytesobject.c | 761 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx() 800 c = Py_CHARMASK(*fmt++); in _PyBytes_FormatEx() 1200 digit1 = _PyLong_DigitValue[Py_CHARMASK(s[0])]; in _PyBytes_DecodeEscape() 1201 digit2 = _PyLong_DigitValue[Py_CHARMASK(s[1])]; in _PyBytes_DecodeEscape() 1637 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in bytes_richcompare() 1955 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip() 1964 } while (j >= i && memchr(sep, Py_CHARMASK(s[j]), seplen)); in do_xstrip() 2164 c = Py_CHARMASK(*input++); in bytes_translate_impl() 2165 if (Py_CHARMASK((*output++ = table_chars[c])) != c) in bytes_translate_impl() 2180 trans_table[i] = Py_CHARMASK(i); in bytes_translate_impl() [all …]
|
D | bytes_methods.c | 339 int c = Py_CHARMASK(*s++); in _Py_bytes_title() 367 int c = Py_CHARMASK(*s++); in _Py_bytes_capitalize() 375 int c = Py_CHARMASK(*s++); in _Py_bytes_capitalize() 397 int c = Py_CHARMASK(*s++); in _Py_bytes_swapcase()
|
D | bytearrayobject.c | 1254 c = Py_CHARMASK(*input++); in bytearray_translate_impl() 1262 trans_table[i] = Py_CHARMASK(i); in bytearray_translate_impl() 1265 trans_table[i] = Py_CHARMASK(table_chars[i]); in bytearray_translate_impl() 1269 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1; in bytearray_translate_impl() 1272 c = Py_CHARMASK(*input++); in bytearray_translate_impl()
|
/external/python/cpython2/Parser/ |
D | tokenizer.c | 588 return Py_CHARMASK(*tok->str++); in buf_getc() 596 assert(Py_CHARMASK(*tok->str) == c); /* tok->cur may point to read-only segment */ in buf_ungetc() 861 return Py_CHARMASK(*tok->cur++); /* Fast path */ in tok_nextc() 881 return Py_CHARMASK(*tok->cur++); in tok_nextc()
|
D | grammar.c | 204 if (isalpha(Py_CHARMASK(lb->lb_str[1])) || in translabel()
|
/external/python/cpython3/Parser/ |
D | tokenizer.c | 666 return Py_CHARMASK(*tok->str++); in buf_getc() 674 assert(Py_CHARMASK(*tok->str) == c); /* tok->cur may point to read-only segment */ in buf_ungetc() 911 return Py_CHARMASK(*tok->cur++); /* Fast path */ in tok_nextc() 931 return Py_CHARMASK(*tok->cur++); in tok_nextc()
|
D | grammar.c | 205 if (isalpha(Py_CHARMASK(lb->lb_str[1])) || in translabel()
|
/external/python/cpython3/Modules/ |
D | binascii.c | 1205 int top = to_int(Py_CHARMASK(argbuf[i])); in binascii_a2b_hex_impl() 1206 int bot = to_int(Py_CHARMASK(argbuf[i+1])); in binascii_a2b_hex_impl()
|
D | unicodedata.c | 883 h = (h * scale) + (unsigned char) Py_TOUPPER(Py_CHARMASK(s[i])); in _gethash() 1053 if (Py_TOUPPER(Py_CHARMASK(name[i])) != buffer[i]) in _cmpname()
|