You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
HarfBuzz: Update to version 8.0.0
This commit is contained in:
9
thirdparty/harfbuzz/src/hb-bit-set.hh
vendored
9
thirdparty/harfbuzz/src/hb-bit-set.hh
vendored
@@ -134,7 +134,11 @@ struct hb_bit_set_t
|
||||
{
|
||||
uint32_t h = 0;
|
||||
for (auto &map : page_map)
|
||||
h = h * 31 + hb_hash (map.major) + hb_hash (pages[map.index]);
|
||||
{
|
||||
auto &page = pages.arrayZ[map.index];
|
||||
if (unlikely (page.is_empty ())) continue;
|
||||
h = h * 31 + hb_hash (map.major) + hb_hash (page);
|
||||
}
|
||||
return h;
|
||||
}
|
||||
|
||||
@@ -342,7 +346,7 @@ struct hb_bit_set_t
|
||||
/* Sink interface. */
|
||||
hb_bit_set_t& operator << (hb_codepoint_t v)
|
||||
{ add (v); return *this; }
|
||||
hb_bit_set_t& operator << (const hb_pair_t<hb_codepoint_t, hb_codepoint_t>& range)
|
||||
hb_bit_set_t& operator << (const hb_codepoint_pair_t& range)
|
||||
{ add_range (range.first, range.second); return *this; }
|
||||
|
||||
bool intersects (hb_codepoint_t first, hb_codepoint_t last) const
|
||||
@@ -862,6 +866,7 @@ struct hb_bit_set_t
|
||||
struct iter_t : hb_iter_with_fallback_t<iter_t, hb_codepoint_t>
|
||||
{
|
||||
static constexpr bool is_sorted_iterator = true;
|
||||
static constexpr bool has_fast_len = true;
|
||||
iter_t (const hb_bit_set_t &s_ = Null (hb_bit_set_t),
|
||||
bool init = true) : s (&s_), v (INVALID), l(0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user