Home
last modified time | relevance | path

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

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dpyctype.h17 #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)])
DPython.h154 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) macro
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dpyctype.h17 #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)])
DPython.h154 #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff)) macro
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dmystrtoul.c102 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()
Ddynload_aix.c147 while (isdigit(Py_CHARMASK(*message[i]))) message[i]++ ; in aix_loaderror()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dmystrtoul.c102 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()
Dgetargs.c264 else if (isalpha(Py_CHARMASK(c))) { in vgetargs1()
354 if (*format != '\0' && !isalpha(Py_CHARMASK(*format)) && in vgetargs1()
447 else if (level == 0 && isalpha(Py_CHARMASK(c))) in converttuple()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dstropmodule.c42 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()
732 int c = Py_CHARMASK(*s++); in strop_swapcase()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dstropmodule.c42 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 …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dbytes_methods.c262 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()
Dstringobject.c192 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()
689 isxdigit(Py_CHARMASK(s[0])) && in PyString_DecodeEscape()
690 isxdigit(Py_CHARMASK(s[1]))) in PyString_DecodeEscape()
693 c = Py_CHARMASK(*s); in PyString_DecodeEscape()
702 c = Py_CHARMASK(*s); in PyString_DecodeEscape()
1224 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in string_richcompare()
1815 while (i < len && memchr(sep, Py_CHARMASK(s[i]), seplen)) { in do_xstrip()
[all …]
Dbytearrayobject.c35 *value = Py_CHARMASK(((PyBytesObject*)arg)->ob_sval[0]); in _getbytevalue()
1487 c = Py_CHARMASK(*input++); in bytearray_translate()
1495 trans_table[i] = Py_CHARMASK(i); in bytearray_translate()
1498 trans_table[i] = Py_CHARMASK(table[i]); in bytearray_translate()
1502 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1; in bytearray_translate()
1505 c = Py_CHARMASK(*input++); in bytearray_translate()
1507 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in bytearray_translate()
Dintobject.c355 while (*s && isspace(Py_CHARMASK(*s))) in PyInt_FromString()
365 if (end == s || !isalnum(Py_CHARMASK(end[-1]))) in PyInt_FromString()
367 while (*end && isspace(Py_CHARMASK(*end))) in PyInt_FromString()
Dlongobject.c1669 while (_PyLong_DigitValue[Py_CHARMASK(*p)] < base) in long_from_binary_base()
1690 int k = _PyLong_DigitValue[Py_CHARMASK(*p)]; in long_from_binary_base()
1726 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
1734 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
1883 while (_PyLong_DigitValue[Py_CHARMASK(*scan)] < base) in PyLong_FromString()
1909 c = (digit)_PyLong_DigitValue[Py_CHARMASK(*str++)]; in PyLong_FromString()
1912 _PyLong_DigitValue[Py_CHARMASK(*str)]); in PyLong_FromString()
1969 while (*str && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dbytes_methods.c262 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()
Dstringobject.c192 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()
689 isxdigit(Py_CHARMASK(s[0])) && in PyString_DecodeEscape()
690 isxdigit(Py_CHARMASK(s[1]))) in PyString_DecodeEscape()
693 c = Py_CHARMASK(*s); in PyString_DecodeEscape()
702 c = Py_CHARMASK(*s); in PyString_DecodeEscape()
730 if (s < end && isxdigit(Py_CHARMASK(s[0]))) in PyString_DecodeEscape()
1229 c = Py_CHARMASK(*a->ob_sval) - Py_CHARMASK(*b->ob_sval); in string_richcompare()
[all …]
Dbytearrayobject.c35 *value = Py_CHARMASK(((PyBytesObject*)arg)->ob_sval[0]); in _getbytevalue()
1491 c = Py_CHARMASK(*input++); in bytearray_translate()
1499 trans_table[i] = Py_CHARMASK(i); in bytearray_translate()
1502 trans_table[i] = Py_CHARMASK(table[i]); in bytearray_translate()
1506 trans_table[(int) Py_CHARMASK( ((unsigned char*)vdel.buf)[i] )] = -1; in bytearray_translate()
1509 c = Py_CHARMASK(*input++); in bytearray_translate()
1511 if (Py_CHARMASK(*output++ = (char)trans_table[c]) == c) in bytearray_translate()
Dintobject.c369 while (*s && isspace(Py_CHARMASK(*s))) in PyInt_FromString()
379 if (end == s || !isalnum(Py_CHARMASK(end[-1]))) in PyInt_FromString()
381 while (*end && isspace(Py_CHARMASK(*end))) in PyInt_FromString()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Parser/
Dtokenizer.c564 return Py_CHARMASK(*tok->str++); in buf_getc()
572 assert(Py_CHARMASK(*tok->str) == c); /* tok->cur may point to read-only segment */ in buf_ungetc()
837 return Py_CHARMASK(*tok->cur++); /* Fast path */ in tok_nextc()
857 return Py_CHARMASK(*tok->cur++); in tok_nextc()
Dgrammar.c186 if (isalpha(Py_CHARMASK(lb->lb_str[1])) || in translabel()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Parser/
Dtokenizer.c584 return Py_CHARMASK(*tok->str++); in buf_getc()
592 assert(Py_CHARMASK(*tok->str) == c); /* tok->cur may point to read-only segment */ in buf_ungetc()
857 return Py_CHARMASK(*tok->cur++); /* Fast path */ in tok_nextc()
877 return Py_CHARMASK(*tok->cur++); in tok_nextc()
Dgrammar.c186 if (isalpha(Py_CHARMASK(lb->lb_str[1])) || in translabel()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/
Dlongobject.c1669 while (_PyLong_DigitValue[Py_CHARMASK(*p)] < base) in long_from_binary_base()
1690 int k = _PyLong_DigitValue[Py_CHARMASK(*p)]; in long_from_binary_base()
1726 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
1734 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
1883 while (_PyLong_DigitValue[Py_CHARMASK(*scan)] < base) in PyLong_FromString()
1909 c = (digit)_PyLong_DigitValue[Py_CHARMASK(*str++)]; in PyLong_FromString()
1912 _PyLong_DigitValue[Py_CHARMASK(*str)]); in PyLong_FromString()
1969 while (*str && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/
Dlongobject.c1683 while (_PyLong_DigitValue[Py_CHARMASK(*p)] < base) in long_from_binary_base()
1704 int k = _PyLong_DigitValue[Py_CHARMASK(*p)]; in long_from_binary_base()
1740 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
1748 while (*str != '\0' && isspace(Py_CHARMASK(*str))) in PyLong_FromString()
1897 while (_PyLong_DigitValue[Py_CHARMASK(*scan)] < base) in PyLong_FromString()
1923 c = (digit)_PyLong_DigitValue[Py_CHARMASK(*str++)]; in PyLong_FromString()
1926 _PyLong_DigitValue[Py_CHARMASK(*str)]); in PyLong_FromString()
1983 while (*str && isspace(Py_CHARMASK(*str))) in PyLong_FromString()

12