diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pdf/SkClusterator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pdf/SkClusterator.h b/src/pdf/SkClusterator.h index db47a5dcdd..97aded2197 100644 --- a/src/pdf/SkClusterator.h +++ b/src/pdf/SkClusterator.h @@ -31,6 +31,13 @@ public: uint32_t fGlyphIndex; uint32_t fGlyphCount; explicit operator bool() const { return fGlyphCount != 0; } + bool operator==(const SkClusterator::Cluster& o) { + return fUtf8Text == o.fUtf8Text + && fTextByteLength == o.fTextByteLength + && fGlyphIndex == o.fGlyphIndex + && fGlyphCount == o.fGlyphCount; + } + }; Cluster next(); |