MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / IsSubstringPred

Function IsSubstringPred

tests/external/gmock-1.7.0/gtest/src/gtest.cc:1234–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232// only.
1233
1234bool IsSubstringPred(const char* needle, const char* haystack) {
1235 if (needle == NULL || haystack == NULL)
1236 return needle == haystack;
1237
1238 return strstr(haystack, needle) != NULL;
1239}
1240
1241bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
1242 if (needle == NULL || haystack == NULL)

Callers 1

IsSubstringImplFunction · 0.70

Calls 1

findMethod · 0.80

Tested by

no test coverage detected