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

Function IsSubstringPred

source/test/gtest/src/gtest.cc:1770–1774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1768// itself only.
1769
1770bool IsSubstringPred(const char* needle, const char* haystack) {
1771 if (needle == nullptr || haystack == nullptr) return needle == haystack;
1772
1773 return strstr(haystack, needle) != nullptr;
1774}
1775
1776bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
1777 if (needle == nullptr || haystack == nullptr) return needle == haystack;

Callers 1

IsSubstringImplFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected