[bit-set] Rename a method

pull/5042/head
Behdad Esfahbod 1 week ago
parent b44f6ff5fe
commit 7b9277486f
  1. 2
      src/hb-bit-page.hh
  2. 2
      src/hb-bit-set-invertible.hh
  3. 4
      src/hb-bit-set.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])

@ -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
{

@ -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++;

Loading…
Cancel
Save