[bit-set] Add a couple of alias methods

This commit is contained in:
Behdad Esfahbod committed 2025-02-05 16:41:49 +00:00
1 parent 942a30b7df
commit 900db7b1bd
2 files changed
+5

No files matched your search

+3
View File
@@ -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
{
+2
View File
@@ -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
{