MCPcopy Create free account
hub / github.com/KhronosGroup/KTX-Software / IsSubstringPred

Function IsSubstringPred

tests/gtest/src/gtest.cc:1730–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1728// itself only.
1729
1730bool IsSubstringPred(const char* needle, const char* haystack) {
1731 if (needle == nullptr || haystack == nullptr) return needle == haystack;
1732
1733 return strstr(haystack, needle) != nullptr;
1734}
1735
1736bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
1737 if (needle == nullptr || haystack == nullptr) return needle == haystack;

Callers 1

IsSubstringImplFunction · 0.70

Calls 1

findMethod · 0.45

Tested by

no test coverage detected