提交 f505b5d5 编写于 作者: B Behdad Esfahbod

[iter] Port remaining "for (auto" instances to daggers

上级 668d2d56
...@@ -1565,9 +1565,14 @@ struct ContextFormat2 ...@@ -1565,9 +1565,14 @@ struct ContextFormat2
&class_def &class_def
}; };
for (auto it = hb_enumerate (ruleSet); it; ++it) return
if (class_def.intersects_class (c->glyphs, (*it).first)) + hb_enumerate (ruleSet)
(this+(*it).second).closure (c, lookup_context); | hb_filter ([&] (unsigned _) -> bool
{ return class_def.intersects_class (c->glyphs, _); },
hb_first)
| hb_map (hb_second)
| hb_apply ([&] (const OffsetTo<RuleSet> &_) { (this+_).closure (c, lookup_context); })
;
} }
void collect_glyphs (hb_collect_glyphs_context_t *c) const void collect_glyphs (hb_collect_glyphs_context_t *c) const
...@@ -2186,12 +2191,13 @@ struct ChainContextFormat2 ...@@ -2186,12 +2191,13 @@ struct ChainContextFormat2
&lookahead_class_def} &lookahead_class_def}
}; };
for (auto it = hb_enumerate (ruleSet); it; ++it) return
if (input_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<ChainRuleSet> &> p) -> bool
return true; { return input_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
{ {
...@@ -2209,9 +2215,14 @@ struct ChainContextFormat2 ...@@ -2209,9 +2215,14 @@ struct ChainContextFormat2
&lookahead_class_def} &lookahead_class_def}
}; };
for (auto it = hb_enumerate (ruleSet); it; ++it) return
if (input_class_def.intersects_class (c->glyphs, (*it).first)) + hb_enumerate (ruleSet)
(this+(*it).second).closure (c, lookup_context); | hb_filter ([&] (unsigned _) -> bool
{ return input_class_def.intersects_class (c->glyphs, _); },
hb_first)
| hb_map (hb_second)
| hb_apply ([&] (const OffsetTo<ChainRuleSet> &_) { (this+_).closure (c, lookup_context); })
;
} }
void collect_glyphs (hb_collect_glyphs_context_t *c) const void collect_glyphs (hb_collect_glyphs_context_t *c) const
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册