• Home
  • Raw
  • Download

Lines Matching refs:lits

34     AC { ac: AhoCorasick<u32>, lits: Vec<Literal> },
41 Packed { s: packed::Searcher, lits: Vec<Literal> },
51 pub fn prefixes(lits: Literals) -> Self { in prefixes()
52 let matcher = Matcher::prefixes(&lits); in prefixes()
53 Self::new(lits, matcher) in prefixes()
57 pub fn suffixes(lits: Literals) -> Self { in suffixes()
58 let matcher = Matcher::suffixes(&lits); in suffixes()
59 Self::new(lits, matcher) in suffixes()
62 fn new(lits: Literals, matcher: Matcher) -> Self { in new()
63 let complete = lits.all_complete(); in new()
66 lcp: FreqyPacked::new(lits.longest_common_prefix().to_vec()), in new()
67 lcs: FreqyPacked::new(lits.longest_common_suffix().to_vec()), in new()
133 Matcher::AC { ref lits, .. } => LiteralIter::AC(lits), in iter()
134 Matcher::Packed { ref lits, .. } => LiteralIter::Packed(lits), in iter()
162 Packed { ref lits, .. } => lits.len(), in len()
181 fn prefixes(lits: &Literals) -> Self { in prefixes()
182 let sset = SingleByteSet::prefixes(lits); in prefixes()
183 Matcher::new(lits, sset) in prefixes()
186 fn suffixes(lits: &Literals) -> Self { in suffixes()
187 let sset = SingleByteSet::suffixes(lits); in suffixes()
188 Matcher::new(lits, sset) in suffixes()
191 fn new(lits: &Literals, sset: SingleByteSet) -> Self { in new()
192 if lits.literals().is_empty() { in new()
207 if lits.literals().len() == 1 { in new()
208 let lit = lits.literals()[0].to_vec(); in new()
216 let pats = lits.literals().to_owned(); in new()
218 if lits.literals().len() <= 100 && !is_aho_corasick_fast { in new()
223 return Matcher::Packed { s, lits: pats }; in new()
231 Matcher::AC { ac, lits: pats } in new()
268 LiteralIter::AC(ref mut lits) => { in next()
269 if lits.is_empty() { in next()
272 let next = &lits[0]; in next()
273 *lits = &lits[1..]; in next()
277 LiteralIter::Packed(ref mut lits) => { in next()
278 if lits.is_empty() { in next()
281 let next = &lits[0]; in next()
282 *lits = &lits[1..]; in next()
308 fn prefixes(lits: &Literals) -> SingleByteSet { in prefixes()
310 for lit in lits.literals() { in prefixes()
325 fn suffixes(lits: &Literals) -> SingleByteSet { in suffixes()
327 for lit in lits.literals() { in suffixes()