Home | History | Annotate | Download | only in src

Lines Matching refs:haystack

1216 // substring of haystack.  NULL is considered a substring of itself
1219 bool IsSubstringPred(const char* needle, const char* haystack) {
1220 if (needle == NULL || haystack == NULL)
1221 return needle == haystack;
1223 return strstr(haystack, needle) != NULL;
1226 bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
1227 if (needle == NULL || haystack == NULL)
1228 return needle == haystack;
1230 return wcsstr(haystack, needle) != NULL;
1236 const StringType& haystack) {
1237 return haystack.find(needle) != StringType::npos;
1248 const StringType& needle, const StringType& haystack) {
1249 if (IsSubstringPred(needle, haystack) == expected_to_be_substring)
1259 << "Which is: " << begin_string_quote << haystack << "\"";
1265 // substring of haystack (NULL is considered a substring of itself
1270 const char* needle, const char* haystack) {
1271 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1276 const wchar_t* needle, const wchar_t* haystack) {
1277 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1282 const char* needle, const char* haystack) {
1283 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1288 const wchar_t* needle, const wchar_t* haystack) {
1289 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1294 const ::std::string& needle, const ::std::string& haystack) {
1295 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1300 const ::std::string& needle, const ::std::string& haystack) {
1301 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);
1307 const ::std::wstring& needle, const ::std::wstring& haystack) {
1308 return IsSubstringImpl(true, needle_expr, haystack_expr, needle, haystack);
1313 const ::std::wstring& needle, const ::std::wstring& haystack) {
1314 return IsSubstringImpl(false, needle_expr, haystack_expr, needle, haystack);