Lines Matching refs:haystack

1088 // substring of haystack.  NULL is considered a substring of itself
1091 bool IsSubstringPred(const char* needle, const char* haystack) {
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) {
1099 if (needle == NULL || haystack == NULL)
1100 return needle == haystack;
1102 return wcsstr(haystack, needle) != NULL;
1108 const StringType& haystack) {
1109 return haystack.find(needle) != StringType::npos;
1120 const StringType& needle, const StringType& haystack) {
1121 if (IsSubstringPred(needle, haystack) == expected_to_be_substring)
1132 << "Which is: " << begin_string_quote << haystack << "\"");
1138 // substring of haystack (NULL is considered a substring of itself
1143 const char* needle, const char* haystack) {
1144 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1149 const wchar_t* needle, const wchar_t* haystack) {
1150 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1155 const char* needle, const char* haystack) {
1156 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1161 const wchar_t* needle, const wchar_t* haystack) {
1162 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1168 const ::std::string& needle, const ::std::string& haystack) {
1169 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1174 const ::std::string& needle, const ::std::string& haystack) {
1175 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1182 const ::std::wstring& needle, const ::std::wstring& haystack) {
1183 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1188 const ::std::wstring& needle, const ::std::wstring& haystack) {
1189 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);