diff --git a/src/hb-bit-page.hh b/src/hb-bit-page.hh index 5823b33e6..101e9d067 100644 --- a/src/hb-bit-page.hh +++ b/src/hb-bit-page.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 { diff --git a/src/hb-bit-set.hh b/src/hb-bit-set.hh index f0dc0f865..8fffa71b4 100644 --- a/src/hb-bit-set.hh +++ b/src/hb-bit-set.hh @@ -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 {