From 1176620ba4e788d40a2be8d33c2647bc5aba9c82 Mon Sep 17 00:00:00 2001 From: Andy John Date: Mon, 21 Mar 2022 14:31:47 -0700 Subject: [PATCH] Move fn, fix doc. --- src/hb-set.cc | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) 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