[iter] One more dagger

This commit is contained in:
Behdad Esfahbod 2019-03-29 22:48:38 -07:00
parent d51452500f
commit 668d2d562f
1 changed files with 7 additions and 6 deletions

View File

@ -1544,12 +1544,13 @@ struct ContextFormat2
&class_def &class_def
}; };
for (auto it = hb_enumerate (ruleSet); it; ++it) return
if (class_def.intersects_class (glyphs, (*it).first) && + hb_enumerate (ruleSet)
(this+(*it).second).intersects (glyphs, lookup_context)) | hb_filter ([&] (const hb_pair_t<unsigned, const OffsetTo<RuleSet> &> p) -> bool
return true; { return class_def.intersects_class (glyphs, p.first) &&
(this+p.second).intersects (glyphs, lookup_context); })
return false; | hb_any
;
} }
void closure (hb_closure_context_t *c) const void closure (hb_closure_context_t *c) const