diff --git a/src/hb-bit-page.hh b/src/hb-bit-page.hh index 373733c74..5823b33e6 100644 --- a/src/hb-bit-page.hh +++ b/src/hb-bit-page.hh @@ -232,7 +232,7 @@ struct hb_bit_page_t return false; return true; } - bool may_intersect (const hb_bit_page_t &other) const + bool intersects (const hb_bit_page_t &other) const { for (unsigned i = 0; i < len (); i++) if (v[i] & other.v[i]) diff --git a/src/hb-bit-set-invertible.hh b/src/hb-bit-set-invertible.hh index 862b1a659..bc8a545ad 100644 --- a/src/hb-bit-set-invertible.hh +++ b/src/hb-bit-set-invertible.hh @@ -140,7 +140,7 @@ struct hb_bit_set_invertible_t { add_range (range.first, range.second); return *this; } bool may_intersect (const hb_bit_set_invertible_t &other) const - { return inverted || other.inverted || s.may_intersect (other.s); } + { return inverted || other.inverted || s.intersects (other.s); } bool intersects (hb_codepoint_t first, hb_codepoint_t last) const { diff --git a/src/hb-bit-set.hh b/src/hb-bit-set.hh index 62312d545..f0dc0f865 100644 --- a/src/hb-bit-set.hh +++ b/src/hb-bit-set.hh @@ -358,7 +358,7 @@ struct hb_bit_set_t hb_bit_set_t& operator << (const hb_codepoint_pair_t& range) { add_range (range.first, range.second); return *this; } - bool may_intersect (const hb_bit_set_t &other) const + bool intersects (const hb_bit_set_t &other) const { unsigned int na = pages.length; unsigned int nb = other.pages.length; @@ -368,7 +368,7 @@ struct hb_bit_set_t { if (page_map.arrayZ[a].major == other.page_map.arrayZ[b].major) { - if (page_at (a).may_intersect (other.page_at (b))) + if (page_at (a).intersects (other.page_at (b))) return true; a++; b++;