Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/clinic/
D_sre.c.h492 PyObject *indexgroup);
505 PyObject *indexgroup; in _sre_compile() local
508 …rn, &flags, &PyList_Type, &code, &groups, &PyDict_Type, &groupindex, &PyTuple_Type, &indexgroup)) { in _sre_compile()
511 return_value = _sre_compile_impl(module, pattern, flags, code, groups, groupindex, indexgroup); in _sre_compile()
/external/python/cpython3/Modules/
D_sre.c559 Py_XDECREF(self->indexgroup); in pattern_dealloc()
1339 PyObject *indexgroup) in _sre_compile_impl() argument
1355 self->indexgroup = NULL; in _sre_compile_impl()
1402 if (PyTuple_GET_SIZE(indexgroup) > 0) { in _sre_compile_impl()
1403 Py_INCREF(indexgroup); in _sre_compile_impl()
1404 self->indexgroup = indexgroup; in _sre_compile_impl()
2292 if (self->pattern->indexgroup && in match_lastgroup_get()
2294 self->lastindex < PyTuple_GET_SIZE(self->pattern->indexgroup)) in match_lastgroup_get()
2296 PyObject *result = PyTuple_GET_ITEM(self->pattern->indexgroup, in match_lastgroup_get()
Dsre.h31 PyObject* indexgroup; /* tuple */ member
/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/Lib/
Dsre_compile.py776 indexgroup = [None] * p.pattern.groups
778 indexgroup[i] = k
783 groupindex, tuple(indexgroup)