| 1728 | // itself only. |
| 1729 | |
| 1730 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 1731 | if (needle == nullptr || haystack == nullptr) return needle == haystack; |
| 1732 | |
| 1733 | return strstr(haystack, needle) != nullptr; |
| 1734 | } |
| 1735 | |
| 1736 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 1737 | if (needle == nullptr || haystack == nullptr) return needle == haystack; |