MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / IsSubstringPred

Function IsSubstringPred

tests/gtest/gtest-all.cc:3050–3054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3048// only.
3049
3050bool IsSubstringPred(const char* needle, const char* haystack) {
3051 if (needle == nullptr || haystack == nullptr) return needle == haystack;
3052
3053 return strstr(haystack, needle) != nullptr;
3054}
3055
3056bool IsSubstringPred(const wchar_t* needle, const wchar_t* haystack) {
3057 if (needle == nullptr || haystack == nullptr) return needle == haystack;

Callers 1

IsSubstringImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected