Lines Matching refs:needle
1231 bool IsSubstringPred(const char* needle, const char* haystack) { in IsSubstringPred() argument
1232 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1233 return needle == haystack; in IsSubstringPred()
1235 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1238 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1239 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1240 return needle == haystack; in IsSubstringPred()
1242 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1247 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1249 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
1260 const StringType& needle, const StringType& haystack) { in IsSubstringImpl() argument
1261 if (IsSubstringPred(needle, haystack) == expected_to_be_substring) in IsSubstringImpl()
1264 const bool is_wide_string = sizeof(needle[0]) > 1; in IsSubstringImpl()
1268 << " Actual: " << begin_string_quote << needle << "\"\n" in IsSubstringImpl()
1282 const char* needle, const char* haystack) { in IsSubstring() argument
1283 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1288 const wchar_t* needle, const wchar_t* haystack) { in IsSubstring() argument
1289 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1294 const char* needle, const char* haystack) { in IsNotSubstring() argument
1295 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1300 const wchar_t* needle, const wchar_t* haystack) { in IsNotSubstring() argument
1301 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1306 const ::std::string& needle, const ::std::string& haystack) { in IsSubstring()
1307 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1312 const ::std::string& needle, const ::std::string& haystack) { in IsNotSubstring()
1313 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1319 const ::std::wstring& needle, const ::std::wstring& haystack) { in IsSubstring()
1320 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1325 const ::std::wstring& needle, const ::std::wstring& haystack) { in IsNotSubstring()
1326 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()