diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-08-29 04:06:16 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2021-08-29 04:06:16 +0000 |
commit | e2861beed768a741fd41e8df0ab6a74f5b583d05 (patch) | |
tree | c4fcc6aa758b08701034e3be0e6abdcab99c64ad /Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc | |
parent | 28456f9ecb080a4c3c43336b6dfb5d72a9cc528a (diff) |
harfbuzz 2.9.0
git-svn-id: svn://tug.org/texlive/trunk@60356 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc')
-rw-r--r-- | Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc index 86bf70034c9..25f29c67bf8 100644 --- a/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc +++ b/Build/source/libs/harfbuzz/harfbuzz-src/src/hb-set.cc @@ -109,7 +109,7 @@ hb_set_destroy (hb_set_t *set) set->fini_shallow (); - free (set); + hb_free (set); } /** @@ -173,6 +173,24 @@ hb_set_allocation_successful (const hb_set_t *set) } /** + * hb_set_copy: + * @set: A set + * + * Allocate a copy of @set. + * + * Return value: Newly-allocated set. + * + * Since: 2.8.2 + **/ +hb_set_t * +hb_set_copy (const hb_set_t *set) +{ + hb_set_t *copy = hb_set_create (); + copy->set (*set); + return copy; +} + +/** * hb_set_clear: * @set: A set * @@ -283,6 +301,9 @@ hb_set_del (hb_set_t *set, * Removes all of the elements from @first to @last * (inclusive) from @set. * + * If @last is #HB_SET_VALUE_INVALID, then all values + * greater than or equal to @first are removed. + * * Since: 0.9.7 **/ void @@ -309,7 +330,7 @@ hb_bool_t hb_set_is_equal (const hb_set_t *set, const hb_set_t *other) { - return set->is_equal (other); + return set->is_equal (*other); } /** @@ -327,7 +348,7 @@ hb_bool_t hb_set_is_subset (const hb_set_t *set, const hb_set_t *larger_set) { - return set->is_subset (larger_set); + return set->is_subset (*larger_set); } /** @@ -343,7 +364,7 @@ void hb_set_set (hb_set_t *set, const hb_set_t *other) { - set->set (other); + set->set (*other); } /** @@ -359,7 +380,7 @@ void hb_set_union (hb_set_t *set, const hb_set_t *other) { - set->union_ (other); + set->union_ (*other); } /** @@ -375,7 +396,7 @@ void hb_set_intersect (hb_set_t *set, const hb_set_t *other) { - set->intersect (other); + set->intersect (*other); } /** @@ -391,7 +412,7 @@ void hb_set_subtract (hb_set_t *set, const hb_set_t *other) { - set->subtract (other); + set->subtract (*other); } /** @@ -408,7 +429,7 @@ void hb_set_symmetric_difference (hb_set_t *set, const hb_set_t *other) { - set->symmetric_difference (other); + set->symmetric_difference (*other); } #ifndef HB_DISABLE_DEPRECATED |