Lines Matching refs:needles

24         assert!(!statict.needles.contains(&b'%'), "% is an invalid needle");  in memchr_tests()
25 assert!(!statict.needles.contains(&b'#'), "# is an invalid needle"); in memchr_tests()
29 needles: statict.needles.to_vec(), in memchr_tests()
47 MemchrTestStatic { corpus: "a", needles: &[b'a'], positions: &[0] },
48 MemchrTestStatic { corpus: "aa", needles: &[b'a'], positions: &[0, 1] },
51 needles: &[b'a'],
54 MemchrTestStatic { corpus: "", needles: &[b'a'], positions: &[] },
55 MemchrTestStatic { corpus: "z", needles: &[b'a'], positions: &[] },
56 MemchrTestStatic { corpus: "zz", needles: &[b'a'], positions: &[] },
57 MemchrTestStatic { corpus: "zza", needles: &[b'a'], positions: &[2] },
58 MemchrTestStatic { corpus: "zaza", needles: &[b'a'], positions: &[1, 3] },
59 MemchrTestStatic { corpus: "zzza", needles: &[b'a'], positions: &[3] },
60 MemchrTestStatic { corpus: "\x00a", needles: &[b'a'], positions: &[1] },
61 MemchrTestStatic { corpus: "\x00", needles: &[b'\x00'], positions: &[0] },
64 needles: &[b'\x00'],
69 needles: &[b'\x00'],
74 needles: &[b'a'],
79 needles: &[b'a'],
85 needles: &[b'a', b'z'],
90 needles: &[b'a', b'z'],
93 MemchrTestStatic { corpus: "az", needles: &[b'x', b'y'], positions: &[] },
94 MemchrTestStatic { corpus: "az", needles: &[b'a', b'y'], positions: &[0] },
95 MemchrTestStatic { corpus: "az", needles: &[b'x', b'z'], positions: &[1] },
98 needles: &[b'a', b'z'],
103 needles: &[b'z', b'a'],
109 needles: &[b'x', b'y', b'z'],
114 needles: &[b'x', b'y', b'z'],
119 needles: &[b'x', b'a', b'z'],
124 needles: &[b't', b'a', b'z'],
129 needles: &[b't', b'a', b'z'],
152 needles: Vec<u8>, field
161 needles: &'static [u8], field
167 let needles = match self.needles(1) { in one() localVariable
169 Some(needles) => needles, in one()
183 f(needles[0], corpus.as_bytes()), in one()
185 needles[0] as char, in one()
194 let needles = match self.needles(2) { in two() localVariable
196 Some(needles) => needles, in two()
202 f(needles[0], needles[1], corpus.as_bytes()), in two()
205 needles[0] as char, in two()
206 needles[1] as char, in two()
219 let needles = match self.needles(3) { in three() localVariable
221 Some(needles) => needles, in three()
227 f(needles[0], needles[1], needles[2], corpus.as_bytes()), in three()
230 needles[0] as char, in three()
231 needles[1] as char, in three()
232 needles[2] as char, in three()
245 if let Some(ns) = self.needles(1) { in iter_one()
255 if let Some(ns) = self.needles(2) { in iter_two()
265 if let Some(ns) = self.needles(3) { in iter_three()
278 self.needles.iter().map(|&b| b as char).collect::<Vec<char>>(), in iter()
330 fn needles(&self, count: usize) -> Option<Vec<u8>> { in needles() method
331 if self.needles.len() > count { in needles()
335 let mut needles = self.needles.to_vec(); in needles() localVariable
336 for _ in needles.len()..count { in needles()
338 needles.push(b'#'); in needles()
340 Some(needles) in needles()