Home | History | Annotate | Download | only in re2

Lines Matching refs:re

35   virtual int PreVisit(Regexp* re, int parent_arg, bool* stop);
36 virtual int PostVisit(Regexp* re, int parent_arg, int pre_arg,
38 virtual int ShortVisit(Regexp* re, int parent_arg) {
59 // Visits re before children are processed.
61 int ToStringWalker::PreVisit(Regexp* re, int parent_arg, bool* stop) {
65 switch (re->op()) {
97 if (re->name()) {
99 t_->append(*re->name());
136 // Visits re after children are processed.
139 int ToStringWalker::PostVisit(Regexp* re, int parent_arg, int pre_arg,
142 switch (re->op()) {
157 AppendLiteral(t_, re->rune(), re->parse_flags() & Regexp::FoldCase);
161 for (int i = 0; i < re->nrunes(); i++)
162 AppendLiteral(t_, re->runes()[i], re->parse_flags() & Regexp::FoldCase);
185 if (re->parse_flags() & Regexp::NonGreedy)
193 if (re->parse_flags() & Regexp::NonGreedy)
201 if (re->parse_flags() & Regexp::NonGreedy)
208 if (re->max() == -1)
209 t_->append(StringPrintf("{%d,}", re->min()));
210 else if (re->min() == re->max())
211 t_->append(StringPrintf("{%d}", re->min()));
213 t_->append(StringPrintf("{%d,%d}", re->min(), re->max()));
214 if (re->parse_flags() & Regexp::NonGreedy)
241 if (re->parse_flags() & Regexp::WasDollar)
256 if (re->cc()->size() == 0) {
263 CharClass* cc = re->cc();
270 if (cc != re->cc())
284 t_->append("(?HaveMatch:%d)", re->match_id());