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

Function ScanSetSetChar

base/string/format/specification.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static inline void ScanSetSetChar(char (*cs)[32], char c, bool value)
78{
79 int index = static_cast<unsigned char>(c);
80 int offset = index / CHAR_BIT;
81 int mask = (1 << (index % CHAR_BIT));
82 if (value)
83 (*cs)[offset] |= mask;
84 else
85 (*cs)[offset] &= ~mask;
86}
87
88static void ScanSetSetCharRange(char (*cs)[32], char first, char last, bool value)
89{

Callers 2

ScanSetSetCharRangeFunction · 0.85
ParseScanSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected