Home
last modified time | relevance | path

Searched refs:SRE_CODE (Results 1 – 3 of 3) sorted by relevance

/third_party/python/Modules/
Dsre.h18 #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 const SRE_CODE* pattern; /* points to REPEAT operator arguments */
Dsre_lib.h16 SRE(at)(SRE_STATE* state, const SRE_CHAR* ptr, SRE_CODE at) in SRE()
104 SRE(charset)(SRE_STATE* state, const 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, const 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, const SRE_CODE* pattern, int toplevel);
205 SRE(count)(SRE_STATE* state, const 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.c50 #define SRE_CODE_BITS (8 * sizeof(SRE_CODE))
140 sre_category(SRE_CODE category, unsigned int ch) in sre_category()
187 char_loc_ignore(SRE_CODE pattern, SRE_CODE ch) in char_loc_ignore()
190 || (SRE_CODE) sre_lower_locale(ch) == pattern in char_loc_ignore()
191 || (SRE_CODE) sre_upper_locale(ch) == pattern; in char_loc_ignore()
291 return sizeof(SRE_CODE); in _sre_getcodesize_impl()
599 sre_match(SRE_STATE* state, SRE_CODE* pattern) in sre_match()
610 sre_search(SRE_STATE* state, SRE_CODE* pattern) in sre_search()
1431 self->code[i] = (SRE_CODE) value; in _sre_compile_impl()
1553 _validate_charset(SRE_CODE *code, SRE_CODE *end) in _validate_charset()
[all …]