1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:07:45 +00:00

LibPDF: Implement SeparationColorSpace

Requires PDF::Function, which isn't implemented yet, so this has
no visual effect yet.
This commit is contained in:
Nico Weber 2023-11-04 21:02:28 +01:00 committed by Andreas Kling
parent 9204252d02
commit b78ea81de5
3 changed files with 68 additions and 8 deletions

View file

@ -120,13 +120,13 @@ public:
move_by(1);
}
void move_until(Function<bool(char)> predicate)
void move_until(AK::Function<bool(char)> predicate)
{
while (!done() && !predicate(peek()))
move_by(1);
}
ALWAYS_INLINE void move_while(Function<bool(char)> predicate)
ALWAYS_INLINE void move_while(AK::Function<bool(char)> predicate)
{
move_until([&predicate](char t) { return !predicate(t); });
}