Searched refs:ptemplate (Results 1 – 2 of 2) sorted by relevance
/external/python/cpython2/Modules/ |
D | _sre.c | 2366 pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string, in pattern_subx() argument 2382 if (PyCallable_Check(ptemplate)) { in pattern_subx() 2384 filter = ptemplate; in pattern_subx() 2390 ptr = getstring(ptemplate, &n, &bint); in pattern_subx() 2405 filter = ptemplate; in pattern_subx() 2412 PyTuple_Pack(2, self, ptemplate) in pattern_subx() 2556 PyObject* ptemplate; in pattern_sub() local 2561 &ptemplate, &string, &count)) in pattern_sub() 2564 return pattern_subx(self, ptemplate, string, count, 0); in pattern_sub() 2570 PyObject* ptemplate; in pattern_subn() local [all …]
|
/external/python/cpython3/Modules/ |
D | _sre.c | 1051 pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string, in pattern_subx() argument 1068 if (PyCallable_Check(ptemplate)) { in pattern_subx() 1070 filter = ptemplate; in pattern_subx() 1077 ptr = getstring(ptemplate, &n, &isbytes, &charsize, &view); in pattern_subx() 1083 literal = PyUnicode_FindChar(ptemplate, '\\', 0, n, 1) == -1; in pattern_subx() 1091 filter = ptemplate; in pattern_subx() 1098 PyTuple_Pack(2, self, ptemplate) in pattern_subx()
|