| 180 | } |
| 181 | |
| 182 | void FinishLine() { |
| 183 | if (int newpos = text.Find('\n', pos); newpos >= 0) { // // // |
| 184 | ++line; |
| 185 | pos = newpos + 1; |
| 186 | } |
| 187 | else |
| 188 | pos = text.GetLength(); |
| 189 | last_pos_ = linestart = pos; |
| 190 | } |
| 191 | |
| 192 | int GetColumn() const { |
| 193 | return 1 + pos - linestart; |
no test coverage detected