Searched refs:needle (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/bionic/ |
D | memmem.cpp | 33 const unsigned char* needle = reinterpret_cast<const unsigned char*>(void_needle); in memmem() local 38 if (m == 1) return const_cast<void*>(memchr(haystack, needle[0], n)); in memmem() 43 const unsigned char* x = needle; in memmem()
|
D | ndk_cruft.cpp | 237 wchar_t* wcswcs(wchar_t* haystack, wchar_t* needle) { in wcswcs() argument 238 return wcsstr(haystack, needle); in wcswcs()
|
/bionic/linker/ |
D | linker_utils.cpp | 120 const char* needle = dir.c_str(); in file_is_in_dir() local 122 size_t needle_len = strlen(needle); in file_is_in_dir() 124 return strncmp(haystack, needle, needle_len) == 0 && in file_is_in_dir() 130 const char* needle = dir.c_str(); in file_is_under_dir() local 132 size_t needle_len = strlen(needle); in file_is_under_dir() 134 return strncmp(haystack, needle, needle_len) == 0 && in file_is_under_dir()
|
/bionic/tests/ |
D | search_test.cpp | 30 int needle; in TEST() local 33 needle = 2; in TEST() 34 ASSERT_EQ(nullptr, lfind(&needle, xs, &x_size, sizeof(xs[0]), int_cmp)); in TEST() 38 ASSERT_EQ(&xs[0], lsearch(&needle, xs, &x_size, sizeof(xs[0]), int_cmp)); in TEST() 43 ASSERT_EQ(&xs[0], lfind(&needle, xs, &x_size, sizeof(xs[0]), int_cmp)); in TEST() 47 ASSERT_EQ(&xs[0], lsearch(&needle, xs, &x_size, sizeof(xs[0]), int_cmp)); in TEST()
|
D | dlfcn_test.cpp | 58 #define ASSERT_SUBSTR(needle, haystack) \ argument 59 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
|
D | dlext_test.cpp | 57 #define ASSERT_SUBSTR(needle, haystack) \ argument 58 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
|
/bionic/benchmarks/ |
D | string_benchmark.cpp | 276 std::vector<char> needle; in BM_string_strstr() local 278 char* needle_aligned = GetAlignedPtrFilled(&needle, needle_alignment, in BM_string_strstr() 287 needle_aligned[needle.size() - 1] = '\0'; in BM_string_strstr()
|