mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[set] Add "inverted" to page_t::is_empty()
This commit is contained in:
1 parent
9bd64fa077
commit
0c3e02ee2d
1 file changed
+2
-2
+2
-2
@@ -65,10 +65,10 @@ struct hb_set_t
|
||||
constexpr unsigned len () const
|
||||
{ return ARRAY_LENGTH_CONST (v); }
|
||||
|
||||
bool is_empty () const
|
||||
bool is_empty (bool inverted = false) const
|
||||
{
|
||||
for (unsigned int i = 0; i < len (); i++)
|
||||
if (v[i])
|
||||
if (elt_maybe_invert (v[i], inverted))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user