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

Function IsInSet

source/test/gtest/src/gtest-port.cc:725–727  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

723// Returns true if and only if ch appears anywhere in str (excluding the
724// terminating '\0' character).
725bool IsInSet(char ch, const char* str) {
726 return ch != '\0' && strchr(str, ch) != nullptr;
727}
728
729// Returns true if and only if ch belongs to the given classification.
730// Unlike 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