MCPcopy Create free account
hub / github.com/chen3feng/toft / ScanSetContainsChar

Function ScanSetContainsChar

base/string/format/scan_arg.cpp:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace toft {
23
24static inline bool ScanSetContainsChar(const char (&cs)[32], char c)
25{
26 int index = static_cast<unsigned char>(c);
27 int offset = index / CHAR_BIT;
28 int mask = (1 << (index % CHAR_BIT));
29 return (cs[offset] & mask) != 0;
30}
31
32static void SkipLeadingSpaces(const char** str)
33{

Callers 1

ParseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected