MCPcopy Create free account
hub / github.com/cginternals/globjects / IsSubstringPred

Function IsSubstringPred

source/tests/googletest/googletest/src/gtest.cc:1557–1562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1555// only.
1556
1557bool 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
1564bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
1565 if (needle == NULL || haystack == NULL)

Callers 1

IsSubstringImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected