Lines Matching refs:needle

1232 bool IsSubstringPred(const char* needle, const char* haystack) {  in IsSubstringPred()  argument
1233 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1234 return needle == haystack; in IsSubstringPred()
1236 return strstr(haystack, needle) != NULL; in IsSubstringPred()
1239 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { in IsSubstringPred() argument
1240 if (needle == NULL || haystack == NULL) in IsSubstringPred()
1241 return needle == haystack; in IsSubstringPred()
1243 return wcsstr(haystack, needle) != NULL; in IsSubstringPred()
1248 bool IsSubstringPred(const StringType& needle, in IsSubstringPred() argument
1250 return haystack.find(needle) != StringType::npos; in IsSubstringPred()
1261 const StringType& needle, const StringType& haystack) { in IsSubstringImpl() argument
1262 if (IsSubstringPred(needle, haystack) == expected_to_be_substring) in IsSubstringImpl()
1265 const bool is_wide_string = sizeof(needle[0]) > 1; in IsSubstringImpl()
1269 << " Actual: " << begin_string_quote << needle << "\"\n" in IsSubstringImpl()
1283 const char* needle, const char* haystack) { in IsSubstring() argument
1284 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1289 const wchar_t* needle, const wchar_t* haystack) { in IsSubstring() argument
1290 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1295 const char* needle, const char* haystack) { in IsNotSubstring() argument
1296 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1301 const wchar_t* needle, const wchar_t* haystack) { in IsNotSubstring() argument
1302 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1307 const ::std::string& needle, const ::std::string& haystack) { in IsSubstring()
1308 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1313 const ::std::string& needle, const ::std::string& haystack) { in IsNotSubstring()
1314 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()
1320 const ::std::wstring& needle, const ::std::wstring& haystack) { in IsSubstring()
1321 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack); in IsSubstring()
1326 const ::std::wstring& needle, const ::std::wstring& haystack) { in IsNotSubstring()
1327 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack); in IsNotSubstring()