()
| 132 | } |
| 133 | |
| 134 | int nextChar() { |
| 135 | if (!hasMoreInput()) { |
| 136 | return -1; |
| 137 | } |
| 138 | |
| 139 | int ch = current.stream[current.cursor]; |
| 140 | |
| 141 | current.cursor++; |
| 142 | |
| 143 | if (ch == '\n') { |
| 144 | current.line++; |
| 145 | current.col = 0; |
| 146 | } else { |
| 147 | current.col++; |
| 148 | } |
| 149 | return ch; |
| 150 | } |
| 151 | |
| 152 | /** |
| 153 | * A faster approach than calling {@link #mark()} & {@link #nextChar()}. However, this approach is only safe if the |
no test coverage detected