Debian Codegraph @

intl/icu_capi/bindings/c/ICU4XLineSegmenter.h

raw
1 #ifndef ICU4XLineSegmenter_H
2 #define ICU4XLineSegmenter_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 ICU4XLineSegmenter ICU4XLineSegmenter;
14 #ifdef __cplusplus
15 } // namespace capi
16 #endif
17 #include "ICU4XDataProvider.h"
18 #include "diplomat_result_box_ICU4XLineSegmenter_ICU4XError.h"
19 #include "ICU4XLineBreakOptionsV1.h"
20 #include "ICU4XLineBreakIteratorUtf8.h"
21 #include "ICU4XLineBreakIteratorUtf16.h"
22 #include "ICU4XLineBreakIteratorLatin1.h"
23 #ifdef __cplusplus
24 namespace capi {
25 extern "C" {
26 #endif
27
28 diplomat_result_box_ICU4XLineSegmenter_ICU4XError ICU4XLineSegmenter_create_auto(const ICU4XDataProvider* provider);
29
30 diplomat_result_box_ICU4XLineSegmenter_ICU4XError ICU4XLineSegmenter_create_lstm(const ICU4XDataProvider* provider);
31
32 diplomat_result_box_ICU4XLineSegmenter_ICU4XError ICU4XLineSegmenter_create_dictionary(const ICU4XDataProvider* provider);
33
34 diplomat_result_box_ICU4XLineSegmenter_ICU4XError ICU4XLineSegmenter_create_auto_with_options_v1(const ICU4XDataProvider* provider, ICU4XLineBreakOptionsV1 options);
35
36 diplomat_result_box_ICU4XLineSegmenter_ICU4XError ICU4XLineSegmenter_create_lstm_with_options_v1(const ICU4XDataProvider* provider, ICU4XLineBreakOptionsV1 options);
37
38 diplomat_result_box_ICU4XLineSegmenter_ICU4XError ICU4XLineSegmenter_create_dictionary_with_options_v1(const ICU4XDataProvider* provider, ICU4XLineBreakOptionsV1 options);
39
40 ICU4XLineBreakIteratorUtf8* ICU4XLineSegmenter_segment_utf8(const ICU4XLineSegmenter* self, const char* input_data, size_t input_len);
41
42 ICU4XLineBreakIteratorUtf16* ICU4XLineSegmenter_segment_utf16(const ICU4XLineSegmenter* self, const char16_t* input_data, size_t input_len);
43
44 ICU4XLineBreakIteratorLatin1* ICU4XLineSegmenter_segment_latin1(const ICU4XLineSegmenter* self, const uint8_t* input_data, size_t input_len);
45 void ICU4XLineSegmenter_destroy(ICU4XLineSegmenter* self);
46
47 #ifdef __cplusplus
48 } // extern "C"
49 } // namespace capi
50 #endif
51 #endif