MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / IsInSet

Function IsInSet

rtpose_wrapper/src/gtest/gtest-all.cpp:7979–7981  ·  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

7977// Returns true iff ch appears anywhere in str (excluding the
7978// terminating '\0' character).
7979bool IsInSet(char ch, const char* str) {
7980 return ch != '\0' && strchr(str, ch) != NULL;
7981}
7982
7983// Returns true iff ch belongs to the given classification. Unlike
7984// 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