Home
last modified time | relevance | path

Searched refs:indexgroup (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Modules/
Dsre.h31 PyObject* indexgroup; /* tuple */ member
D_sre.c552 Py_XDECREF(self->indexgroup); in pattern_dealloc()
1331 PyObject *indexgroup) in _sre_compile_impl() argument
1347 self->indexgroup = NULL; in _sre_compile_impl()
1394 if (PyTuple_GET_SIZE(indexgroup) > 0) { in _sre_compile_impl()
1395 Py_INCREF(indexgroup); in _sre_compile_impl()
1396 self->indexgroup = indexgroup; in _sre_compile_impl()
2278 if (self->pattern->indexgroup && in match_lastgroup_get()
2280 self->lastindex < PyTuple_GET_SIZE(self->pattern->indexgroup)) in match_lastgroup_get()
2282 PyObject *result = PyTuple_GET_ITEM(self->pattern->indexgroup, in match_lastgroup_get()
/external/python/cpython2/Modules/
Dsre.h38 PyObject* indexgroup; member
D_sre.c1885 Py_XDECREF(self->indexgroup); in pattern_dealloc()
2609 Py_XINCREF(self->indexgroup); in pattern_copy()
2634 !deepcopy(&copy->indexgroup, memo) || in pattern_deepcopy()
2760 PyObject* indexgroup = NULL; in _compile() local
2763 &groupindex, &indexgroup)) in _compile()
2774 self->indexgroup = NULL; in _compile()
2812 Py_XINCREF(indexgroup); in _compile()
2813 self->indexgroup = indexgroup; in _compile()
3714 if (self->pattern->indexgroup && self->lastindex >= 0) { in match_lastgroup_get()
3716 self->pattern->indexgroup, self->lastindex in match_lastgroup_get()
/external/python/cpython2/Lib/
Dsre_compile.py588 indexgroup = [None] * p.pattern.groups
590 indexgroup[i] = k
595 groupindex, indexgroup
/external/python/cpython3/Modules/clinic/
D_sre.c.h866 PyObject *indexgroup);
880 PyObject *indexgroup; in _sre_compile() local
927 indexgroup = args[5]; in _sre_compile()
928 return_value = _sre_compile_impl(module, pattern, flags, code, groups, groupindex, indexgroup); in _sre_compile()
/external/python/cpython3/Lib/
Dsre_compile.py776 indexgroup = [None] * p.state.groups
778 indexgroup[i] = k
783 groupindex, tuple(indexgroup)