| 3048 | // only. |
| 3049 | |
| 3050 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 3051 | if (needle == nullptr || haystack == nullptr) return needle == haystack; |
| 3052 | |
| 3053 | return strstr(haystack, needle) != nullptr; |
| 3054 | } |
| 3055 | |
| 3056 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 3057 | if (needle == nullptr || haystack == nullptr) return needle == haystack; |