MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / IsInSet

Function IsInSet

test/common/gtest/gtest.cpp:9244–9246  ·  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

9242// Returns true iff ch appears anywhere in str (excluding the
9243// terminating '\0' character).
9244bool IsInSet(char ch, const char* str) {
9245 return ch != '\0' && strchr(str, ch) != NULL;
9246}
9247
9248// Returns true iff ch belongs to the given classification. Unlike
9249// 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