diff --git a/src/hb-set.cc b/src/hb-set.cc index 6938f8b6c..7c80fc267 100644 --- a/src/hb-set.cc +++ b/src/hb-set.cc @@ -61,22 +61,6 @@ hb_set_create () return set; } -/** - * Creates a set initially populated with num_codepoint codepoints, which must - * be in increasing order. - * - * Since: REPLACEME - */ -HB_EXTERN void -hb_set_add_sorted_array (hb_set_t *set, - const hb_codepoint_t *sorted_codepoints, - unsigned int num_codepoints) -{ - set->add_sorted_array (sorted_codepoints, - num_codepoints, - sizeof(hb_codepoint_t)); -} - /** * hb_set_get_empty: * @@ -272,6 +256,23 @@ hb_set_add (hb_set_t *set, set->add (codepoint); } +/** + * Adds num_codepoints codepoints to a set at once. + * The codepoints array must be in increasing order, + * with size at least num_codepoints. + * + * Since: REPLACEME + */ +HB_EXTERN void +hb_set_add_sorted_array (hb_set_t *set, + const hb_codepoint_t *sorted_codepoints, + unsigned int num_codepoints) +{ + set->add_sorted_array (sorted_codepoints, + num_codepoints, + sizeof(hb_codepoint_t)); +} + /** * hb_set_add_range: * @set: A set