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

/external/wpa_supplicant/
H A Dos_none.c210 char * os_strstr(const char *haystack, const char *needle) argument
H A Dos_internal.c413 char * os_strstr(const char *haystack, const char *needle) argument
416 while (*haystack) {
417 if (os_strncmp(haystack, needle, len) == 0)
418 return (char *) haystack;
419 haystack++;
/external/wpa_supplicant_6/wpa_supplicant/src/utils/
H A Dos_none.c216 char * os_strstr(const char *haystack, const char *needle) argument
H A Dos_internal.c438 char * os_strstr(const char *haystack, const char *needle) argument
441 while (*haystack) {
442 if (os_strncmp(haystack, needle, len) == 0)
443 return (char *) haystack;
444 haystack++;
/external/qemu/distrib/sdl-1.2.12/src/stdlib/
H A DSDL_string.c433 char *SDL_strstr(const char *haystack, const char *needle) argument
436 while ( *haystack ) {
437 if ( SDL_strncmp(haystack, needle, length) == 0 ) {
438 return (char *)haystack;
440 ++haystack;
/external/bluetooth/glib/glib/
H A Dgconvert.c1450 /* Test of haystack has the needle prefix, comparing case
1451 * insensitive. haystack may be UTF-8, but needle must
1454 has_case_prefix (const gchar *haystack, const gchar *needle) argument
1459 h = haystack;
H A Dgstrfuncs.c2730 * @haystack: a string.
2731 * @haystack_len: the maximum length of @haystack. Note that -1 is
2732 * a valid length, if @haystack is nul-terminated, meaning it will
2736 * Searches the string @haystack for the first occurrence
2744 g_strstr_len (const gchar *haystack, argument
2748 g_return_val_if_fail (haystack != NULL, NULL);
2752 return strstr (haystack, needle);
2755 const gchar *p = haystack;
2761 return (gchar *)haystack;
2766 end = haystack
2796 g_strrstr(const gchar *haystack, const gchar *needle) argument
2847 g_strrstr_len(const gchar *haystack, gssize haystack_len, const gchar *needle) argument
[all...]
/external/webkit/JavaScriptCore/wtf/
H A DDateMath.cpp541 const char *haystack = "janfebmaraprmayjunjulaugsepoctnovdec"; local
542 const char *str = strstr(haystack, needle);
544 int position = static_cast<int>(str - haystack);
/external/gtest/src/
H A Dgtest.cc1225 // substring of haystack. NULL is considered a substring of itself
1228 bool IsSubstringPred(const char* needle, const char* haystack) { argument
1229 if (needle == NULL || haystack == NULL)
1230 return needle == haystack;
1232 return strstr(haystack, needle) != NULL;
1235 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument
1236 if (needle == NULL || haystack == NULL)
1237 return needle == haystack;
1239 return wcsstr(haystack, needle) != NULL;
1245 const StringType& haystack) {
1244 IsSubstringPred(const StringType& needle, const StringType& haystack) argument
1254 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument
1278 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
1284 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
1290 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument
1296 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument
1303 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
1309 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument
1317 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
1323 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument
[all...]

Completed in 45 milliseconds