1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00:00

LibIMAP: Add and use Parser::consume_until_end_of_line()

This commit is contained in:
Linus Groh 2021-07-24 20:54:30 +01:00
parent 8e8d1383b7
commit ddd11b98d9
2 changed files with 11 additions and 8 deletions

View file

@ -28,6 +28,7 @@ private:
void consume(StringView);
bool try_consume(StringView);
StringView consume_while(Function<bool(u8)> should_consume);
StringView consume_until_end_of_line();
bool at_end() { return position >= m_buffer.size(); };