Debian Codegraph @

intl/icu_capi/bindings/c/ICU4XList.h

raw
1 #ifndef ICU4XList_H
2 #define ICU4XList_H
3 #include <stdio.h>
4 #include <stdint.h>
5 #include <stddef.h>
6 #include <stdbool.h>
7 #include "diplomat_runtime.h"
8
9 #ifdef __cplusplus
10 namespace capi {
11 #endif
12
13 typedef struct ICU4XList ICU4XList;
14 #ifdef __cplusplus
15 } // namespace capi
16 #endif
17 #ifdef __cplusplus
18 namespace capi {
19 extern "C" {
20 #endif
21
22 ICU4XList* ICU4XList_create();
23
24 ICU4XList* ICU4XList_create_with_capacity(size_t capacity);
25
26 void ICU4XList_push(ICU4XList* self, const char* val_data, size_t val_len);
27
28 size_t ICU4XList_len(const ICU4XList* self);
29
30 bool ICU4XList_is_empty(const ICU4XList* self);
31 void ICU4XList_destroy(ICU4XList* self);
32
33 #ifdef __cplusplus
34 } // extern "C"
35 } // namespace capi
36 #endif
37 #endif