Move fn, fix doc.

This commit is contained in:
Andy John 2022-03-21 14:31:47 -07:00 committed by Behdad Esfahbod
parent 7d802994be
commit 1176620ba4
1 changed files with 17 additions and 16 deletions

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