[bit-set] Add a couple of alias methods

pull/5043/head
Behdad Esfahbod 1 week ago
parent 942a30b7df
commit 900db7b1bd
  1. 3
      src/hb-bit-page.hh
  2. 2
      src/hb-bit-set.hh

@ -239,6 +239,9 @@ struct hb_bit_page_t
return true;
return false;
}
bool may_intersect (const hb_bit_page_t &other) const
{ return intersects (other); }
bool operator <= (const hb_bit_page_t &larger_page) const { return is_subset (larger_page); }
bool is_subset (const hb_bit_page_t &larger_page) const
{

@ -380,6 +380,8 @@ struct hb_bit_set_t
}
return false;
}
bool may_intersect (const hb_bit_set_t &other) const
{ return intersects (other); }
bool intersects (hb_codepoint_t first, hb_codepoint_t last) const
{

Loading…
Cancel
Save