Lines Matching refs:re
32 static bool CanBeEmptyString(Regexp *re);
40 bool PostVisit(Regexp* re, bool parent_arg, bool pre_arg, bool* child_args,
43 bool ShortVisit(Regexp* re, bool a) { in ShortVisit() argument
53 bool PCREWalker::PostVisit(Regexp* re, bool parent_arg, bool pre_arg, in PostVisit() argument
61 switch (re->op()) { in PostVisit()
66 if (CanBeEmptyString(re->sub()[0])) in PostVisit()
70 if (re->max() == -1 && CanBeEmptyString(re->sub()[0])) in PostVisit()
76 if (re->rune() == '\v') in PostVisit()
83 if (re->parse_flags() & Regexp::WasDollar) in PostVisit()
117 bool PostVisit(Regexp* re, bool parent_arg, bool pre_arg,
120 bool ShortVisit(Regexp* re, bool a) { in ShortVisit() argument
134 bool EmptyStringWalker::PostVisit(Regexp* re, bool parent_arg, bool pre_arg, in PostVisit() argument
136 switch (re->op()) { in PostVisit()
174 return child_args[0] || re->min() == 0; in PostVisit()
180 static bool CanBeEmptyString(Regexp* re) { in CanBeEmptyString() argument
182 return w.Walk(re, true); in CanBeEmptyString()