Functions
hb_map_allocation_successful ()
hb_bool_t
hb_map_allocation_successful (const hb_map_t *map
);
Tests whether memory allocation for a set was successful.
Returns
true
if allocation succeeded, false otherwise
Since: 1.7.7
hb_map_clear ()
void
hb_map_clear (hb_map_t *map
);
Clears out the contents of map
.
Since: 1.7.7
hb_map_create ()
hb_map_t *
hb_map_create (void
);
Creates a new, initially empty map.
[Xconstructor]
Returns
The new hb_map_t.
[transfer full]
Since: 1.7.7
hb_map_destroy ()
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_map_get_empty ()
hb_map_t *
hb_map_get_empty (void
);
Fetches the singleton empty hb_map_t.
Returns
The empty hb_map_t.
[transfer full]
Since: 1.7.7
hb_map_get_population ()
unsigned int
hb_map_get_population (const hb_map_t *map
);
Returns the number of key-value pairs in the map.
Returns
The population of map
Since: 1.7.7
hb_map_get_user_data ()
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]
Returns
A pointer to the user data.
[transfer none]
Since: 1.7.7
hb_map_has ()
hb_bool_t
hb_map_has (const hb_map_t *map
,
hb_codepoint_t key
);
Tests whether key
is an element of map
.
Returns
true
if key
is found in map
, false otherwise
Since: 1.7.7
hb_map_is_empty ()
hb_bool_t
hb_map_is_empty (const hb_map_t *map
);
Tests whether map
is empty (contains no elements).
Returns
true
if map
is empty
Since: 1.7.7
hb_map_reference ()
hb_map_t *
hb_map_reference (hb_map_t *map
);
Increases the reference count on a map.
[skip]
Returns
The map.
[transfer full]
Since: 1.7.7