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