[bit-set-invertible] Write a subset branch as dagger

pull/3154/head
Behdad Esfahbod 3 years ago
parent c39d2f7a76
commit c66894d7c9
  1. 8
      src/hb-bit-set-invertible.hh

@ -103,13 +103,7 @@ struct hb_bit_set_invertible_t
{
if (inverted && !larger_set.inverted) return false; /*XXX*/
if (!inverted && larger_set.inverted)
{
/* TODO(iter) Write as hb_all dagger. */
for (auto c: s)
if (larger_set.s.has (c))
return false;
return true;
}
return hb_all (hb_iter (s) | hb_map (larger_set.s));
/* inverted == larger_set.inverted */
return inverted ? larger_set.s.is_subset (s) : s.is_subset (larger_set.s);
}

Loading…
Cancel
Save