mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Change index parameter type from int to size_t (issue #1491)
This commit is contained in:
@@ -51,14 +51,14 @@ CEF_EXPORT cef_string_list_t cef_string_list_alloc();
|
||||
///
|
||||
// Return the number of elements in the string list.
|
||||
///
|
||||
CEF_EXPORT int cef_string_list_size(cef_string_list_t list);
|
||||
CEF_EXPORT size_t cef_string_list_size(cef_string_list_t list);
|
||||
|
||||
///
|
||||
// Retrieve the value at the specified zero-based string list index. Returns
|
||||
// true (1) if the value was successfully retrieved.
|
||||
///
|
||||
CEF_EXPORT int cef_string_list_value(cef_string_list_t list,
|
||||
int index, cef_string_t* value);
|
||||
size_t index, cef_string_t* value);
|
||||
|
||||
///
|
||||
// Append a new value at the end of the string list.
|
||||
|
@@ -51,7 +51,7 @@ CEF_EXPORT cef_string_map_t cef_string_map_alloc();
|
||||
///
|
||||
// Return the number of elements in the string map.
|
||||
///
|
||||
CEF_EXPORT int cef_string_map_size(cef_string_map_t map);
|
||||
CEF_EXPORT size_t cef_string_map_size(cef_string_map_t map);
|
||||
|
||||
///
|
||||
// Return the value assigned to the specified key.
|
||||
@@ -63,13 +63,13 @@ CEF_EXPORT int cef_string_map_find(cef_string_map_t map,
|
||||
///
|
||||
// Return the key at the specified zero-based string map index.
|
||||
///
|
||||
CEF_EXPORT int cef_string_map_key(cef_string_map_t map, int index,
|
||||
CEF_EXPORT int cef_string_map_key(cef_string_map_t map, size_t index,
|
||||
cef_string_t* key);
|
||||
|
||||
///
|
||||
// Return the value at the specified zero-based string map index.
|
||||
///
|
||||
CEF_EXPORT int cef_string_map_value(cef_string_map_t map, int index,
|
||||
CEF_EXPORT int cef_string_map_value(cef_string_map_t map, size_t index,
|
||||
cef_string_t* value);
|
||||
|
||||
///
|
||||
|
@@ -52,12 +52,12 @@ CEF_EXPORT cef_string_multimap_t cef_string_multimap_alloc();
|
||||
///
|
||||
// Return the number of elements in the string multimap.
|
||||
///
|
||||
CEF_EXPORT int cef_string_multimap_size(cef_string_multimap_t map);
|
||||
CEF_EXPORT size_t cef_string_multimap_size(cef_string_multimap_t map);
|
||||
|
||||
///
|
||||
// Return the number of values with the specified key.
|
||||
///
|
||||
CEF_EXPORT int cef_string_multimap_find_count(cef_string_multimap_t map,
|
||||
CEF_EXPORT size_t cef_string_multimap_find_count(cef_string_multimap_t map,
|
||||
const cef_string_t* key);
|
||||
|
||||
///
|
||||
@@ -65,19 +65,19 @@ CEF_EXPORT int cef_string_multimap_find_count(cef_string_multimap_t map,
|
||||
///
|
||||
CEF_EXPORT int cef_string_multimap_enumerate(cef_string_multimap_t map,
|
||||
const cef_string_t* key,
|
||||
int value_index,
|
||||
size_t value_index,
|
||||
cef_string_t* value);
|
||||
|
||||
///
|
||||
// Return the key at the specified zero-based string multimap index.
|
||||
///
|
||||
CEF_EXPORT int cef_string_multimap_key(cef_string_multimap_t map, int index,
|
||||
CEF_EXPORT int cef_string_multimap_key(cef_string_multimap_t map, size_t index,
|
||||
cef_string_t* key);
|
||||
|
||||
///
|
||||
// Return the value at the specified zero-based string multimap index.
|
||||
///
|
||||
CEF_EXPORT int cef_string_multimap_value(cef_string_multimap_t map, int index,
|
||||
CEF_EXPORT int cef_string_multimap_value(cef_string_multimap_t map, size_t index,
|
||||
cef_string_t* value);
|
||||
|
||||
///
|
||||
|
Reference in New Issue
Block a user