提交 668d2d56 编写于 作者: B Behdad Esfahbod

[iter] One more dagger

上级 d5145250
......@@ -1544,12 +1544,13 @@ struct ContextFormat2
&class_def
};
for (auto it = hb_enumerate (ruleSet); it; ++it)
if (class_def.intersects_class (glyphs, (*it).first) &&
(this+(*it).second).intersects (glyphs, lookup_context))
return true;
return false;
return
+ hb_enumerate (ruleSet)
| hb_filter ([&] (const hb_pair_t<unsigned, const OffsetTo<RuleSet> &> p) -> bool
{ return class_def.intersects_class (glyphs, p.first) &&
(this+p.second).intersects (glyphs, lookup_context); })
| hb_any
;
}
void closure (hb_closure_context_t *c) const
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册