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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
#ifndef icu4x_CodePointMapData8_D_HPP
#define icu4x_CodePointMapData8_D_HPP
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <memory>
#include <functional>
#include <optional>
#include <cstdlib>
#include "../diplomat_runtime.hpp"
namespace icu4x {
namespace capi { struct CodePointMapData8; }
class CodePointMapData8;
namespace capi { struct CodePointRangeIterator; }
class CodePointRangeIterator;
namespace capi { struct CodePointSetData; }
class CodePointSetData;
namespace capi { struct DataProvider; }
class DataProvider;
struct GeneralCategoryGroup;
class DataError;
}
namespace icu4x {
namespace capi {
struct CodePointMapData8;
} // namespace capi
} // namespace
namespace icu4x {
/**
* An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.
*
* For properties whose values fit into 8 bits.
*
* See the [Rust documentation for `properties`](https://docs.rs/icu/2.0.0/icu/properties/index.html) for more information.
*
* See the [Rust documentation for `CodePointMapData`](https://docs.rs/icu/2.0.0/icu/properties/struct.CodePointMapData.html) for more information.
*
* See the [Rust documentation for `CodePointMapDataBorrowed`](https://docs.rs/icu/2.0.0/icu/properties/struct.CodePointMapDataBorrowed.html) for more information.
*/
class CodePointMapData8 {
public:
/**
* Gets the value for a code point.
*
* See the [Rust documentation for `get`](https://docs.rs/icu/2.0.0/icu/properties/struct.CodePointMapDataBorrowed.html#method.get) for more information.
*/
inline uint8_t operator[](char32_t cp) const;
/**
* Produces an iterator over ranges of code points that map to `value`
*
* See the [Rust documentation for `iter_ranges_for_value`](https://docs.rs/icu/2.0.0/icu/properties/struct.CodePointMapDataBorrowed.html#method.iter_ranges_for_value) for more information.
*/
inline std::unique_ptr<icu4x::CodePointRangeIterator> iter_ranges_for_value(uint8_t value) const;
/**
* Produces an iterator over ranges of code points that do not map to `value`
*
* See the [Rust documentation for `iter_ranges_for_value_complemented`](https://docs.rs/icu/2.0.0/icu/properties/struct.CodePointMapDataBorrowed.html#method.iter_ranges_for_value_complemented) for more information.
*/
inline std::unique_ptr<icu4x::CodePointRangeIterator> iter_ranges_for_value_complemented(uint8_t value) const;
/**
* Given a mask value (the nth bit marks property value = n), produce an iterator over ranges of code points
* whose property values are contained in the mask.
*
* The main mask property supported is that for General_Category, which can be obtained via `general_category_to_mask()` or
* by using `GeneralCategoryNameToMaskMapper`
*
* Should only be used on maps for properties with values less than 32 (like Generak_Category),
* other maps will have unpredictable results
*
* See the [Rust documentation for `iter_ranges_for_group`](https://docs.rs/icu/2.0.0/icu/properties/struct.CodePointMapDataBorrowed.html#method.iter_ranges_for_group) for more information.
*/
inline std::unique_ptr<icu4x::CodePointRangeIterator> iter_ranges_for_group(icu4x::GeneralCategoryGroup group) const;
/**
* Gets a {@link CodePointSetData} representing all entries in this map that map to the given value
*
* See the [Rust documentation for `get_set_for_value`](https://docs.rs/icu/2.0.0/icu/properties/struct.CodePointMapDataBorrowed.html#method.get_set_for_value) for more information.
*/
inline std::unique_ptr<icu4x::CodePointSetData> get_set_for_value(uint8_t value) const;
/**
* Create a map for the `General_Category` property, using compiled data.
*
* See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/2.0.0/icu/properties/props/enum.GeneralCategory.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_general_category();
/**
* Create a map for the `General_Category` property, using a particular data source
*
* See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/2.0.0/icu/properties/props/enum.GeneralCategory.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_general_category_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Bidi_Class` property, using compiled data.
*
* See the [Rust documentation for `BidiClass`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.BidiClass.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_bidi_class();
/**
* Create a map for the `Bidi_Class` property, using a particular data source.
*
* See the [Rust documentation for `BidiClass`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.BidiClass.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_bidi_class_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `East_Asian_Width` property, using compiled data.
*
* See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.EastAsianWidth.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_east_asian_width();
/**
* Create a map for the `East_Asian_Width` property, using a particular data source.
*
* See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.EastAsianWidth.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_east_asian_width_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Hangul_Syllable_Type` property, using compiled data.
*
* See the [Rust documentation for `HangulSyllableType`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.HangulSyllableType.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_hangul_syllable_type();
/**
* Create a map for the `Hangul_Syllable_Type` property, using a particular data source.
*
* See the [Rust documentation for `HangulSyllableType`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.HangulSyllableType.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_hangul_syllable_type_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Indic_Syllabic_Property` property, using compiled data.
*
* See the [Rust documentation for `IndicSyllabicCategory`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.IndicSyllabicCategory.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_indic_syllabic_category();
/**
* Create a map for the `Indic_Syllabic_Property` property, using a particular data source.
*
* See the [Rust documentation for `IndicSyllabicCategory`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.IndicSyllabicCategory.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_indic_syllabic_category_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Line_Break` property, using compiled data.
*
* See the [Rust documentation for `LineBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.LineBreak.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_line_break();
/**
* Create a map for the `Line_Break` property, using a particular data source.
*
* See the [Rust documentation for `LineBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.LineBreak.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_line_break_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Grapheme_Cluster_Break` property, using compiled data.
*
* See the [Rust documentation for `GraphemeClusterBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GraphemeClusterBreak.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_grapheme_cluster_break();
/**
* Create a map for the `Grapheme_Cluster_Break` property, using a particular data source.
*
* See the [Rust documentation for `GraphemeClusterBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GraphemeClusterBreak.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_grapheme_cluster_break_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Word_Break` property, using compiled data.
*
* See the [Rust documentation for `WordBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.WordBreak.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_word_break();
/**
* Create a map for the `Word_Break` property, using a particular data source.
*
* See the [Rust documentation for `WordBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.WordBreak.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_word_break_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Sentence_Break` property, using compiled data.
*
* See the [Rust documentation for `SentenceBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.SentenceBreak.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_sentence_break();
/**
* Create a map for the `Sentence_Break` property, using a particular data source.
*
* See the [Rust documentation for `SentenceBreak`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.SentenceBreak.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_sentence_break_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Joining_Type` property, using compiled data.
*
* See the [Rust documentation for `JoiningType`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.JoiningType.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_joining_type();
/**
* Create a map for the `Joining_Type` property, using a particular data source.
*
* See the [Rust documentation for `JoiningType`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.JoiningType.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_joining_type_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Canonical_Combining_Class` property, using compiled data.
*
* See the [Rust documentation for `CanonicalCombiningClass`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.CanonicalCombiningClass.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_canonical_combining_class();
/**
* Create a map for the `Canonical_Combining_Class` property, using a particular data source.
*
* See the [Rust documentation for `CanonicalCombiningClass`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.CanonicalCombiningClass.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_canonical_combining_class_with_provider(const icu4x::DataProvider& provider);
/**
* Create a map for the `Vertical_Orientation` property, using compiled data.
*
* See the [Rust documentation for `VerticalOrientation`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.VerticalOrientation.html) for more information.
*/
inline static std::unique_ptr<icu4x::CodePointMapData8> create_vertical_orientation();
/**
* Create a map for the `Vertical_Orientation` property, using a particular data source.
*
* See the [Rust documentation for `VerticalOrientation`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.VerticalOrientation.html) for more information.
*/
inline static diplomat::result<std::unique_ptr<icu4x::CodePointMapData8>, icu4x::DataError> create_vertical_orientation_with_provider(const icu4x::DataProvider& provider);
inline const icu4x::capi::CodePointMapData8* AsFFI() const;
inline icu4x::capi::CodePointMapData8* AsFFI();
inline static const icu4x::CodePointMapData8* FromFFI(const icu4x::capi::CodePointMapData8* ptr);
inline static icu4x::CodePointMapData8* FromFFI(icu4x::capi::CodePointMapData8* ptr);
inline static void operator delete(void* ptr);
private:
CodePointMapData8() = delete;
CodePointMapData8(const icu4x::CodePointMapData8&) = delete;
CodePointMapData8(icu4x::CodePointMapData8&&) noexcept = delete;
CodePointMapData8 operator=(const icu4x::CodePointMapData8&) = delete;
CodePointMapData8 operator=(icu4x::CodePointMapData8&&) noexcept = delete;
static void operator delete[](void*, size_t) = delete;
};
} // namespace
#endif // icu4x_CodePointMapData8_D_HPP