| 2716 | // only. |
| 2717 | |
| 2718 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 2719 | if (needle == NULL || haystack == NULL) |
| 2720 | return needle == haystack; |
| 2721 | |
| 2722 | return strstr(haystack, needle) != NULL; |
| 2723 | } |
| 2724 | |
| 2725 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 2726 | if (needle == NULL || haystack == NULL) |