Lines Matching refs:Regexp
9 #include "re2/regexp.h"
31 class ToStringWalker : public Regexp::Walker<int> {
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) {
48 string Regexp::ToString() {
61 int ToStringWalker::PreVisit(Regexp* re, int parent_arg, bool* stop) {
139 int ToStringWalker::PostVisit(Regexp* re, int parent_arg, int pre_arg,
157 AppendLiteral(t_, re->rune(), re->parse_flags() & Regexp::FoldCase);
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)
214 if (re->parse_flags() & Regexp::NonGreedy)
241 if (re->parse_flags() & Regexp::WasDollar)