Lines Matching refs:PatternObject
1657 static PyObject*pattern_new_match(PatternObject*, SRE_STATE*, int);
1658 static PyObject*pattern_scanner(PatternObject*, PyObject*);
1764 state_init(SRE_STATE* state, PatternObject* pattern, PyObject* string, in state_init()
1879 pattern_dealloc(PatternObject* self) in pattern_dealloc()
1927 pattern_match(PatternObject* self, PyObject* args, PyObject* kw) in pattern_match()
1973 pattern_search(PatternObject* self, PyObject* args, PyObject* kw) in pattern_search()
2112 pattern_findall(PatternObject* self, PyObject* args, PyObject* kw) in pattern_findall()
2223 pattern_finditer(PatternObject* pattern, PyObject* args) in pattern_finditer()
2246 pattern_split(PatternObject* self, PyObject* args, PyObject* kw) in pattern_split()
2380 pattern_subx(PatternObject* self, PyObject* ptemplate, PyObject* string, in pattern_subx()
2568 pattern_sub(PatternObject* self, PyObject* args, PyObject* kw) in pattern_sub()
2582 pattern_subn(PatternObject* self, PyObject* args, PyObject* kw) in pattern_subn()
2596 pattern_copy(PatternObject* self, PyObject *unused) in pattern_copy()
2599 PatternObject* copy; in pattern_copy()
2602 copy = PyObject_NEW_VAR(PatternObject, &Pattern_Type, self->codesize); in pattern_copy()
2606 offset = offsetof(PatternObject, groups); in pattern_copy()
2613 sizeof(PatternObject) + self->codesize * sizeof(SRE_CODE) - offset); in pattern_copy()
2624 pattern_deepcopy(PatternObject* self, PyObject* memo) in pattern_deepcopy()
2627 PatternObject* copy; in pattern_deepcopy()
2629 copy = (PatternObject*) pattern_copy(self); in pattern_deepcopy()
2705 #define PAT_OFF(x) offsetof(PatternObject, x)
2717 sizeof(PatternObject), sizeof(SRE_CODE),
2738 offsetof(PatternObject, weakreflist), /* tp_weaklistoffset */
2745 static int _validate(PatternObject *self); /* Forward */
2752 PatternObject* self; in _compile()
2768 self = PyObject_NEW_VAR(PatternObject, &Pattern_Type, n); in _compile()
3276 _validate(PatternObject *self) in _validate()
3789 pattern_new_match(PatternObject* pattern, SRE_STATE* state, int status) in pattern_new_match()
3887 match = pattern_new_match((PatternObject*) self->pattern, in scanner_match()
3927 match = pattern_new_match((PatternObject*) self->pattern, in scanner_search()
3987 pattern_scanner(PatternObject* pattern, PyObject* args) in pattern_scanner()