| 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; } |
nothing calls this directly
no outgoing calls
no test coverage detected