| 1768 | // itself only. |
| 1769 | |
| 1770 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 1771 | if (needle == nullptr || haystack == nullptr) return needle == haystack; |
| 1772 | |
| 1773 | return strstr(haystack, needle) != nullptr; |
| 1774 | } |
| 1775 | |
| 1776 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 1777 | if (needle == nullptr || haystack == nullptr) return needle == haystack; |