| 67 | return true; |
| 68 | } |
| 69 | void common_chat_msg_parser::finish() { |
| 70 | if (!is_partial_ && pos_ != input_.size()) { |
| 71 | throw std::runtime_error("Unexpected content at end of input");// + input_.substr(pos_)); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | bool common_chat_msg_parser::consume_spaces() { |
| 76 | const auto length = input_.size(); |