| 3027 | // only. |
| 3028 | |
| 3029 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 3030 | if (needle == NULL || haystack == NULL) |
| 3031 | return needle == haystack; |
| 3032 | |
| 3033 | return strstr(haystack, needle) != NULL; |
| 3034 | } |
| 3035 | |
| 3036 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 3037 | if (needle == NULL || haystack == NULL) |