Home
last modified time | relevance | path

Searched refs:groupindex (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython3/Lib/
Dcsv.py233 groupindex = regexp.groupindex
235 n = groupindex['quote'] - 1
240 n = groupindex['delim'] - 1
247 n = groupindex['space'] - 1
Dsre_compile.py775 groupindex = p.pattern.groupdict
777 for k, i in groupindex.items():
783 groupindex, tuple(indexgroup)
Dsre_parse.py968 groupindex = pattern.groupindex
983 index = groupindex[name]
/external/python/cpython3/Modules/
D_sre.c558 Py_XDECREF(self->groupindex); in pattern_dealloc()
1317 if (self->groupindex == NULL) in pattern_groupindex()
1319 return PyDictProxy_New(self->groupindex); in pattern_groupindex()
1338 PyObject *code, Py_ssize_t groups, PyObject *groupindex, in _sre_compile_impl() argument
1354 self->groupindex = NULL; in _sre_compile_impl()
1399 if (PyDict_GET_SIZE(groupindex) > 0) { in _sre_compile_impl()
1400 Py_INCREF(groupindex); in _sre_compile_impl()
1401 self->groupindex = groupindex; in _sre_compile_impl()
1955 if (self->pattern->groupindex) { in match_getindex()
1956 index = PyDict_GetItem(self->pattern->groupindex, index); in match_getindex()
[all …]
Dsre.h30 PyObject* groupindex; /* dict */ member
/external/python/cpython2/Lib/
Dcsv.py234 n = regexp.groupindex['quote'] - 1
239 n = regexp.groupindex['delim'] - 1
246 n = regexp.groupindex['space'] - 1
Dsre_compile.py587 groupindex = p.pattern.groupdict
589 for k, i in groupindex.items():
595 groupindex, indexgroup
Dsre_parse.py803 index = pattern.groupindex[name]
/external/python/cpython3/Modules/clinic/
D_sre.c.h491 PyObject *code, Py_ssize_t groups, PyObject *groupindex,
504 PyObject *groupindex; in _sre_compile() local
508 …&pattern, &flags, &PyList_Type, &code, &groups, &PyDict_Type, &groupindex, &PyTuple_Type, &indexgr… in _sre_compile()
511 return_value = _sre_compile_impl(module, pattern, flags, code, groups, groupindex, indexgroup); in _sre_compile()
/external/python/cpython2/Modules/
Dsre.h37 PyObject* groupindex; member
D_sre.c1884 Py_XDECREF(self->groupindex); in pattern_dealloc()
2608 Py_XINCREF(self->groupindex); in pattern_copy()
2633 if (!deepcopy(&copy->groupindex, memo) || in pattern_deepcopy()
2710 {"groupindex", T_OBJECT, PAT_OFF(groupindex), READONLY},
2759 PyObject* groupindex = NULL; in _compile() local
2763 &groupindex, &indexgroup)) in _compile()
2773 self->groupindex = NULL; in _compile()
2809 Py_XINCREF(groupindex); in _compile()
2810 self->groupindex = groupindex; in _compile()
3335 if (self->pattern->groupindex) { in match_getindex()
[all …]
/external/python/cpython3/Lib/test/
Dtest_re.py628 self.assertEqual(re.compile("(?i)(a)(b)").groupindex, {})
629 self.assertEqual(re.compile("(?i)(?P<first>a)(?P<other>b)").groupindex,
640 self.assertEqual(sorted(p.groupindex), ['first', 'other'])
641 self.assertEqual(p.groupindex['other'], 2)
643 p.groupindex['other'] = 0
644 self.assertEqual(p.groupindex['other'], 2)
2218 for i in result.re.groupindex.keys():
/external/libchrome/third_party/ply/
Dlex.py489 lexindexfunc = [ None ] * (max(lexre.groupindex.values())+1)
492 for f,i in lexre.groupindex.items():
/external/ply/ply/ply/
Dlex.py501 lexindexfunc = [None] * (max(lexre.groupindex.values()) + 1)
504 for f, i in lexre.groupindex.items():
/external/selinux/python/sepolgen/src/sepolgen/
Dlex.py501 lexindexfunc = [None] * (max(lexre.groupindex.values()) + 1)
504 for f, i in lexre.groupindex.items():
/external/python/cpython3/Misc/NEWS.d/
D3.5.0a3.rst65 The groupindex attribute of regular expression pattern object now is
/external/python/cpython2/Parser/
Dspark.py44 for name, number in self.re.groupindex.items():
/external/python/cpython2/Lib/test/
Dtest_re.py1256 for i in result.re.groupindex.keys():
/external/python/cpython2/Doc/library/
Dre.rst833 .. attribute:: RegexObject.groupindex
/external/python/cpython3/Doc/library/
Dre.rst1103 .. attribute:: Pattern.groupindex
/external/python/cpython2/Misc/
Dcheatsheet1716 groupindex dictionary of {group name: group number} in pattern