Lines Matching refs:re
57 static void DumpRegexpAppending(Regexp* re, string* s) {
58 if (re->op() < 0 || re->op() >= arraysize(kOpcodeNames)) {
59 StringAppendF(s, "op%d", re->op());
61 switch (re->op()) {
68 if (re->parse_flags() & Regexp::NonGreedy)
72 s->append(kOpcodeNames[re->op()]);
73 if (re->op() == kRegexpLiteral && (re->parse_flags() & Regexp::FoldCase)) {
74 Rune r = re->rune();
78 if (re->op() == kRegexpLiteralString && (re->parse_flags() & Regexp::FoldCase)) {
79 for (int i = 0; i < re->nrunes(); i++) {
80 Rune r = re->runes()[i];
89 switch (re->op()) {
93 if (!(re->parse_flags() & Regexp::WasDollar)) {
98 Rune r = re->rune();
105 for (int i = 0; i < re->nrunes(); i++) {
106 Rune r = re->runes()[i];
114 for (int i = 0; i < re->nsub(); i++)
115 DumpRegexpAppending(re->sub()[i], s);
120 DumpRegexpAppending(re->sub()[0], s);
123 if (re->name()) {
124 s->append(*re->name());
127 DumpRegexpAppending(re->sub()[0], s);
130 s->append(StringPrintf("%d,%d ", re->min(), re->max()));
131 DumpRegexpAppending(re->sub()[0], s);
135 for (CharClass::iterator it = re->cc()->begin();
136 it != re->cc()->end(); ++it) {