Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 7 of 7) sorted by relevance

/bionic/linker/
Dlinker_utils.cpp66 const char* haystack = file.c_str(); in file_is_in_dir() local
69 return strncmp(haystack, needle, needle_len) == 0 && in file_is_in_dir()
70 haystack[needle_len] == '/' && in file_is_in_dir()
71 strchr(haystack + needle_len + 1, '/') == nullptr; in file_is_in_dir()
76 const char* haystack = file.c_str(); in file_is_under_dir() local
79 return strncmp(haystack, needle, needle_len) == 0 && in file_is_under_dir()
80 haystack[needle_len] == '/'; in file_is_under_dir()
/bionic/libc/bionic/
Dmemmem.c35 void *memmem(const void *haystack, size_t n, const void *needle, size_t m) in memmem() argument
41 const unsigned char* y = (const unsigned char*) haystack; in memmem()
61 return memchr(haystack, ((unsigned char*)needle)[0], n); in memmem()
Dndk_cruft.cpp234 wchar_t* wcswcs(wchar_t* haystack, wchar_t* needle) { in wcswcs() argument
235 return wcsstr(haystack, needle); in wcswcs()
/bionic/tests/
Dwchar_test.cpp227 const wchar_t* haystack = L"matches hello world, not the second hello world"; in TEST() local
232 ASSERT_EQ(haystack, wcsstr(haystack, empty_needle)); in TEST()
233 ASSERT_EQ(&haystack[10], wcsstr(haystack, good_needle)); in TEST()
234 ASSERT_EQ(NULL, wcsstr(haystack, bad_needle)); in TEST()
Ddlfcn_test.cpp31 #define ASSERT_SUBSTR(needle, haystack) \ argument
32 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
Ddlext_test.cpp48 #define ASSERT_SUBSTR(needle, haystack) \ argument
49 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
/bionic/libc/include/
Dstring.h83 extern char* strcasestr(const char *haystack, const char *needle) __purefunc;