Home | History | Annotate | Download | only in re2

Lines Matching refs:re

31 // Returns whether re might match an empty string.
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) {
50 // Called after visiting each of re's children and accumulating
53 bool PCREWalker::PostVisit(Regexp* re, bool parent_arg, bool pre_arg,
61 switch (re->op()) {
66 if (CanBeEmptyString(re->sub()[0]))
70 if (re->max() == -1 && CanBeEmptyString(re->sub()[0]))
76 if (re->rune() == '\v')
83 if (re->parse_flags() & Regexp::WasDollar)
117 bool PostVisit(Regexp* re, bool parent_arg, bool pre_arg,
120 bool ShortVisit(Regexp* re, bool a) {
130 // Called after visiting re's children. child_args contains the return
134 bool EmptyStringWalker::PostVisit(Regexp* re, bool parent_arg, bool pre_arg,
136 switch (re->op()) {
174 return child_args[0] || re->min() == 0;
179 // Returns whether re can match an empty string.
180 static bool CanBeEmptyString(Regexp* re) {
182 return w.Walk(re, true);