summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/c/include/ICU4XDataProvider.h
blob: 8d7700e224ed80156f9ac4cccc1a0e44224b008b (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
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef ICU4XDataProvider_H
#define ICU4XDataProvider_H
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include "diplomat_runtime.h"

#ifdef __cplusplus
namespace capi {
#endif

typedef struct ICU4XDataProvider ICU4XDataProvider;
#ifdef __cplusplus
} // namespace capi
#endif
#include "diplomat_result_box_ICU4XDataProvider_ICU4XError.h"
#include "diplomat_result_void_ICU4XError.h"
#include "ICU4XLocaleFallbacker.h"
#ifdef __cplusplus
namespace capi {
extern "C" {
#endif

ICU4XDataProvider* ICU4XDataProvider_create_compiled();

diplomat_result_box_ICU4XDataProvider_ICU4XError ICU4XDataProvider_create_fs(const char* path_data, size_t path_len);

ICU4XDataProvider* ICU4XDataProvider_create_test();

diplomat_result_box_ICU4XDataProvider_ICU4XError ICU4XDataProvider_create_from_byte_slice(const uint8_t* blob_data, size_t blob_len);

ICU4XDataProvider* ICU4XDataProvider_create_empty();

diplomat_result_void_ICU4XError ICU4XDataProvider_fork_by_key(ICU4XDataProvider* self, ICU4XDataProvider* other);

diplomat_result_void_ICU4XError ICU4XDataProvider_fork_by_locale(ICU4XDataProvider* self, ICU4XDataProvider* other);

diplomat_result_void_ICU4XError ICU4XDataProvider_enable_locale_fallback(ICU4XDataProvider* self);

diplomat_result_void_ICU4XError ICU4XDataProvider_enable_locale_fallback_with(ICU4XDataProvider* self, const ICU4XLocaleFallbacker* fallbacker);
void ICU4XDataProvider_destroy(ICU4XDataProvider* self);

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