Searched refs:needle (Results 1 - 6 of 6) sorted by last modified time

/bionic/libc/bionic/
H A Dmemmem.cpp33 const unsigned char* needle = reinterpret_cast<const unsigned char*>(void_needle); local
38 if (m == 1) return memchr(haystack, needle[0], n);
43 const unsigned char* x = needle;
H A Dndk_cruft.cpp235 wchar_t* wcswcs(wchar_t* haystack, wchar_t* needle) { argument
236 return wcsstr(haystack, needle);
/bionic/linker/
H A Dlinker_utils.cpp120 const char* needle = dir.c_str(); local
122 size_t needle_len = strlen(needle);
124 return strncmp(haystack, needle, needle_len) == 0 &&
130 const char* needle = dir.c_str(); local
132 size_t needle_len = strlen(needle);
134 return strncmp(haystack, needle, needle_len) == 0 &&
/bionic/tests/
H A Ddlext_test.cpp55 #define ASSERT_SUBSTR(needle, haystack) \
56 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
H A Ddlfcn_test.cpp46 #define ASSERT_SUBSTR(needle, haystack) \
47 ASSERT_PRED_FORMAT2(::testing::IsSubstring, needle, haystack)
H A Dsearch_test.cpp30 int needle; local
33 needle = 2;
34 ASSERT_EQ(nullptr, lfind(&needle, xs, &x_size, sizeof(xs[0]), int_cmp));
38 ASSERT_EQ(&xs[0], lsearch(&needle, xs, &x_size, sizeof(xs[0]), int_cmp));
43 ASSERT_EQ(&xs[0], lfind(&needle, xs, &x_size, sizeof(xs[0]), int_cmp));
47 ASSERT_EQ(&xs[0], lsearch(&needle, xs, &x_size, sizeof(xs[0]), int_cmp));

Completed in 89 milliseconds