Home
last modified time | relevance | path

Searched refs:memrchr (Results 1 - 25 of 49) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/string/
H A Dmemrchr.c31 char *ret = memrchr(src, 'r', strlen(src)); in memrchr_0100()
35 ret = memrchr(src, 'r', strlen("memrchr_0100 test.")); in memrchr_0100()
39 ret = memrchr(src, 'w', strlen(src)); in memrchr_0100()
51 char *ret = memrchr(src, 'r', 0); in memrchr_0200()
/third_party/rust/crates/memchr/src/tests/memchr/
H A Dmemchr.rs6 memchr2, memchr3, memrchr, memrchr2, memrchr3,
55 test.one(true, memrchr); in memrchr1_find()
62 test.one(true, fallback::memrchr); in memrchr1_fallback_find()
117 memrchr(n1, &corpus) == naive::memrchr(n1, &corpus) in qc_memrchr1_matches_naive()
H A Dsimple.rs7 use crate::{memchr, memchr2, memchr3, memrchr, memrchr2, memrchr3};
17 assert_eq!(memrchr(b'a', b"abcda"), Some(4)); in simple()
18 assert_eq!(memrchr(b'z', b"abcda"), None); in simple()
/third_party/musl/libc-test/src/functionalext/supplement/string/string_gtest/
H A Dstring_memrchr_test.cpp13 * @tc.desc: Validate the behavior of the memrchr function when the specified character is not found in the given
20 const char* result = static_cast<const char*>(memrchr(str, 'z', strlen(str))); in HWTEST_F()
26 * @tc.desc: Validate the behavior of the memrchr function when given a null pointer and a length of 0.
32 const char* result = static_cast<const char*>(memrchr(str, 'o', 0)); in HWTEST_F()
/third_party/rust/crates/memchr/src/memchr/
H A Dmod.rs245 /// `haystack.iter().rposition(|&b| b == needle)`, `memrchr` will use a highly
254 /// use memchr::memrchr;
257 /// assert_eq!(memrchr(b'o', haystack), Some(17));
260 pub fn memrchr(needle: u8, haystack: &[u8]) -> Option<usize> { in memrchr() functions
264 naive::memrchr(n1, haystack) in memrchr()
270 x86::memrchr(n1, haystack) in memrchr()
281 c::memrchr(n1, haystack) in memrchr()
291 fallback::memrchr(n1, haystack) in memrchr()
301 /// Like `memrchr`, but searches for either of two bytes instead of just one.
354 /// Like `memrchr`, bu
[all...]
H A Dc.rs1 // This module defines safe wrappers around memchr (POSIX) and memrchr (GNU
24 // memrchr is a GNU extension. We know it's available on Linux at least.
26 pub fn memrchr(needle: u8, haystack: &[u8]) -> Option<usize> { in memrchr() functions
27 // GNU's memrchr() will - unlike memchr() - error if haystack is empty. in memrchr()
33 libc::memrchr( in memrchr()
H A Dnaive.rs15 pub fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr() functions
H A Diter.rs1 use crate::{memchr, memchr2, memchr3, memrchr, memrchr2, memrchr3};
67 iter_next_back!(self, memrchr(self.needle, self.haystack)) in next_back()
/third_party/rust/crates/memchr/bench/src/memchr/
H A Dimp.rs1 use memchr::{memrchr, memrchr2, memrchr3, Memchr, Memchr2, Memchr3};
90 while let Some(i) = memrchr(b1, &haystack[..end]) { in memrchr1_count()
101 while let Some(i) = c::memrchr(b1, &haystack[..end]) { in memrchr1_libc_count()
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dmemutil_test.cc73 p = absl::strings_internal::memrchr("hello there", 'e', in TEST()
76 p = absl::strings_internal::memrchr("hello there", 'e', in TEST()
79 p = absl::strings_internal::memrchr("hello there", 'u', in TEST()
H A Dmemutil.h82 char* memrchr(const char* s, int c, size_t slen);
H A Dmemutil.cc43 char* memrchr(const char* s, int c, size_t slen) { in memrchr() function
/third_party/rust/crates/memchr/src/memchr/x86/
H A Dmod.rs123 pub fn memrchr(n1: u8, haystack: &[u8]) -> Option<usize> { in memrchr() functions
124 unsafe_ifunc!(fn(u8, &[u8]) -> Option<usize>, memrchr, haystack, n1) in memrchr()
/third_party/musl/porting/liteos_a/kernel/src/string/
H A Dmemrchr.c11 weak_alias(__memrchr, memrchr);
/third_party/musl/src/string/
H A Dmemrchr.c11 weak_alias(__memrchr, memrchr);
/third_party/curl/lib/
H A Dcurl_memrchr.h40 #define memrchr(x,y,z) Curl_memrchr((x),(y),(z)) macro
/third_party/rust/crates/memchr/src/
H A Dlib.rs149 platform's libc implementation of `memchr` (and `memrchr` on Linux). This in memchr()
173 memrchr, memrchr2, memrchr2_iter, memrchr3, memrchr3_iter, memrchr_iter,
/third_party/musl/porting/linux/user/include/fortify/
H A Dstring.h191 extern void* __memrchr_real(const void*, int, size_t) __DIAGNOSE_RENAME(memrchr); variable
195 void *memrchr(const void *const __DIAGNOSE_PASS_OBJECT_SIZE s, int c, size_t n)
/third_party/musl/include/fortify/linux/
H A Dstring.h191 extern void* __memrchr_real(const void*, int, size_t) __DIAGNOSE_RENAME(memrchr); variable
195 void *memrchr(const void *const __DIAGNOSE_PASS_OBJECT_SIZE s, int c, size_t n)
/third_party/curl/lib/vtls/
H A Dhostcheck.c110 (memrchr(pattern, '.', patternlen) == pattern_label_end)) in hostmatch()
/third_party/musl/porting/liteos_m/user/include/
H A Dstring.h94 void *memrchr(const void *, int, size_t);
/third_party/musl/porting/linux/user/include/
H A Dstring.h96 void *memrchr(const void *, int, size_t);
/third_party/musl/porting/uniproton/kernel/include/
H A Dstring.h94 void *memrchr(const void *, int, size_t);
/third_party/musl/include/
H A Dstring.h96 void *memrchr(const void *, int, size_t);
/third_party/optimized-routines/string/test/
H A Dmemrchr.c30 F(memrchr, 0)

Completed in 6 milliseconds

12