diff options
Diffstat (limited to 'intl/icu_capi/c/include/ICU4XList.h')
-rw-r--r-- | intl/icu_capi/c/include/ICU4XList.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/intl/icu_capi/c/include/ICU4XList.h b/intl/icu_capi/c/include/ICU4XList.h new file mode 100644 index 0000000000..6549561c37 --- /dev/null +++ b/intl/icu_capi/c/include/ICU4XList.h @@ -0,0 +1,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 |