Searched defs:haystack (Results 1 - 4 of 4) sorted by relevance

/bionic/libc/bionic/
H A Dmemmem.c35 void *memmem(const void *haystack, size_t n, const void *needle, size_t m) argument
41 const unsigned char* y = (const unsigned char*) haystack;
61 return memchr(haystack, ((unsigned char*)needle)[0], n);
H A Dndk_cruft.cpp234 wchar_t* wcswcs(wchar_t* haystack, wchar_t* needle) { argument
235 return wcsstr(haystack, needle);
/bionic/linker/
H A Dlinker_utils.cpp66 const char* haystack = file.c_str(); local
69 return strncmp(haystack, needle, needle_len) == 0 &&
70 haystack[needle_len] == '/' &&
71 strchr(haystack + needle_len + 1, '/') == nullptr;
76 const char* haystack = file.c_str(); local
79 return strncmp(haystack, needle, needle_len) == 0 &&
80 haystack[needle_len] == '/';
/bionic/tests/
H A Dwchar_test.cpp227 const wchar_t* haystack = L"matches hello world, not the second hello world"; local
232 ASSERT_EQ(haystack, wcsstr(haystack, empty_needle));
233 ASSERT_EQ(&haystack[10], wcsstr(haystack, good_needle));
234 ASSERT_EQ(NULL, wcsstr(haystack, bad_needle));

Completed in 3845 milliseconds