Lines Matching refs:sset
83 Bytes(ref sset) => sset.find(haystack).map(|i| (i, i + 1)), in find()
124 Matcher::Bytes(ref sset) => LiteralIter::Bytes(&sset.dense), in iter()
151 Bytes(ref sset) => sset.dense.len(), in len()
163 Bytes(ref sset) => sset.approximate_size(), in approximate_size()
173 let sset = SingleByteSet::prefixes(lits); in prefixes() localVariable
174 Matcher::new(lits, sset) in prefixes()
178 let sset = SingleByteSet::suffixes(lits); in suffixes() localVariable
179 Matcher::new(lits, sset) in suffixes()
182 fn new(lits: &Literals, sset: SingleByteSet) -> Self { in new()
186 if sset.dense.len() >= 26 { in new()
195 if sset.complete { in new()
196 return Matcher::Bytes(sset); in new()
203 let is_aho_corasick_fast = sset.dense.len() <= 1 && sset.all_ascii; in new()
295 let mut sset = SingleByteSet::new(); in prefixes() localVariable
297 sset.complete = sset.complete && lit.len() == 1; in prefixes()
299 if !sset.sparse[b as usize] { in prefixes()
301 sset.all_ascii = false; in prefixes()
303 sset.dense.push(b); in prefixes()
304 sset.sparse[b as usize] = true; in prefixes()
308 sset in prefixes()
312 let mut sset = SingleByteSet::new(); in suffixes() localVariable
314 sset.complete = sset.complete && lit.len() == 1; in suffixes()
316 if !sset.sparse[b as usize] { in suffixes()
318 sset.all_ascii = false; in suffixes()
320 sset.dense.push(b); in suffixes()
321 sset.sparse[b as usize] = true; in suffixes()
325 sset in suffixes()