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

LibPDF: Implement Reader::is_[eol, whitespace](char)

These two static members are now used to implement respective `matches_`
methods but will also be useful to provide a global implementation of
the specified concept of whitespace.
This commit is contained in:
Lucas CHOLLET 2023-11-13 22:46:42 -05:00 committed by Andreas Kling
parent dac703a0b8
commit db08fe12ec
2 changed files with 16 additions and 2 deletions

View file

@ -131,6 +131,9 @@ public:
move_until([&predicate](char t) { return !predicate(t); });
}
static bool is_eol(char);
static bool is_whitespace(char);
bool matches_eol() const;
bool matches_whitespace() const;
bool matches_number() const;