Add a few more set operations TODO: Tests for hb_set_t.
diff --git a/src/hb-set.cc b/src/hb-set.cc index 353489b..3b1c5bd 100644 --- a/src/hb-set.cc +++ b/src/hb-set.cc
@@ -28,6 +28,8 @@ +/* Public API */ + static hb_set_t _hb_set_nil = { HB_OBJECT_HEADER_STATIC, @@ -99,6 +101,12 @@ } hb_bool_t +hb_set_empty (hb_set_t *set) +{ + return set->empty (); +} + +hb_bool_t hb_set_has (hb_set_t *set, hb_codepoint_t codepoint) { @@ -118,3 +126,50 @@ { set->del (codepoint); } + +hb_bool_t +hb_set_equal (hb_set_t *set, + hb_set_t *other) +{ + return set->equal (other); +} + +void +hb_set_set (hb_set_t *set, + hb_set_t *other) +{ + set->set (other); +} + +void +hb_set_union (hb_set_t *set, + hb_set_t *other) +{ + set->union_ (other); +} + +void +hb_set_intersect (hb_set_t *set, + hb_set_t *other) +{ + set->intersect (other); +} + +void +hb_set_subtract (hb_set_t *set, + hb_set_t *other) +{ + set->subtract (other); +} + +hb_codepoint_t +hb_set_min (hb_set_t *set) +{ + return set->min (); +} + +hb_codepoint_t +hb_set_max (hb_set_t *set) +{ + return set->max (); +}