summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibPDF/Reader.h
diff options
context:
space:
mode:
authorJulian Offenhäuser <metalvoidzz@gmail.com>2022-08-15 11:02:38 +0200
committerSam Atkins <atkinssj@gmail.com>2022-09-17 10:07:14 +0100
commit9f4659cc63d19c29b65adb0efa576f5f82fc5586 (patch)
tree49c3990d8c0de28be5a48cb73322a6b9310feace /Userland/Libraries/LibPDF/Reader.h
parent8de7a91571a30682aea95338b8184c33802a62dd (diff)
downloadserenity-9f4659cc63d19c29b65adb0efa576f5f82fc5586.zip
LibPDF: Move consume and match helper functions to the Reader class
Diffstat (limited to 'Userland/Libraries/LibPDF/Reader.h')
-rw-r--r--Userland/Libraries/LibPDF/Reader.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Userland/Libraries/LibPDF/Reader.h b/Userland/Libraries/LibPDF/Reader.h
index 862decb8e1..37402862c5 100644
--- a/Userland/Libraries/LibPDF/Reader.h
+++ b/Userland/Libraries/LibPDF/Reader.h
@@ -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; }