MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / IsSubstringPred

Function IsSubstringPred

cpp/test/src/gtest.cc:1554–1559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1552// only.
1553
1554bool 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
1561bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
1562 if (needle == NULL || haystack == NULL)

Callers 1

IsSubstringImplFunction · 0.85

Calls 1

findMethod · 0.80

Tested by

no test coverage detected