| 34 | const common_chat_syntax & syntax() const { return syntax_; } |
| 35 | |
| 36 | void move_to(size_t pos) { |
| 37 | if (pos > input_.size()) { |
| 38 | throw std::runtime_error("Invalid position!"); |
| 39 | } |
| 40 | pos_ = pos; |
| 41 | } |
| 42 | void move_back(size_t n) { |
| 43 | if (pos_ < n) { |
| 44 | throw std::runtime_error("Can't move back that far!"); |
no test coverage detected