Home | History | Annotate | Download | only in src

Lines Matching refs:haystack

1242 // substring of haystack.  NULL is considered a substring of itself
1245 bool IsSubstringPred(const char* needle, const char* haystack) {
1246 if (needle == NULL || haystack == NULL)
1247 return needle == haystack;
1249 return strstr(haystack, needle) != NULL;
1252 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
1253 if (needle == NULL || haystack == NULL)
1254 return needle == haystack;
1256 return wcsstr(haystack, needle) != NULL;
1262 const StringType& haystack) {
1263 return haystack.find(needle) != StringType::npos;
1274 const StringType& needle, const StringType& haystack) {
1275 if (IsSubstringPred(needle, haystack) == expected_to_be_substring)
1286 << "Which is: " << begin_string_quote << haystack << "\"");
1292 // substring of haystack (NULL is considered a substring of itself
1297 const char* needle, const char* haystack) {
1298 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1303 const wchar_t* needle, const wchar_t* haystack) {
1304 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1309 const char* needle, const char* haystack) {
1310 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1315 const wchar_t* needle, const wchar_t* haystack) {
1316 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1322 const ::std::string& needle, const ::std::string& haystack) {
1323 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1328 const ::std::string& needle, const ::std::string& haystack) {
1329 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1336 const ::std::wstring& needle, const ::std::wstring& haystack) {
1337 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1342 const ::std::wstring& needle, const ::std::wstring& haystack) {
1343 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);