Move fn, fix doc.

This commit is contained in:
Andy John authored and Behdad Esfahbod committed 2022-03-21 15:32:59 -06:00
1 parent 7d802994be
commit 1176620ba4
1 file changed
+17 -16
+17 -16
View File
@@ -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