13 #include "re2/prefilter.h"
15 #include "re2/regexp.h"
67 if (prefilter ==
nullptr)
69 std::queue<re2::Prefilter*> nodes;
70 nodes.push(prefilter.get());
71 while (!nodes.empty()) {
75 if (node->
atom().size() > 9)
86 int size = re.ProgramSize();
89 int rsize = re.ReverseProgramSize();
96 int fanout = re.ProgramFanout(&
histogram);
99 int rfanout = re.ReverseProgramFanout(&
histogram);
103 if (re.NumberOfCapturingGroups() == 0) {
106 RE2::FullMatch(sp, re);
107 RE2::PartialMatch(sp, re);
116 RE2::FullMatch(sp, re, &s);
118 RE2::PartialMatch(sp, re, &
l);
129 RE2::GlobalReplace(&s, re,
"");
132 re.PossibleMatchRange(&
min, &
max, 9);
135 dummy += re.NamedCapturingGroups().size();
136 dummy += re.CapturingGroupNames().size();
157 : RE2::Options::EncodingUTF8);