got rid of Remap::fullset() as incorrect, redundant, inefficient
This commit is contained in:
parent
636a6833c5
commit
417963dd9f
|
@ -433,34 +433,12 @@ struct Remap : hb_vector_t<hb_codepoint_t>
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool fullset (void) const
|
|
||||||
{
|
|
||||||
for (unsigned int i = 0; i < len; i++)
|
|
||||||
if (SUPER::operator[] (i) == CFF_UNDEF_CODE)
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool excludes (hb_codepoint_t id) const
|
inline bool excludes (hb_codepoint_t id) const
|
||||||
{ return (id < len) && ((*this)[id] == CFF_UNDEF_CODE); }
|
{ return (id < len) && ((*this)[id] == CFF_UNDEF_CODE); }
|
||||||
|
|
||||||
inline bool includes (hb_codepoint_t id) const
|
inline bool includes (hb_codepoint_t id) const
|
||||||
{ return !excludes (id); }
|
{ return !excludes (id); }
|
||||||
|
|
||||||
inline hb_codepoint_t operator[] (hb_codepoint_t i) const
|
|
||||||
{
|
|
||||||
if (fullset ())
|
|
||||||
return i;
|
|
||||||
else
|
|
||||||
return SUPER::operator[] (i);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline hb_codepoint_t &operator[] (hb_codepoint_t i)
|
|
||||||
{
|
|
||||||
assert (i < len);
|
|
||||||
return SUPER::operator[] (i);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline unsigned int add (unsigned int i)
|
inline unsigned int add (unsigned int i)
|
||||||
{
|
{
|
||||||
if ((*this)[i] == CFF_UNDEF_CODE)
|
if ((*this)[i] == CFF_UNDEF_CODE)
|
||||||
|
|
Loading…
Reference in New Issue