/external/v8/test/mjsunit/ |
H A D | regexp-static.js | 131 var haystack = "foo"; 134 haystack += "x"; 138 haystack += "bx"; 140 assertTrue(re.test(haystack), "$" + i + " setup");
|
/external/astl/tests/ |
H A D | test_string.cpp | 767 string haystack("one two three one two three"); 770 EXPECT_TRUE(haystack.find((char*)NULL) == string::npos); 771 EXPECT_TRUE(haystack.find((char*)NULL, 10) == string::npos); 774 EXPECT_TRUE(haystack.find("one") == 0); 775 EXPECT_TRUE(haystack.find("two") == 4); 776 EXPECT_TRUE(haystack.find("t") == 4); 777 EXPECT_TRUE(haystack.find("four") == string::npos); 778 EXPECT_TRUE(haystack.find("one", string::npos) == string::npos); 781 EXPECT_TRUE(haystack.find("one", 13) == 14); 782 EXPECT_TRUE(haystack [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/utils/ |
H A D | os_internal.c | 438 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++;
|
H A D | os_none.c | 216 char * os_strstr(const char *haystack, const char *needle) argument
|
/external/compiler-rt/lib/asan/ |
H A D | asan_interceptors.h | 41 char *internal_strstr(const char *haystack, const char *needle);
|
/external/wpa_supplicant_8/hostapd/src/utils/ |
H A D | os_internal.c | 455 char * os_strstr(const char *haystack, const char *needle) argument 458 while (*haystack) { 459 if (os_strncmp(haystack, needle, len) == 0) 460 return (char *) haystack; 461 haystack++;
|
H A D | os_none.c | 215 char * os_strstr(const char *haystack, const char *needle) argument
|
/external/wpa_supplicant_8/src/utils/ |
H A D | os_internal.c | 455 char * os_strstr(const char *haystack, const char *needle) argument 458 while (*haystack) { 459 if (os_strncmp(haystack, needle, len) == 0) 460 return (char *) haystack; 461 haystack++;
|
H A D | os_none.c | 215 char * os_strstr(const char *haystack, const char *needle) argument
|
/external/wpa_supplicant_8/wpa_supplicant/src/utils/ |
H A D | os_internal.c | 455 char * os_strstr(const char *haystack, const char *needle) argument 458 while (*haystack) { 459 if (os_strncmp(haystack, needle, len) == 0) 460 return (char *) haystack; 461 haystack++;
|
H A D | os_none.c | 215 char * os_strstr(const char *haystack, const char *needle) argument
|
/external/chromium/sdch/open-vcdiff/src/gtest/ |
H A D | gtest.h | 800 // themselves. They check whether needle is a substring of haystack 804 // The {needle,haystack}_expr arguments are the stringified 808 const char* needle, const char* haystack); 811 const wchar_t* needle, const wchar_t* haystack); 814 const char* needle, const char* haystack); 817 const wchar_t* needle, const wchar_t* haystack); 821 const ::std::string& needle, const ::std::string& haystack); 824 const ::std::string& needle, const ::std::string& haystack); 830 const ::std::wstring& needle, const ::std::wstring& haystack); 833 const ::std::wstring& needle, const ::std::wstring& haystack); [all...] |
H A D | gtest.cc | 1088 // substring of haystack. NULL is considered a substring of itself 1091 bool IsSubstringPred(const char* needle, const char* haystack) { argument 1092 if (needle == NULL || haystack == NULL) 1093 return needle == haystack; 1095 return strstr(haystack, needle) != NULL; 1098 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument 1099 if (needle == NULL || haystack == NULL) 1100 return needle == haystack; 1102 return wcsstr(haystack, needle) != NULL; 1108 const StringType& haystack) { 1107 IsSubstringPred(const StringType& needle, const StringType& haystack) argument 1117 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument 1141 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1147 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1153 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1159 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1166 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument 1172 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument 1180 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument 1186 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const ::std::wstring& needle, const ::std::wstring& haystack) argument [all...] |
/external/bluetooth/glib/glib/ |
H A D | gstrfuncs.h | 114 gchar * g_strstr_len (const gchar *haystack, 117 gchar * g_strrstr (const gchar *haystack, 119 gchar * g_strrstr_len (const gchar *haystack,
|
H A D | gstrfuncs.c | 2730 * @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/valgrind/main/coregrind/ |
H A D | m_libcbase.c | 369 Char* VG_(strstr) ( const Char* haystack, Char* needle ) argument 372 if (haystack == NULL) 376 if (haystack[0] == 0) 378 if (VG_(strncmp)(haystack, needle, n) == 0) 379 return (Char*)haystack; 380 haystack++; 384 Char* VG_(strcasestr) ( const Char* haystack, Char* needle ) argument 387 if (haystack == NULL) 391 if (haystack[0] == 0) 393 if (VG_(strncasecmp)(haystack, needl [all...] |
/external/valgrind/main/exp-sgcheck/ |
H A D | h_intercepts.c | 319 (void* haystack, void* needle); \ 321 (void* haystack, void* needle) \ 323 UChar* h = (UChar*)haystack; \
|
/external/libsepol/include/sepol/policydb/ |
H A D | conditional.h | 102 cond_node_t * needle, cond_node_t * haystack,
|
/external/chromium/testing/gtest/include/gtest/ |
H A D | gtest.h | 1510 // themselves. They check whether needle is a substring of haystack 1514 // The {needle,haystack}_expr arguments are the stringified 1518 const char* needle, const char* haystack); 1521 const wchar_t* needle, const wchar_t* haystack); 1524 const char* needle, const char* haystack); 1527 const wchar_t* needle, const wchar_t* haystack); 1530 const ::std::string& needle, const ::std::string& haystack); 1533 const ::std::string& needle, const ::std::string& haystack); 1538 const ::std::wstring& needle, const ::std::wstring& haystack); 1541 const ::std::wstring& needle, const ::std::wstring& haystack); [all...] |
/external/gtest/include/gtest/ |
H A D | gtest.h | 1510 // themselves. They check whether needle is a substring of haystack 1514 // The {needle,haystack}_expr arguments are the stringified 1518 const char* needle, const char* haystack); 1521 const wchar_t* needle, const wchar_t* haystack); 1524 const char* needle, const char* haystack); 1527 const wchar_t* needle, const wchar_t* haystack); 1530 const ::std::string& needle, const ::std::string& haystack); 1533 const ::std::string& needle, const ::std::string& haystack); 1538 const ::std::wstring& needle, const ::std::wstring& haystack); 1541 const ::std::wstring& needle, const ::std::wstring& haystack); [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/ |
H A D | gtest.h | 1512 // themselves. They check whether needle is a substring of haystack 1516 // The {needle,haystack}_expr arguments are the stringified 1520 const char* needle, const char* haystack); 1523 const wchar_t* needle, const wchar_t* haystack); 1526 const char* needle, const char* haystack); 1529 const wchar_t* needle, const wchar_t* haystack); 1532 const ::std::string& needle, const ::std::string& haystack); 1535 const ::std::string& needle, const ::std::string& haystack); 1540 const ::std::wstring& needle, const ::std::wstring& haystack); 1543 const ::std::wstring& needle, const ::std::wstring& haystack); [all...] |
/external/protobuf/gtest/include/gtest/ |
H A D | gtest.h | 1367 // themselves. They check whether needle is a substring of haystack 1371 // The {needle,haystack}_expr arguments are the stringified 1375 const char* needle, const char* haystack); 1378 const wchar_t* needle, const wchar_t* haystack); 1381 const char* needle, const char* haystack); 1384 const wchar_t* needle, const wchar_t* haystack); 1388 const ::std::string& needle, const ::std::string& haystack); 1391 const ::std::string& needle, const ::std::string& haystack); 1397 const ::std::wstring& needle, const ::std::wstring& haystack); 1400 const ::std::wstring& needle, const ::std::wstring& haystack); [all...] |
/external/valgrind/main/include/ |
H A D | pub_tool_libcbase.h | 95 extern Char* VG_(strstr) ( const Char* haystack, Char* needle ); 96 extern Char* VG_(strcasestr) ( const Char* haystack, Char* needle );
|
/external/chromium/testing/gtest/src/ |
H A D | gtest.cc | 1228 // substring of haystack. NULL is considered a substring of itself 1231 bool IsSubstringPred(const char* needle, const char* haystack) { argument 1232 if (needle == NULL || haystack == NULL) 1233 return needle == haystack; 1235 return strstr(haystack, needle) != NULL; 1238 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument 1239 if (needle == NULL || haystack == NULL) 1240 return needle == haystack; 1242 return wcsstr(haystack, needle) != NULL; 1248 const StringType& haystack) { 1247 IsSubstringPred(const StringType& needle, const StringType& haystack) argument 1257 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument 1280 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1286 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1292 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1298 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1304 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument 1310 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...] |
/external/gtest/src/ |
H A D | gtest.cc | 1228 // substring of haystack. NULL is considered a substring of itself 1231 bool IsSubstringPred(const char* needle, const char* haystack) { argument 1232 if (needle == NULL || haystack == NULL) 1233 return needle == haystack; 1235 return strstr(haystack, needle) != NULL; 1238 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { argument 1239 if (needle == NULL || haystack == NULL) 1240 return needle == haystack; 1242 return wcsstr(haystack, needle) != NULL; 1248 const StringType& haystack) { 1247 IsSubstringPred(const StringType& needle, const StringType& haystack) argument 1257 IsSubstringImpl( bool expected_to_be_substring, const char* needle_expr, const char* haystack_expr, const StringType& needle, const StringType& haystack) argument 1280 IsSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1286 IsSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1292 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const char* needle, const char* haystack) argument 1298 IsNotSubstring( const char* needle_expr, const char* haystack_expr, const wchar_t* needle, const wchar_t* haystack) argument 1304 IsSubstring( const char* needle_expr, const char* haystack_expr, const ::std::string& needle, const ::std::string& haystack) argument 1310 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...] |