Home
last modified time | relevance | path

Searched refs:Prefilter (Results 1 – 5 of 5) sorted by relevance

/external/regex-re2/re2/
Dprefilter.cc20 Prefilter::Prefilter(Op op) { in Prefilter() function in re2::Prefilter
24 subs_ = new vector<Prefilter*>; in Prefilter()
31 Prefilter::~Prefilter() { in ~Prefilter()
42 Prefilter* Prefilter::Simplify() { in Simplify()
59 Prefilter* a = (*subs_)[0]; in Simplify()
71 Prefilter* Prefilter::AndOr(Op op, Prefilter* a, Prefilter* b) { in AndOr()
78 Prefilter* t = a; in AndOr()
104 Prefilter* bb = (*b->subs())[i]; in AndOr()
115 Prefilter* t = a; in AndOr()
125 Prefilter* c = new Prefilter(op); in AndOr()
[all …]
Dprefilter.h20 class Prefilter {
31 explicit Prefilter(Op op);
32 ~Prefilter();
40 vector<Prefilter*>* subs() { in subs()
47 void set_subs(vector<Prefilter*>* subs) { subs_ = subs; } in set_subs()
52 static Prefilter* FromRE2(const RE2* re2);
62 static Prefilter* And(Prefilter* a, Prefilter* b);
66 static Prefilter* Or(Prefilter* a, Prefilter* b);
69 static Prefilter* AndOr(Op op, Prefilter* a, Prefilter* b);
71 static Prefilter* FromRegexp(Regexp* a);
[all …]
Dprefilter_tree.cc31 static bool KeepPart(Prefilter* prefilter, int level) { in KeepPart()
41 case Prefilter::ALL: in KeepPart()
44 case Prefilter::ATOM: in KeepPart()
48 case Prefilter::AND: { in KeepPart()
50 vector<Prefilter*>* subs = prefilter->subs(); in KeepPart()
61 case Prefilter::OR: in KeepPart()
69 void PrefilterTree::Add(Prefilter *f) { in Add()
129 Prefilter* PrefilterTree::CanonicalNode(Prefilter* node) { in CanonicalNode()
131 map<string, Prefilter*>::iterator iter = node_map_.find(node_string); in CanonicalNode()
143 string PrefilterTree::NodeString(Prefilter* node) const { in NodeString()
[all …]
Dprefilter_tree.h26 class Prefilter; variable
36 void Add(Prefilter* prefilter);
93 Prefilter* CanonicalNode(Prefilter* node);
97 string NodeString(Prefilter* node) const;
100 string DebugNodeString(Prefilter* node) const;
110 map<string, Prefilter*> node_map_;
117 vector<Prefilter*> prefilter_vec_;
Dfiltered_re2.cc50 Prefilter* prefilter = Prefilter::FromRE2(re2_vec_[i]); in Compile()