Lines Matching refs:memmem
27 use memchr::memmem;
30 memmem::find(haystack.as_bytes(), needle.as_bytes()).is_some() in oneshot()
36 let finder = memmem::Finder::new(needle).into_owned(); in prebuilt()
44 memmem::find_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
48 PrebuiltIter(memmem::Finder::new(needle).into_owned()) in prebuiltiter()
52 pub(crate) struct PrebuiltIter(memmem::Finder<'static>);
65 use memchr::memmem;
68 memmem::rfind(haystack.as_bytes(), needle.as_bytes()).is_some() in oneshot()
74 let finder = memmem::FinderRev::new(needle).into_owned(); in prebuilt()
82 memmem::rfind_iter(haystack.as_bytes(), needle.as_bytes()) in oneshotiter()
86 PrebuiltIter(memmem::FinderRev::new(needle).into_owned()) in prebuiltiter()
90 pub(crate) struct PrebuiltIter(memmem::FinderRev<'static>);
113 use memchr::memmem;
115 fn finder(needle: &[u8]) -> memmem::Finder<'_> { in finder()
116 memmem::FinderBuilder::new() in finder()
117 .prefilter(memmem::Prefilter::None) in finder()
148 pub(crate) struct PrebuiltIter(memmem::Finder<'static>);
163 use memchr::memmem;
165 fn finder(needle: &[u8]) -> memmem::FinderRev<'_> { in finder()
166 memmem::FinderBuilder::new() in finder()
167 .prefilter(memmem::Prefilter::None) in finder()
198 pub(crate) struct PrebuiltIter(memmem::FinderRev<'static>);
701 fn memmem( in memmem() function
709 use libc::memmem;
713 memmem( in find()