![]() |
![]() |
![]() |
![]() |
Set objects represent a mathematical set of integer values. They are used in non-shaping API to query certain set of characters or glyphs, or other integer values.
void hb_set_add_range (hb_set_t *set
,hb_codepoint_t first
,hb_codepoint_t last
);
Since: 0.9.7
hb_bool_t
hb_set_allocation_successful (const hb_set_t *set
);
Since: 0.9.2
void hb_set_del_range (hb_set_t *set
,hb_codepoint_t first
,hb_codepoint_t last
);
Since: 0.9.7
hb_codepoint_t
hb_set_get_max (const hb_set_t *set
);
Finds the maximum number in the set.
Since: 0.9.7
hb_codepoint_t
hb_set_get_min (const hb_set_t *set
);
Finds the minimum number in the set.
Since: 0.9.7
unsigned int
hb_set_get_population (const hb_set_t *set
);
Returns the number of numbers in the set.
Since: 0.9.7
void * hb_set_get_user_data (hb_set_t *set
,hb_user_data_key_t *key
);
[skip]
Since: 0.9.2
hb_bool_t hb_set_is_equal (const hb_set_t *set
,const hb_set_t *other
);
Since: 0.9.7
hb_bool_t hb_set_is_subset (const hb_set_t *set
,const hb_set_t *larger_set
);
Since: 1.8.1
hb_bool_t hb_set_next (const hb_set_t *set
,hb_codepoint_t *codepoint
);
Gets the next number in set
that is greater than current value of codepoint
.
Set codepoint
to HB_SET_VALUE_INVALID
to get started.
Since: 0.9.2
hb_bool_t hb_set_next_range (const hb_set_t *set
,hb_codepoint_t *first
,hb_codepoint_t *last
);
Gets the next consecutive range of numbers in set
that
are greater than current value of last
.
Set last
to HB_SET_VALUE_INVALID
to get started.
set |
a set. |
|
first |
output first codepoint in the range. |
[out] |
last |
input current last and output last codepoint in the range. |
[inout] |
Since: 0.9.7
hb_bool_t hb_set_previous (const hb_set_t *set
,hb_codepoint_t *codepoint
);
Gets the previous number in set
that is lower than current value of codepoint
.
Set codepoint
to HB_SET_VALUE_INVALID
to get started.
Since: 1.8.0
hb_bool_t hb_set_previous_range (const hb_set_t *set
,hb_codepoint_t *first
,hb_codepoint_t *last
);
Gets the previous consecutive range of numbers in set
that
are less than current value of first
.
Set first
to HB_SET_VALUE_INVALID
to get started.
set |
a set. |
|
first |
input current first and output first codepoint in the range. |
[inout] |
last |
output last codepoint in the range. |
[out] |
Since: 1.8.0
hb_bool_t hb_set_set_user_data (hb_set_t *set
,hb_user_data_key_t *key
,void *data
,hb_destroy_func_t destroy
,hb_bool_t replace
);
[skip]
Since: 0.9.2