MCPcopy Create free account
hub / github.com/apache/singa / IsInSet

Function IsInSet

test/gtest/gtest-all.cc:8413–8415  ·  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

8411// Returns true iff ch appears anywhere in str (excluding the
8412// terminating '\0' character).
8413bool IsInSet(char ch, const char* str) {
8414 return ch != '\0' && strchr(str, ch) != NULL;
8415}
8416
8417// Returns true iff ch belongs to the given classification. Unlike
8418// 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