Lines Matching refs:finder
36 let finder = memmem::Finder::new(needle).into_owned(); in prebuilt() localVariable
37 move |h| finder.find(h.as_bytes()).is_some() in prebuilt()
74 let finder = memmem::FinderRev::new(needle).into_owned(); in prebuilt() localVariable
75 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt()
115 fn finder(needle: &[u8]) -> memmem::Finder<'_> { in finder() function
122 finder(needle.as_bytes()).find(haystack.as_bytes()).is_some() in oneshot()
128 let finder = finder(needle.as_bytes()).into_owned(); in prebuilt() localVariable
129 move |h| finder.find(h.as_bytes()).is_some() in prebuilt()
139 |h, n| finder(n).find(h), in oneshotiter()
144 PrebuiltIter(finder(needle.as_bytes()).into_owned()) in prebuiltiter()
165 fn finder(needle: &[u8]) -> memmem::FinderRev<'_> { in finder() function
172 finder(needle.as_bytes()).rfind(haystack.as_bytes()).is_some() in oneshot()
178 let finder = finder(needle.as_bytes()).into_owned(); in prebuilt() localVariable
179 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt()
189 |h, n| finder(n).rfind(h), in oneshotiter()
194 PrebuiltIter(finder(needle.as_bytes()).into_owned()) in prebuiltiter()
230 let finder = bstr::Finder::new(needle).into_owned(); in prebuilt() localVariable
231 move |h| finder.find(h.as_bytes()).is_some() in prebuilt()
271 let finder = bstr::FinderReverse::new(needle).into_owned(); in prebuilt() localVariable
272 move |h| finder.rfind(h.as_bytes()).is_some() in prebuilt()
327 let finder = regex::Regex::new(®ex::escape(needle)).unwrap(); in prebuilt() localVariable
328 move |h| finder.is_match(h) in prebuilt()
571 let finder = sliceslice::x86::DynamicAvx2Searcher::new(needle); in oneshot() localVariable
572 finder.search_in(haystack.as_bytes()) in oneshot()
586 let finder = sliceslice::x86::DynamicAvx2Searcher::new(needle); in prebuilt() localVariable
587 move |h| finder.search_in(h.as_bytes()) in prebuilt()