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

[iter] Port one more function to dagger

上级 bcab098c
...@@ -722,12 +722,14 @@ struct PairPosFormat1 ...@@ -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_zip (this+coverage, pairSet)
| hb_filter (*glyphs, hb_first) | hb_filter (*glyphs, hb_first)
| hb_map (hb_second); it; ++it) | hb_map (hb_second)
if ((this+*it).intersects (glyphs, valueFormat)) | hb_map ([&] (const OffsetTo<PairSet> &_) -> bool
return true; { return (this+_).intersects (glyphs, valueFormat); })
return false; | hb_any
;
} }
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.
先完成此消息的编辑!
想要评论请 注册