| 1552 | // only. |
| 1553 | |
| 1554 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 1555 | if (needle == NULL || haystack == NULL) |
| 1556 | return needle == haystack; |
| 1557 | |
| 1558 | return strstr(haystack, needle) != NULL; |
| 1559 | } |
| 1560 | |
| 1561 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 1562 | if (needle == NULL || haystack == NULL) |