[iter] Port one more function to dagger

This commit is contained in:
Behdad Esfahbod 2019-03-29 21:57:17 -07:00
parent bcab098c8f
commit f5ef8a7347
1 changed files with 8 additions and 6 deletions

View File

@ -722,12 +722,14 @@ struct PairPosFormat1
{ {
bool intersects (const hb_set_t *glyphs) const bool intersects (const hb_set_t *glyphs) const
{ {
for (auto it = hb_zip (this+coverage, pairSet) return
| hb_filter (*glyphs, hb_first) + hb_zip (this+coverage, pairSet)
| hb_map (hb_second); it; ++it) | hb_filter (*glyphs, hb_first)
if ((this+*it).intersects (glyphs, valueFormat)) | hb_map (hb_second)
return true; | hb_map ([&] (const OffsetTo<PairSet> &_) -> bool
return false; { return (this+_).intersects (glyphs, valueFormat); })
| hb_any
;
} }
void collect_glyphs (hb_collect_glyphs_context_t *c) const void collect_glyphs (hb_collect_glyphs_context_t *c) const