From 900db7b1bd2a3169ee4fb20b62487f66042bd516 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 5 Feb 2025 16:41:49 +0000 Subject: [PATCH] [bit-set] Add a couple of alias methods --- src/hb-bit-page.hh | 3 +++ src/hb-bit-set.hh | 2 ++ 2 files changed, 5 insertions(+) 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 {