get . Extracts a character from the stream and updates our position
| 258 | // get |
| 259 | // . Extracts a character from the stream and updates our position |
| 260 | char Stream::get() { |
| 261 | char ch = peek(); |
| 262 | AdvanceCurrent(); |
| 263 | m_mark.column++; |
| 264 | |
| 265 | if (ch == '\n') { |
| 266 | m_mark.column = 0; |
| 267 | m_mark.line++; |
| 268 | } |
| 269 | |
| 270 | return ch; |
| 271 | } |
| 272 | |
| 273 | // get |
| 274 | // . Extracts 'n' characters from the stream and updates our position |
no test coverage detected