Home
last modified time | relevance | path

Searched refs:Memchr (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/memchr/src/
Diter.rs34 pub struct Memchr<'a> { struct
42 impl<'a> Memchr<'a> { argument
45 pub fn new(needle: u8, haystack: &[u8]) -> Memchr { in new() argument
46 Memchr { needle: needle, haystack: haystack, position: 0 } in new()
50 impl<'a> Iterator for Memchr<'a> { implementation
64 impl<'a> DoubleEndedIterator for Memchr<'a> { implementation
Dlib.rs45 pub use iter::{Memchr, Memchr2, Memchr3};
64 pub fn memchr_iter(needle: u8, haystack: &[u8]) -> Memchr { in memchr_iter() argument
65 Memchr::new(needle, haystack) in memchr_iter()
87 pub fn memrchr_iter(needle: u8, haystack: &[u8]) -> Rev<Memchr> { in memrchr_iter() argument
88 Memchr::new(needle, haystack).rev() in memrchr_iter()
/external/rust/crates/memchr/src/tests/
Diter.rs2 use {Memchr, Memchr2, Memchr3};
7 test.iter_one(false, Memchr::new); in memchr1_iter()
28 test.iter_one(true, |n1, corpus| Memchr::new(n1, corpus).rev()); in memrchr1_iter()
58 let iter = Memchr::new(needle, &data);
100 answer.eq(Memchr::new(needle, &data))
106 answer.rev().eq(Memchr::new(needle, &data).rev())
142 let mut iter = Memchr::new(needle, &data);
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DNotNullTerminatedResultCheck.cpp756 auto Memchr = Match({"memchr", None, 0, 2, false}); in registerMatchers() local
781 callExpr(Memchr, in registerMatchers()
787 has(callExpr(Memchr).bind(FunctionExprName)))) in registerMatchers()
/external/llvm-project/clang/test/SemaCXX/
Dconstexpr-string.cpp450 namespace MultibyteElementTests::Memchr {