summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/c/include/ICU4XList.h
blob: 6549561c37ba6b2223d318eff19d2ed31a031e2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef ICU4XList_H
#define ICU4XList_H
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "diplomat_runtime.h"

#ifdef __cplusplus
namespace capi {
#endif

typedef struct ICU4XList ICU4XList;
#ifdef __cplusplus
} // namespace capi
#endif
#ifdef __cplusplus
namespace capi {
extern "C" {
#endif

ICU4XList* ICU4XList_create();

ICU4XList* ICU4XList_create_with_capacity(size_t capacity);

void ICU4XList_push(ICU4XList* self, const char* val_data, size_t val_len);

size_t ICU4XList_len(const ICU4XList* self);
void ICU4XList_destroy(ICU4XList* self);

#ifdef __cplusplus
} // extern "C"
} // namespace capi
#endif
#endif