Top |
hb_bool_t | hb_map_allocation_successful () |
void | hb_map_clear () |
hb_map_t * | hb_map_create () |
void | hb_map_del () |
void | hb_map_destroy () |
hb_codepoint_t | hb_map_get () |
hb_map_t * | hb_map_get_empty () |
unsigned int | hb_map_get_population () |
void * | hb_map_get_user_data () |
hb_bool_t | hb_map_has () |
hb_bool_t | hb_map_is_empty () |
hb_map_t * | hb_map_reference () |
void | hb_map_set () |
hb_bool_t | hb_map_set_user_data () |
Map objects are integer-to-integer hash-maps. Currently they are not used in the HarfBuzz public API, but are provided for client's use if desired.
hb_bool_t
hb_map_allocation_successful (const hb_map_t *map
);
Tests whether memory allocation for a set was successful.
Since: 1.7.7
hb_map_t *
hb_map_create (void
);
Creates a new, initially empty map.
[Xconstructor]
Since: 1.7.7
void hb_map_del (hb_map_t *map
,hb_codepoint_t key
);
Removes key
and its stored value from map
.
Since: 1.7.7
void
hb_map_destroy (hb_map_t *map
);
Decreases the reference count on a map. When the reference count reaches zero, the map is destroyed, freeing all memory.
[skip]
Since: 1.7.7
hb_codepoint_t hb_map_get (const hb_map_t *map
,hb_codepoint_t key
);
Fetches the value stored for key
in map
.
Since: 1.7.7
hb_map_t *
hb_map_get_empty (void
);
Fetches the singleton empty hb_map_t.
Since: 1.7.7
unsigned int
hb_map_get_population (const hb_map_t *map
);
Returns the number of key-value pairs in the map.
Since: 1.7.7
void * hb_map_get_user_data (hb_map_t *map
,hb_user_data_key_t *key
);
Fetches the user data associated with the specified key, attached to the specified map.
[skip]
Since: 1.7.7
hb_bool_t hb_map_has (const hb_map_t *map
,hb_codepoint_t key
);
Tests whether key
is an element of map
.
Since: 1.7.7
hb_bool_t
hb_map_is_empty (const hb_map_t *map
);
Tests whether map
is empty (contains no elements).
Since: 1.7.7
hb_map_t *
hb_map_reference (hb_map_t *map
);
Increases the reference count on a map.
[skip]
Since: 1.7.7
void hb_map_set (hb_map_t *map
,hb_codepoint_t key
,hb_codepoint_t value
);
Stores key
:value
in the map.
Since: 1.7.7
hb_bool_t hb_map_set_user_data (hb_map_t *map
,hb_user_data_key_t *key
,void *data
,hb_destroy_func_t destroy
,hb_bool_t replace
);
Attaches a user-data key/data pair to the specified map.
[skip]
map |
A map |
|
key |
The user-data key to set |
|
data |
A pointer to the user data to set |
|
destroy |
A callback to call when |
[optional] |
replace |
Whether to replace an existing data with the same key |
Since: 1.7.7