Searched refs:SRE_CODE (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython2/Modules/ |
D | sre.h | 19 # define SRE_CODE Py_UCS4 macro 21 # define SRE_MAXREPEAT (~(SRE_CODE)0) 23 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX) 26 # define SRE_CODE unsigned int macro 28 # define SRE_MAXREPEAT (~(SRE_CODE)0) 30 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX) 45 SRE_CODE code[1]; 68 SRE_CODE* pattern; /* points to REPEAT operator arguments */
|
D | _sre.c | 189 sre_category(SRE_CODE category, unsigned int ch) in sre_category() 337 SRE_AT(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at) in SRE_AT() 427 SRE_CHARSET(SRE_CODE* set, SRE_CODE ch) in SRE_CHARSET() 454 if (sizeof(SRE_CODE) == 2) { in SRE_CHARSET() 485 if (sizeof(SRE_CODE) == 2) { in SRE_CHARSET() 516 LOCAL(Py_ssize_t) SRE_MATCH(SRE_STATE* state, SRE_CODE* pattern); 519 SRE_COUNT(SRE_STATE* state, SRE_CODE* pattern, Py_ssize_t maxcount) in SRE_COUNT() 521 SRE_CODE chr; in SRE_COUNT() 557 while (ptr < end && (SRE_CODE) *ptr == chr) in SRE_COUNT() 565 while (ptr < end && (SRE_CODE) state->lower(*ptr) == chr) in SRE_COUNT() [all …]
|
/external/python/cpython3/Modules/ |
D | sre.h | 18 #define SRE_CODE Py_UCS4 macro 20 # define SRE_MAXREPEAT (~(SRE_CODE)0) 21 # define SRE_MAXGROUPS ((~(SRE_CODE)0) / 2) 23 # define SRE_MAXREPEAT ((SRE_CODE)PY_SSIZE_T_MAX) 24 # define SRE_MAXGROUPS ((SRE_CODE)PY_SSIZE_T_MAX / SIZEOF_SIZE_T / 2) 39 SRE_CODE code[1]; 57 SRE_CODE* pattern; /* points to REPEAT operator arguments */
|
D | sre_lib.h | 16 SRE(at)(SRE_STATE* state, SRE_CHAR* ptr, SRE_CODE at) in SRE() 104 SRE(charset)(SRE_STATE* state, SRE_CODE* set, SRE_CODE ch) in SRE() 148 SRE_CODE uch; in SRE() 173 set += 256/sizeof(SRE_CODE); in SRE() 191 SRE(charset_loc_ignore)(SRE_STATE* state, SRE_CODE* set, SRE_CODE ch) in SRE() 193 SRE_CODE lo, up; in SRE() 202 LOCAL(Py_ssize_t) SRE(match)(SRE_STATE* state, SRE_CODE* pattern, int toplevel); 205 SRE(count)(SRE_STATE* state, SRE_CODE* pattern, Py_ssize_t maxcount) in SRE() 207 SRE_CODE chr; in SRE() 246 if ((SRE_CODE) c != chr) in SRE() [all …]
|
D | _sre.c | 48 #define SRE_CODE_BITS (8 * sizeof(SRE_CODE)) 138 sre_category(SRE_CODE category, unsigned int ch) in sre_category() 185 char_loc_ignore(SRE_CODE pattern, SRE_CODE ch) in char_loc_ignore() 188 || (SRE_CODE) sre_lower_locale(ch) == pattern in char_loc_ignore() 189 || (SRE_CODE) sre_upper_locale(ch) == pattern; in char_loc_ignore() 275 return sizeof(SRE_CODE); in _sre_getcodesize_impl() 557 sre_match(SRE_STATE* state, SRE_CODE* pattern) in sre_match() 568 sre_search(SRE_STATE* state, SRE_CODE* pattern) in sre_search() 1355 self->code[i] = (SRE_CODE) value; in _sre_compile_impl() 1476 _validate_charset(SRE_CODE *code, SRE_CODE *end) in _validate_charset() [all …]
|