| 1232 | // only. |
| 1233 | |
| 1234 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 1235 | if (needle == NULL || haystack == NULL) |
| 1236 | return needle == haystack; |
| 1237 | |
| 1238 | return strstr(haystack, needle) != NULL; |
| 1239 | } |
| 1240 | |
| 1241 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 1242 | if (needle == NULL || haystack == NULL) |