[Coverage] Internal renames

This commit is contained in:
Behdad Esfahbod 2022-07-21 12:14:06 -06:00
parent 84d38df828
commit b38587aa0b
3 changed files with 13 additions and 15 deletions

View File

@ -242,11 +242,11 @@ struct Coverage
{
switch (format)
{
case 1: return u.format1.more ();
case 2: return u.format2.more ();
case 1: return u.format1.__more__ ();
case 2: return u.format2.__more__ ();
#ifndef HB_NO_BORING_EXPANSION
case 3: return u.format3.more ();
case 4: return u.format4.more ();
case 3: return u.format3.__more__ ();
case 4: return u.format4.__more__ ();
#endif
default:return false;
}
@ -255,11 +255,11 @@ struct Coverage
{
switch (format)
{
case 1: u.format1.next (); break;
case 2: u.format2.next (); break;
case 1: u.format1.__next__ (); break;
case 2: u.format2.__next__ (); break;
#ifndef HB_NO_BORING_EXPANSION
case 3: u.format3.next (); break;
case 4: u.format4.next (); break;
case 3: u.format3.__next__ (); break;
case 4: u.format4.__next__ (); break;
#endif
default: break;
}

View File

@ -105,9 +105,8 @@ struct CoverageFormat1_3
struct iter_t
{
void init (const struct CoverageFormat1_3 &c_) { c = &c_; i = 0; }
void fini () {}
bool more () const { return i < c->glyphArray.len; }
void next () { i++; }
bool __more__ () const { return i < c->glyphArray.len; }
void __next__ () { i++; }
hb_codepoint_t get_glyph () const { return c->glyphArray[i]; }
bool operator != (const iter_t& o) const
{ return i != o.i; }

View File

@ -177,14 +177,13 @@ struct CoverageFormat2_4
j = 0;
}
}
void fini () {}
bool more () const { return i < c->rangeRecord.len; }
void next ()
bool __more__ () const { return i < c->rangeRecord.len; }
void __next__ ()
{
if (j >= c->rangeRecord[i].last)
{
i++;
if (more ())
if (__more__ ())
{
unsigned int old = coverage;
j = c->rangeRecord[i].first;