MCPcopy Create free account
hub / github.com/Selectively11/CloudRedirect / skipWs

Method skipWs

src/common/json.cpp:42–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 static constexpr int MAX_DEPTH = 64;
41
42 void skipWs() {
43 while (pos < len) {
44 if (s[pos]==' '||s[pos]=='\t'||s[pos]=='\n'||s[pos]=='\r') {
45 ++pos;
46 } else if (pos + 1 < len && s[pos] == '/' && s[pos+1] == '/') {
47 pos += 2;
48 while (pos < len && s[pos] != '\n') ++pos;
49 } else {
50 break;
51 }
52 }
53 }
54
55 char peek() { return pos < len ? s[pos] : 0; }
56 char next() { return pos < len ? s[pos++] : 0; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected