ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
PropertyValueNameToEnumMapper.hpp
Go to the documentation of this file.
1#ifndef ICU4X_PropertyValueNameToEnumMapper_HPP
2#define ICU4X_PropertyValueNameToEnumMapper_HPP
3
5
6#include <stdio.h>
7#include <stdint.h>
8#include <stddef.h>
9#include <stdbool.h>
10#include <memory>
11#include <functional>
12#include <optional>
13#include <cstdlib>
14#include "DataError.hpp"
15#include "DataProvider.hpp"
16#include "diplomat_runtime.hpp"
17
18
19namespace icu4x {
20namespace capi {
21 extern "C" {
22
23 int16_t icu4x_PropertyValueNameToEnumMapper_get_strict_mv1(const icu4x::capi::PropertyValueNameToEnumMapper* self, icu4x::diplomat::capi::DiplomatStringView name);
24
25 int16_t icu4x_PropertyValueNameToEnumMapper_get_loose_mv1(const icu4x::capi::PropertyValueNameToEnumMapper* self, icu4x::diplomat::capi::DiplomatStringView name);
26
27 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_bidi_class_mv1(void);
28
29 typedef struct icu4x_PropertyValueNameToEnumMapper_create_bidi_class_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_bidi_class_with_provider_mv1_result;
30 icu4x_PropertyValueNameToEnumMapper_create_bidi_class_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_bidi_class_with_provider_mv1(const icu4x::capi::DataProvider* provider);
31
32 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_block_mv1(void);
33
34 typedef struct icu4x_PropertyValueNameToEnumMapper_create_block_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_block_with_provider_mv1_result;
35 icu4x_PropertyValueNameToEnumMapper_create_block_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_block_with_provider_mv1(const icu4x::capi::DataProvider* provider);
36
37 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_canonical_combining_class_mv1(void);
38
39 typedef struct icu4x_PropertyValueNameToEnumMapper_create_canonical_combining_class_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_canonical_combining_class_with_provider_mv1_result;
40 icu4x_PropertyValueNameToEnumMapper_create_canonical_combining_class_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_canonical_combining_class_with_provider_mv1(const icu4x::capi::DataProvider* provider);
41
42 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_east_asian_width_mv1(void);
43
44 typedef struct icu4x_PropertyValueNameToEnumMapper_create_east_asian_width_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_east_asian_width_with_provider_mv1_result;
45 icu4x_PropertyValueNameToEnumMapper_create_east_asian_width_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_east_asian_width_with_provider_mv1(const icu4x::capi::DataProvider* provider);
46
47 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_general_category_mv1(void);
48
49 typedef struct icu4x_PropertyValueNameToEnumMapper_create_general_category_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_general_category_with_provider_mv1_result;
50 icu4x_PropertyValueNameToEnumMapper_create_general_category_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_general_category_with_provider_mv1(const icu4x::capi::DataProvider* provider);
51
52 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_grapheme_cluster_break_mv1(void);
53
54 typedef struct icu4x_PropertyValueNameToEnumMapper_create_grapheme_cluster_break_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_grapheme_cluster_break_with_provider_mv1_result;
55 icu4x_PropertyValueNameToEnumMapper_create_grapheme_cluster_break_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_grapheme_cluster_break_with_provider_mv1(const icu4x::capi::DataProvider* provider);
56
57 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_hangul_syllable_type_mv1(void);
58
59 typedef struct icu4x_PropertyValueNameToEnumMapper_create_hangul_syllable_type_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_hangul_syllable_type_with_provider_mv1_result;
60 icu4x_PropertyValueNameToEnumMapper_create_hangul_syllable_type_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_hangul_syllable_type_with_provider_mv1(const icu4x::capi::DataProvider* provider);
61
62 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_indic_conjunct_break_mv1(void);
63
64 typedef struct icu4x_PropertyValueNameToEnumMapper_create_indic_conjunct_break_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_indic_conjunct_break_with_provider_mv1_result;
65 icu4x_PropertyValueNameToEnumMapper_create_indic_conjunct_break_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_indic_conjunct_break_with_provider_mv1(const icu4x::capi::DataProvider* provider);
66
67 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_mv1(void);
68
69 typedef struct icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_with_provider_mv1_result;
70 icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_with_provider_mv1(const icu4x::capi::DataProvider* provider);
71
72 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_joining_group_mv1(void);
73
74 typedef struct icu4x_PropertyValueNameToEnumMapper_create_joining_group_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_joining_group_with_provider_mv1_result;
75 icu4x_PropertyValueNameToEnumMapper_create_joining_group_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_joining_group_with_provider_mv1(const icu4x::capi::DataProvider* provider);
76
77 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_joining_type_mv1(void);
78
79 typedef struct icu4x_PropertyValueNameToEnumMapper_create_joining_type_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_joining_type_with_provider_mv1_result;
80 icu4x_PropertyValueNameToEnumMapper_create_joining_type_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_joining_type_with_provider_mv1(const icu4x::capi::DataProvider* provider);
81
82 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_line_break_mv1(void);
83
84 typedef struct icu4x_PropertyValueNameToEnumMapper_create_line_break_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_line_break_with_provider_mv1_result;
85 icu4x_PropertyValueNameToEnumMapper_create_line_break_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_line_break_with_provider_mv1(const icu4x::capi::DataProvider* provider);
86
87 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_numeric_type_mv1(void);
88
89 typedef struct icu4x_PropertyValueNameToEnumMapper_create_numeric_type_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_numeric_type_with_provider_mv1_result;
90 icu4x_PropertyValueNameToEnumMapper_create_numeric_type_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_numeric_type_with_provider_mv1(const icu4x::capi::DataProvider* provider);
91
92 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_script_mv1(void);
93
94 typedef struct icu4x_PropertyValueNameToEnumMapper_create_script_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_script_with_provider_mv1_result;
95 icu4x_PropertyValueNameToEnumMapper_create_script_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_script_with_provider_mv1(const icu4x::capi::DataProvider* provider);
96
97 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_sentence_break_mv1(void);
98
99 typedef struct icu4x_PropertyValueNameToEnumMapper_create_sentence_break_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_sentence_break_with_provider_mv1_result;
100 icu4x_PropertyValueNameToEnumMapper_create_sentence_break_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_sentence_break_with_provider_mv1(const icu4x::capi::DataProvider* provider);
101
102 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_vertical_orientation_mv1(void);
103
104 typedef struct icu4x_PropertyValueNameToEnumMapper_create_vertical_orientation_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_vertical_orientation_with_provider_mv1_result;
105 icu4x_PropertyValueNameToEnumMapper_create_vertical_orientation_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_vertical_orientation_with_provider_mv1(const icu4x::capi::DataProvider* provider);
106
107 icu4x::capi::PropertyValueNameToEnumMapper* icu4x_PropertyValueNameToEnumMapper_create_word_break_mv1(void);
108
109 typedef struct icu4x_PropertyValueNameToEnumMapper_create_word_break_with_provider_mv1_result {union {icu4x::capi::PropertyValueNameToEnumMapper* ok; icu4x::capi::DataError err;}; bool is_ok;} icu4x_PropertyValueNameToEnumMapper_create_word_break_with_provider_mv1_result;
110 icu4x_PropertyValueNameToEnumMapper_create_word_break_with_provider_mv1_result icu4x_PropertyValueNameToEnumMapper_create_word_break_with_provider_mv1(const icu4x::capi::DataProvider* provider);
111
112 void icu4x_PropertyValueNameToEnumMapper_destroy_mv1(PropertyValueNameToEnumMapper* self);
113
114 } // extern "C"
115} // namespace capi
116} // namespace
117
118inline int16_t icu4x::PropertyValueNameToEnumMapper::get_strict(std::string_view name) const {
119 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_get_strict_mv1(this->AsFFI(),
120 {name.data(), name.size()});
121 return result;
122}
123
124inline int16_t icu4x::PropertyValueNameToEnumMapper::get_loose(std::string_view name) const {
125 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_get_loose_mv1(this->AsFFI(),
126 {name.data(), name.size()});
127 return result;
128}
129
130inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_bidi_class() {
131 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_bidi_class_mv1();
132 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
133}
134
136 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_bidi_class_with_provider_mv1(provider.AsFFI());
138}
139
140inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_block() {
141 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_block_mv1();
142 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
143}
144
146 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_block_with_provider_mv1(provider.AsFFI());
148}
149
150inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_canonical_combining_class() {
151 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_canonical_combining_class_mv1();
152 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
153}
154
156 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_canonical_combining_class_with_provider_mv1(provider.AsFFI());
158}
159
160inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_east_asian_width() {
161 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_east_asian_width_mv1();
162 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
163}
164
166 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_east_asian_width_with_provider_mv1(provider.AsFFI());
168}
169
170inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_general_category() {
171 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_general_category_mv1();
172 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
173}
174
176 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_general_category_with_provider_mv1(provider.AsFFI());
178}
179
180inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_grapheme_cluster_break() {
181 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_grapheme_cluster_break_mv1();
182 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
183}
184
186 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_grapheme_cluster_break_with_provider_mv1(provider.AsFFI());
188}
189
190inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_hangul_syllable_type() {
191 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_hangul_syllable_type_mv1();
192 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
193}
194
196 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_hangul_syllable_type_with_provider_mv1(provider.AsFFI());
198}
199
200inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_indic_conjunct_break() {
201 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_indic_conjunct_break_mv1();
202 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
203}
204
206 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_indic_conjunct_break_with_provider_mv1(provider.AsFFI());
208}
209
210inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_indic_syllabic_category() {
211 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_mv1();
212 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
213}
214
216 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_indic_syllabic_category_with_provider_mv1(provider.AsFFI());
218}
219
220inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_joining_group() {
221 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_joining_group_mv1();
222 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
223}
224
226 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_joining_group_with_provider_mv1(provider.AsFFI());
228}
229
230inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_joining_type() {
231 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_joining_type_mv1();
232 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
233}
234
236 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_joining_type_with_provider_mv1(provider.AsFFI());
238}
239
240inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_line_break() {
241 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_line_break_mv1();
242 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
243}
244
246 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_line_break_with_provider_mv1(provider.AsFFI());
248}
249
250inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_numeric_type() {
251 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_numeric_type_mv1();
252 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
253}
254
256 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_numeric_type_with_provider_mv1(provider.AsFFI());
258}
259
260inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_script() {
261 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_script_mv1();
262 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
263}
264
266 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_script_with_provider_mv1(provider.AsFFI());
268}
269
270inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_sentence_break() {
271 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_sentence_break_mv1();
272 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
273}
274
276 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_sentence_break_with_provider_mv1(provider.AsFFI());
278}
279
280inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_vertical_orientation() {
281 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_vertical_orientation_mv1();
282 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
283}
284
286 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_vertical_orientation_with_provider_mv1(provider.AsFFI());
288}
289
290inline std::unique_ptr<icu4x::PropertyValueNameToEnumMapper> icu4x::PropertyValueNameToEnumMapper::create_word_break() {
291 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_word_break_mv1();
292 return std::unique_ptr<icu4x::PropertyValueNameToEnumMapper>(icu4x::PropertyValueNameToEnumMapper::FromFFI(result));
293}
294
296 auto result = icu4x::capi::icu4x_PropertyValueNameToEnumMapper_create_word_break_with_provider_mv1(provider.AsFFI());
298}
299
300inline const icu4x::capi::PropertyValueNameToEnumMapper* icu4x::PropertyValueNameToEnumMapper::AsFFI() const {
301 return reinterpret_cast<const icu4x::capi::PropertyValueNameToEnumMapper*>(this);
302}
303
304inline icu4x::capi::PropertyValueNameToEnumMapper* icu4x::PropertyValueNameToEnumMapper::AsFFI() {
305 return reinterpret_cast<icu4x::capi::PropertyValueNameToEnumMapper*>(this);
306}
307
308inline const icu4x::PropertyValueNameToEnumMapper* icu4x::PropertyValueNameToEnumMapper::FromFFI(const icu4x::capi::PropertyValueNameToEnumMapper* ptr) {
309 return reinterpret_cast<const icu4x::PropertyValueNameToEnumMapper*>(ptr);
310}
311
312inline icu4x::PropertyValueNameToEnumMapper* icu4x::PropertyValueNameToEnumMapper::FromFFI(icu4x::capi::PropertyValueNameToEnumMapper* ptr) {
313 return reinterpret_cast<icu4x::PropertyValueNameToEnumMapper*>(ptr);
314}
315
316inline void icu4x::PropertyValueNameToEnumMapper::operator delete(void* ptr) {
317 icu4x::capi::icu4x_PropertyValueNameToEnumMapper_destroy_mv1(reinterpret_cast<icu4x::capi::PropertyValueNameToEnumMapper*>(ptr));
318}
319
320
321#endif // ICU4X_PropertyValueNameToEnumMapper_HPP
Definition DataError.d.hpp:37
Definition DataProvider.d.hpp:40
Definition PropertyValueNameToEnumMapper.d.hpp:39
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_block()
Definition PropertyValueNameToEnumMapper.hpp:140
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_vertical_orientation_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:285
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_hangul_syllable_type_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:195
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_script()
Definition PropertyValueNameToEnumMapper.hpp:260
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_joining_group()
Definition PropertyValueNameToEnumMapper.hpp:220
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_script_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:265
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_canonical_combining_class_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:155
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_joining_type_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:235
int16_t get_strict(std::string_view name) const
Definition PropertyValueNameToEnumMapper.hpp:118
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_joining_group_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:225
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_indic_conjunct_break()
Definition PropertyValueNameToEnumMapper.hpp:200
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_grapheme_cluster_break()
Definition PropertyValueNameToEnumMapper.hpp:180
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_grapheme_cluster_break_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:185
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_block_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:145
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_word_break()
Definition PropertyValueNameToEnumMapper.hpp:290
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_east_asian_width()
Definition PropertyValueNameToEnumMapper.hpp:160
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_word_break_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:295
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_line_break_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:245
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_sentence_break()
Definition PropertyValueNameToEnumMapper.hpp:270
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_hangul_syllable_type()
Definition PropertyValueNameToEnumMapper.hpp:190
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_vertical_orientation()
Definition PropertyValueNameToEnumMapper.hpp:280
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_general_category()
Definition PropertyValueNameToEnumMapper.hpp:170
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_bidi_class_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:135
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_indic_syllabic_category_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:215
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_joining_type()
Definition PropertyValueNameToEnumMapper.hpp:230
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_sentence_break_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:275
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_numeric_type_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:255
int16_t get_loose(std::string_view name) const
Definition PropertyValueNameToEnumMapper.hpp:124
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_general_category_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:175
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_line_break()
Definition PropertyValueNameToEnumMapper.hpp:240
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_bidi_class()
Definition PropertyValueNameToEnumMapper.hpp:130
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_indic_syllabic_category()
Definition PropertyValueNameToEnumMapper.hpp:210
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_east_asian_width_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:165
static icu4x::diplomat::result< std::unique_ptr< icu4x::PropertyValueNameToEnumMapper >, icu4x::DataError > create_indic_conjunct_break_with_provider(const icu4x::DataProvider &provider)
Definition PropertyValueNameToEnumMapper.hpp:205
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_canonical_combining_class()
Definition PropertyValueNameToEnumMapper.hpp:150
static std::unique_ptr< icu4x::PropertyValueNameToEnumMapper > create_numeric_type()
Definition PropertyValueNameToEnumMapper.hpp:250
Definition Bidi.d.hpp:13
Definition diplomat_runtime.hpp:243