1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:28:13 +00:00

LibPDF: Move consume and match helper functions to the Reader class

This commit is contained in:
Julian Offenhäuser 2022-08-15 11:02:38 +02:00 committed by Sam Atkins
parent 8de7a91571
commit 9f4659cc63
5 changed files with 173 additions and 160 deletions

View file

@ -120,6 +120,18 @@ public:
move_until([&predicate](char t) { return !predicate(t); });
}
bool matches_eol() const;
bool matches_whitespace() const;
bool matches_number() const;
bool matches_delimiter() const;
bool matches_regular_character() const;
bool consume_eol();
bool consume_whitespace();
char consume();
void consume(int amount);
bool consume(char);
ALWAYS_INLINE void set_reading_forwards() { m_forwards = true; }
ALWAYS_INLINE void set_reading_backwards() { m_forwards = false; }