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:
parent
9204252d02
commit
b78ea81de5
3 changed files with 68 additions and 8 deletions
|
@ -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); });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue