Lines Matching refs:needle
1253 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1254 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1255 return needle == haystack; in IsSubstringPred()
1257 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1260 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1261 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1262 return needle == haystack; in IsSubstringPred()
1264 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1269 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1271 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
1282 const StringType& needle, const StringType& haystack) { in IsSubstringImpl() argument
1283 if (IsSubstringPred(needle, haystack) == expected_to_be_substring) in IsSubstringImpl()
1286 const bool is_wide_string = sizeof(needle[0]) > 1; in IsSubstringImpl()
1291 << " Actual: " << begin_string_quote << needle << "\"\n" in IsSubstringImpl()
1305 const char* needle, const char* haystack) { in IsSubstring() argument
1306 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1311 const wchar_t* needle, const wchar_t* haystack) { in IsSubstring() argument
1312 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1317 const char* needle, const char* haystack) { in IsNotSubstring() argument
1318 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1323 const wchar_t* needle, const wchar_t* haystack) { in IsNotSubstring() argument
1324 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1329 const ::std::string& needle, const ::std::string& haystack) { in IsSubstring()
1330 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1335 const ::std::string& needle, const ::std::string& haystack) { in IsNotSubstring()
1336 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1342 const ::std::wstring& needle, const ::std::wstring& haystack) { in IsSubstring()
1343 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1348 const ::std::wstring& needle, const ::std::wstring& haystack) { in IsNotSubstring()
1349 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()