| 73 | } |
| 74 | |
| 75 | bool common_chat_msg_parser::consume_spaces() { |
| 76 | const auto length = input_.size(); |
| 77 | auto consumed = false; |
| 78 | while (pos_ < length && std::isspace(input_[pos_])) { |
| 79 | ++pos_; |
| 80 | consumed = true; |
| 81 | } |
| 82 | return consumed; |
| 83 | } |
| 84 | |
| 85 | bool common_chat_msg_parser::try_consume_literal(const std::string & literal) { |
| 86 | auto pos = pos_; |
no test coverage detected