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