| 2532 | // only. |
| 2533 | |
| 2534 | bool IsSubstringPred(const char* needle, const char* haystack) { |
| 2535 | if (needle == NULL || haystack == NULL) |
| 2536 | return needle == haystack; |
| 2537 | |
| 2538 | return strstr(haystack, needle) != NULL; |
| 2539 | } |
| 2540 | |
| 2541 | bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) { |
| 2542 | if (needle == NULL || haystack == NULL) |