Chromium Embedded Framework (CEF)  130.1.2+g48f3ef6+chromium-130.0.6723.44
cef_string_map.h File Reference

Typedefs

typedef struct _cef_string_map_t * cef_string_map_t
 CEF string maps are a set of key/value string pairs. More...
 

Functions

CEF_EXPORT cef_string_map_t cef_string_map_alloc (void)
 Allocate a new string map. More...
 
CEF_EXPORT size_t cef_string_map_size (cef_string_map_t map)
 Return the number of elements in the string map. More...
 
CEF_EXPORT int cef_string_map_find (cef_string_map_t map, const cef_string_t *key, cef_string_t *value)
 Return the value assigned to the specified key. More...
 
CEF_EXPORT int cef_string_map_key (cef_string_map_t map, size_t index, cef_string_t *key)
 Return the key at the specified zero-based string map index. More...
 
CEF_EXPORT int cef_string_map_value (cef_string_map_t map, size_t index, cef_string_t *value)
 Return the value at the specified zero-based string map index. More...
 
CEF_EXPORT int cef_string_map_append (cef_string_map_t map, const cef_string_t *key, const cef_string_t *value)
 Append a new key/value pair at the end of the string map. More...
 
CEF_EXPORT void cef_string_map_clear (cef_string_map_t map)
 Clear the string map. More...
 
CEF_EXPORT void cef_string_map_free (cef_string_map_t map)
 Free the string map. More...
 

Typedef Documentation

◆ cef_string_map_t

typedef struct _cef_string_map_t* cef_string_map_t

CEF string maps are a set of key/value string pairs.

Function Documentation

◆ cef_string_map_alloc()

CEF_EXPORT cef_string_map_t cef_string_map_alloc ( void  )

Allocate a new string map.

◆ cef_string_map_append()

CEF_EXPORT int cef_string_map_append ( cef_string_map_t  map,
const cef_string_t key,
const cef_string_t value 
)

Append a new key/value pair at the end of the string map.

If the key exists, overwrite the existing value with a new value w/o changing the pair order.

◆ cef_string_map_clear()

CEF_EXPORT void cef_string_map_clear ( cef_string_map_t  map)

Clear the string map.

◆ cef_string_map_find()

CEF_EXPORT int cef_string_map_find ( cef_string_map_t  map,
const cef_string_t key,
cef_string_t value 
)

Return the value assigned to the specified key.

◆ cef_string_map_free()

CEF_EXPORT void cef_string_map_free ( cef_string_map_t  map)

Free the string map.

◆ cef_string_map_key()

CEF_EXPORT int cef_string_map_key ( cef_string_map_t  map,
size_t  index,
cef_string_t key 
)

Return the key at the specified zero-based string map index.

◆ cef_string_map_size()

CEF_EXPORT size_t cef_string_map_size ( cef_string_map_t  map)

Return the number of elements in the string map.

◆ cef_string_map_value()

CEF_EXPORT int cef_string_map_value ( cef_string_map_t  map,
size_t  index,
cef_string_t value 
)

Return the value at the specified zero-based string map index.