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

Function IsInSet

tests/gtest/gtest-all.cc:10473–10475  ·  view source on GitHub ↗

Returns true iff ch appears anywhere in str (excluding the terminating '\0' character).

Source from the content-addressed store, hash-verified

10471// Returns true iff ch appears anywhere in str (excluding the
10472// terminating '\0' character).
10473bool IsInSet(char ch, const char* str) {
10474 return ch != '\0' && strchr(str, ch) != nullptr;
10475}
10476
10477// Returns true iff ch belongs to the given classification. Unlike
10478// similar functions in <ctype.h>, these aren't affected by the

Callers 5

IsAsciiPunctFunction · 0.85
IsRepeatFunction · 0.85
IsAsciiWhiteSpaceFunction · 0.85
IsValidEscapeFunction · 0.85
ValidateRegexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected