Changeset 391 for python/trunk/Include/bytes_methods.h
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Include/bytes_methods.h
r2 r391 35 35 extern const char _Py_swapcase__doc__[]; 36 36 37 #define FLAG_LOWER 0x01 38 #define FLAG_UPPER 0x02 39 #define FLAG_ALPHA (FLAG_LOWER|FLAG_UPPER) 40 #define FLAG_DIGIT 0x04 41 #define FLAG_ALNUM (FLAG_ALPHA|FLAG_DIGIT) 42 #define FLAG_SPACE 0x08 43 #define FLAG_XDIGIT 0x10 44 45 extern const unsigned int _Py_ctype_table[256]; 46 47 #define ISLOWER(c) (_Py_ctype_table[Py_CHARMASK(c)] & FLAG_LOWER) 48 #define ISUPPER(c) (_Py_ctype_table[Py_CHARMASK(c)] & FLAG_UPPER) 49 #define ISALPHA(c) (_Py_ctype_table[Py_CHARMASK(c)] & FLAG_ALPHA) 50 #define ISDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & FLAG_DIGIT) 51 #define ISXDIGIT(c) (_Py_ctype_table[Py_CHARMASK(c)] & FLAG_XDIGIT) 52 #define ISALNUM(c) (_Py_ctype_table[Py_CHARMASK(c)] & FLAG_ALNUM) 53 #define ISSPACE(c) (_Py_ctype_table[Py_CHARMASK(c)] & FLAG_SPACE) 37 /* These are left in for backward compatibility and will be removed 38 in 2.8/3.2 */ 39 #define ISLOWER(c) Py_ISLOWER(c) 40 #define ISUPPER(c) Py_ISUPPER(c) 41 #define ISALPHA(c) Py_ISALPHA(c) 42 #define ISDIGIT(c) Py_ISDIGIT(c) 43 #define ISXDIGIT(c) Py_ISXDIGIT(c) 44 #define ISALNUM(c) Py_ISALNUM(c) 45 #define ISSPACE(c) Py_ISSPACE(c) 54 46 55 47 #undef islower … … 68 60 #define isspace(c) undefined_isspace(c) 69 61 70 extern const unsigned char _Py_ctype_tolower[256]; 71 extern const unsigned char _Py_ctype_toupper[256]; 72 73 #define TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)]) 74 #define TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)]) 62 /* These are left in for backward compatibility and will be removed 63 in 2.8/3.2 */ 64 #define TOLOWER(c) Py_TOLOWER(c) 65 #define TOUPPER(c) Py_TOUPPER(c) 75 66 76 67 #undef tolower
Note:
See TracChangeset
for help on using the changeset viewer.