Searched refs:Prefilter (Results 1 – 11 of 11) sorted by relevance
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | prefilter.cc | 28 Prefilter::Prefilter(Op op) { in Prefilter() function in re2::Prefilter 32 subs_ = new std::vector<Prefilter*>; in Prefilter() 36 Prefilter::~Prefilter() { in ~Prefilter() 46 Prefilter* Prefilter::Simplify() { in Simplify() 63 Prefilter* a = (*subs_)[0]; in Simplify() 75 Prefilter* Prefilter::AndOr(Op op, Prefilter* a, Prefilter* b) { in AndOr() 82 Prefilter* t = a; in AndOr() 108 Prefilter* bb = (*b->subs())[i]; in AndOr() 119 Prefilter* t = a; in AndOr() 129 Prefilter* c = new Prefilter(op); in AndOr() [all …]
|
D | prefilter.h | 25 class Prefilter { 36 explicit Prefilter(Op op); 37 ~Prefilter(); 45 std::vector<Prefilter*>* subs() { in subs() 52 void set_subs(std::vector<Prefilter*>* subs) { subs_ = subs; } in set_subs() 57 static Prefilter* FromRE2(const RE2* re2); 67 static Prefilter* And(Prefilter* a, Prefilter* b); 71 static Prefilter* Or(Prefilter* a, Prefilter* b); 74 static Prefilter* AndOr(Op op, Prefilter* a, Prefilter* b); 76 static Prefilter* FromRegexp(Regexp* a); [all …]
|
D | prefilter_tree.cc | 44 void PrefilterTree::Add(Prefilter* prefilter) { in Add() 108 Prefilter* PrefilterTree::CanonicalNode(NodeMap* nodes, Prefilter* node) { in CanonicalNode() 116 std::string PrefilterTree::NodeString(Prefilter* node) const { in NodeString() 119 if (node->op() == Prefilter::ATOM) { in NodeString() 131 bool PrefilterTree::KeepNode(Prefilter* node) const { in KeepNode() 140 case Prefilter::ALL: in KeepNode() 141 case Prefilter::NONE: in KeepNode() 144 case Prefilter::ATOM: in KeepNode() 147 case Prefilter::AND: { in KeepNode() 149 std::vector<Prefilter*>* subs = node->subs(); in KeepNode() [all …]
|
D | prefilter_tree.h | 38 void Add(Prefilter* prefilter); 63 typedef std::map<std::string, Prefilter*> NodeMap; 88 bool KeepNode(Prefilter* node) const; 101 Prefilter* CanonicalNode(NodeMap* nodes, Prefilter* node); 105 std::string NodeString(Prefilter* node) const; 108 std::string DebugNodeString(Prefilter* node) const; 122 std::vector<Prefilter*> prefilter_vec_;
|
D | filtered_re2.cc | 64 Prefilter* prefilter = Prefilter::FromRE2(re2_vec_[i]); in Compile()
|
/external/rust/crates/aho-corasick/src/ |
D | prefilter.rs | 50 pub trait Prefilter: interface 67 fn clone_prefilter(&self) -> Box<dyn Prefilter>; in clone_prefilter() argument 96 impl<'a, P: Prefilter + ?Sized> Prefilter for &'a P { impl 107 fn clone_prefilter(&self) -> Box<dyn Prefilter> { in clone_prefilter() argument 123 pub struct PrefilterObj(Box<dyn Prefilter>); 133 pub fn new<T: Prefilter + 'static>(t: T) -> PrefilterObj { in new() 138 pub fn as_ref(&self) -> &dyn Prefilter { in as_ref() argument 364 impl Prefilter for Packed { 374 fn clone_prefilter(&self) -> Box<dyn Prefilter> { in clone_prefilter() argument 666 impl Prefilter for RareBytesOne { [all …]
|
D | automaton.rs | 2 use prefilter::{self, Candidate, Prefilter, PrefilterState}; 100 fn prefilter(&self) -> Option<&dyn Prefilter>; in prefilter() argument 212 prefilter: Option<&dyn Prefilter>, in standard_find_at_imp() argument 297 prefilter: Option<&dyn Prefilter>, in leftmost_find_at_imp() argument 396 prefilter: Option<&dyn Prefilter>, in leftmost_find_at_no_state_imp() argument
|
D | dfa.rs | 8 use prefilter::{Prefilter, PrefilterObj, PrefilterState}; 46 pub fn prefilter(&self) -> Option<&dyn Prefilter> { in prefilter() argument 163 fn prefilter(&self) -> Option<&dyn Prefilter> { in prefilter() argument 222 fn prefilter(&self) -> Option<&dyn Prefilter> { in prefilter() argument 283 fn prefilter(&self) -> Option<&dyn Prefilter> { in prefilter() argument 350 fn prefilter(&self) -> Option<&dyn Prefilter> { in prefilter() argument
|
D | ahocorasick.rs | 9 use prefilter::{Prefilter, PrefilterState}; 1080 fn prefilter(&self) -> Option<&dyn Prefilter> { in prefilter() argument
|
D | nfa.rs | 11 use prefilter::{self, opposite_ascii_case, Prefilter, PrefilterObj}; 228 fn prefilter(&self) -> Option<&dyn Prefilter> { in prefilter() argument
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/fuzzing/ |
D | re2_fuzzer.cc | 61 std::unique_ptr<re2::Prefilter> prefilter(re2::Prefilter::FromRE2(&re)); in TestOneInput() 64 std::queue<re2::Prefilter*> nodes; in TestOneInput() 67 re2::Prefilter* node = nodes.front(); in TestOneInput() 69 if (node->op() == re2::Prefilter::ATOM) { in TestOneInput() 72 } else if (node->op() == re2::Prefilter::AND || in TestOneInput() 73 node->op() == re2::Prefilter::OR) { in TestOneInput() 74 for (re2::Prefilter* sub : *node->subs()) in TestOneInput()
|