CodePointSetData.d.hpp (74558B)
1 #ifndef icu4x_CodePointSetData_D_HPP 2 #define icu4x_CodePointSetData_D_HPP 3 4 #include <stdio.h> 5 #include <stdint.h> 6 #include <stddef.h> 7 #include <stdbool.h> 8 #include <memory> 9 #include <functional> 10 #include <optional> 11 #include <cstdlib> 12 #include "../diplomat_runtime.hpp" 13 14 namespace icu4x { 15 namespace capi { struct CodePointRangeIterator; } 16 class CodePointRangeIterator; 17 namespace capi { struct CodePointSetData; } 18 class CodePointSetData; 19 namespace capi { struct DataProvider; } 20 class DataProvider; 21 struct GeneralCategoryGroup; 22 class DataError; 23 } 24 25 26 namespace icu4x { 27 namespace capi { 28 struct CodePointSetData; 29 } // namespace capi 30 } // namespace 31 32 namespace icu4x { 33 /** 34 * An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property. 35 * 36 * See the [Rust documentation for `properties`](https://docs.rs/icu/latest/icu/properties/index.html) for more information. 37 * 38 * See the [Rust documentation for `CodePointSetData`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetData.html) for more information. 39 * 40 * See the [Rust documentation for `CodePointSetDataBorrowed`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetDataBorrowed.html) for more information. 41 */ 42 class CodePointSetData { 43 public: 44 45 /** 46 * Checks whether the code point is in the set. 47 * 48 * See the [Rust documentation for `contains`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetDataBorrowed.html#method.contains) for more information. 49 */ 50 inline bool contains(char32_t cp) const; 51 52 /** 53 * Produces an iterator over ranges of code points contained in this set 54 * 55 * See the [Rust documentation for `iter_ranges`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetDataBorrowed.html#method.iter_ranges) for more information. 56 */ 57 inline std::unique_ptr<icu4x::CodePointRangeIterator> iter_ranges() const; 58 59 /** 60 * Produces an iterator over ranges of code points not contained in this set 61 * 62 * See the [Rust documentation for `iter_ranges_complemented`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetDataBorrowed.html#method.iter_ranges_complemented) for more information. 63 */ 64 inline std::unique_ptr<icu4x::CodePointRangeIterator> iter_ranges_complemented() const; 65 66 /** 67 * Produces a set for obtaining General Category Group values 68 * which is a mask with the same format as the `U_GC_XX_MASK` mask in ICU4C, using compiled data. 69 * 70 * See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html) for more information. 71 * 72 * See the [Rust documentation for `get_set_for_value_group`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html#method.get_set_for_value_group) for more information. 73 */ 74 inline static std::unique_ptr<icu4x::CodePointSetData> create_general_category_group(icu4x::GeneralCategoryGroup group); 75 76 /** 77 * Produces a set for obtaining General Category Group values 78 * which is a mask with the same format as the `U_GC_XX_MASK` mask in ICU4C, using a provided data source. 79 * 80 * See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html) for more information. 81 * 82 * See the [Rust documentation for `get_set_for_value_group`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html#method.get_set_for_value_group) for more information. 83 */ 84 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_general_category_group_with_provider(const icu4x::DataProvider& provider, uint32_t group); 85 86 /** 87 * Get the `Ascii_Hex_Digit` value for a given character, using compiled data 88 * 89 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 90 */ 91 inline static bool ascii_hex_digit_for_char(char32_t ch); 92 93 /** 94 * Create a set for the `Ascii_Hex_Digit` property, using compiled data. 95 * 96 * See the [Rust documentation for `AsciiHexDigit`](https://docs.rs/icu/latest/icu/properties/props/struct.AsciiHexDigit.html) for more information. 97 */ 98 inline static std::unique_ptr<icu4x::CodePointSetData> create_ascii_hex_digit(); 99 100 /** 101 * Create a set for the `Ascii_Hex_Digit` property, using a particular data source. 102 * 103 * See the [Rust documentation for `AsciiHexDigit`](https://docs.rs/icu/latest/icu/properties/props/struct.AsciiHexDigit.html) for more information. 104 */ 105 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_ascii_hex_digit_with_provider(const icu4x::DataProvider& provider); 106 107 /** 108 * Get the `Alnum` value for a given character, using compiled data 109 * 110 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 111 */ 112 inline static bool alnum_for_char(char32_t ch); 113 114 /** 115 * Create a set for the `Alnum` property, using compiled data. 116 * 117 * See the [Rust documentation for `Alnum`](https://docs.rs/icu/latest/icu/properties/props/struct.Alnum.html) for more information. 118 */ 119 inline static std::unique_ptr<icu4x::CodePointSetData> create_alnum(); 120 121 /** 122 * Create a set for the `Alnum` property, using a particular data source. 123 * 124 * See the [Rust documentation for `Alnum`](https://docs.rs/icu/latest/icu/properties/props/struct.Alnum.html) for more information. 125 */ 126 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_alnum_with_provider(const icu4x::DataProvider& provider); 127 128 /** 129 * Get the `Alphabetic` value for a given character, using compiled data 130 * 131 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 132 */ 133 inline static bool alphabetic_for_char(char32_t ch); 134 135 /** 136 * Create a set for the `Alphabetic` property, using compiled data. 137 * 138 * See the [Rust documentation for `Alphabetic`](https://docs.rs/icu/latest/icu/properties/props/struct.Alphabetic.html) for more information. 139 */ 140 inline static std::unique_ptr<icu4x::CodePointSetData> create_alphabetic(); 141 142 /** 143 * Create a set for the `Alphabetic` property, using a particular data source. 144 * 145 * See the [Rust documentation for `Alphabetic`](https://docs.rs/icu/latest/icu/properties/props/struct.Alphabetic.html) for more information. 146 */ 147 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_alphabetic_with_provider(const icu4x::DataProvider& provider); 148 149 /** 150 * Get the `Bidi_Control` value for a given character, using compiled data 151 * 152 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 153 */ 154 inline static bool bidi_control_for_char(char32_t ch); 155 156 /** 157 * Create a set for the `Bidi_Control` property, using compiled data. 158 * 159 * See the [Rust documentation for `BidiControl`](https://docs.rs/icu/latest/icu/properties/props/struct.BidiControl.html) for more information. 160 */ 161 inline static std::unique_ptr<icu4x::CodePointSetData> create_bidi_control(); 162 163 /** 164 * Create a set for the `Bidi_Control` property, using a particular data source. 165 * 166 * See the [Rust documentation for `BidiControl`](https://docs.rs/icu/latest/icu/properties/props/struct.BidiControl.html) for more information. 167 */ 168 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_bidi_control_with_provider(const icu4x::DataProvider& provider); 169 170 /** 171 * Get the `Bidi_Mirrored` value for a given character, using compiled data 172 * 173 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 174 */ 175 inline static bool bidi_mirrored_for_char(char32_t ch); 176 177 /** 178 * Create a set for the `Bidi_Mirrored` property, using compiled data. 179 * 180 * See the [Rust documentation for `BidiMirrored`](https://docs.rs/icu/latest/icu/properties/props/struct.BidiMirrored.html) for more information. 181 */ 182 inline static std::unique_ptr<icu4x::CodePointSetData> create_bidi_mirrored(); 183 184 /** 185 * Create a set for the `Bidi_Mirrored` property, using a particular data source. 186 * 187 * See the [Rust documentation for `BidiMirrored`](https://docs.rs/icu/latest/icu/properties/props/struct.BidiMirrored.html) for more information. 188 */ 189 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_bidi_mirrored_with_provider(const icu4x::DataProvider& provider); 190 191 /** 192 * Get the `Blank` value for a given character, using compiled data 193 * 194 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 195 */ 196 inline static bool blank_for_char(char32_t ch); 197 198 /** 199 * Create a set for the `Blank` property, using compiled data. 200 * 201 * See the [Rust documentation for `Blank`](https://docs.rs/icu/latest/icu/properties/props/struct.Blank.html) for more information. 202 */ 203 inline static std::unique_ptr<icu4x::CodePointSetData> create_blank(); 204 205 /** 206 * Create a set for the `Blank` property, using a particular data source. 207 * 208 * See the [Rust documentation for `Blank`](https://docs.rs/icu/latest/icu/properties/props/struct.Blank.html) for more information. 209 */ 210 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_blank_with_provider(const icu4x::DataProvider& provider); 211 212 /** 213 * Get the `Cased` value for a given character, using compiled data 214 * 215 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 216 */ 217 inline static bool cased_for_char(char32_t ch); 218 219 /** 220 * Create a set for the `Cased` property, using compiled data. 221 * 222 * See the [Rust documentation for `Cased`](https://docs.rs/icu/latest/icu/properties/props/struct.Cased.html) for more information. 223 */ 224 inline static std::unique_ptr<icu4x::CodePointSetData> create_cased(); 225 226 /** 227 * Create a set for the `Cased` property, using a particular data source. 228 * 229 * See the [Rust documentation for `Cased`](https://docs.rs/icu/latest/icu/properties/props/struct.Cased.html) for more information. 230 */ 231 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_cased_with_provider(const icu4x::DataProvider& provider); 232 233 /** 234 * Get the `Case_Ignorable` value for a given character, using compiled data 235 * 236 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 237 */ 238 inline static bool case_ignorable_for_char(char32_t ch); 239 240 /** 241 * Create a set for the `Case_Ignorable` property, using compiled data. 242 * 243 * See the [Rust documentation for `CaseIgnorable`](https://docs.rs/icu/latest/icu/properties/props/struct.CaseIgnorable.html) for more information. 244 */ 245 inline static std::unique_ptr<icu4x::CodePointSetData> create_case_ignorable(); 246 247 /** 248 * Create a set for the `Case_Ignorable` property, using a particular data source. 249 * 250 * See the [Rust documentation for `CaseIgnorable`](https://docs.rs/icu/latest/icu/properties/props/struct.CaseIgnorable.html) for more information. 251 */ 252 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_case_ignorable_with_provider(const icu4x::DataProvider& provider); 253 254 /** 255 * Get the `Full_Composition_Exclusion` value for a given character, using compiled data 256 * 257 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 258 */ 259 inline static bool full_composition_exclusion_for_char(char32_t ch); 260 261 /** 262 * Create a set for the `Full_Composition_Exclusion` property, using compiled data. 263 * 264 * See the [Rust documentation for `FullCompositionExclusion`](https://docs.rs/icu/latest/icu/properties/props/struct.FullCompositionExclusion.html) for more information. 265 */ 266 inline static std::unique_ptr<icu4x::CodePointSetData> create_full_composition_exclusion(); 267 268 /** 269 * Create a set for the `Full_Composition_Exclusion` property, using a particular data source. 270 * 271 * See the [Rust documentation for `FullCompositionExclusion`](https://docs.rs/icu/latest/icu/properties/props/struct.FullCompositionExclusion.html) for more information. 272 */ 273 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_full_composition_exclusion_with_provider(const icu4x::DataProvider& provider); 274 275 /** 276 * Get the `Changes_When_Casefolded` value for a given character, using compiled data 277 * 278 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 279 */ 280 inline static bool changes_when_casefolded_for_char(char32_t ch); 281 282 /** 283 * Create a set for the `Changes_When_Casefolded` property, using compiled data. 284 * 285 * See the [Rust documentation for `ChangesWhenCasefolded`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenCasefolded.html) for more information. 286 */ 287 inline static std::unique_ptr<icu4x::CodePointSetData> create_changes_when_casefolded(); 288 289 /** 290 * Create a set for the `Changes_When_Casefolded` property, using a particular data source. 291 * 292 * See the [Rust documentation for `ChangesWhenCasefolded`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenCasefolded.html) for more information. 293 */ 294 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_changes_when_casefolded_with_provider(const icu4x::DataProvider& provider); 295 296 /** 297 * Get the `Changes_When_Casemapped` value for a given character, using compiled data 298 * 299 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 300 */ 301 inline static bool changes_when_casemapped_for_char(char32_t ch); 302 303 /** 304 * Create a set for the `Changes_When_Casemapped` property, using compiled data. 305 * 306 * See the [Rust documentation for `ChangesWhenCasemapped`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenCasemapped.html) for more information. 307 */ 308 inline static std::unique_ptr<icu4x::CodePointSetData> create_changes_when_casemapped(); 309 310 /** 311 * Create a set for the `Changes_When_Casemapped` property, using a particular data source. 312 * 313 * See the [Rust documentation for `ChangesWhenCasemapped`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenCasemapped.html) for more information. 314 */ 315 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_changes_when_casemapped_with_provider(const icu4x::DataProvider& provider); 316 317 /** 318 * Get the `Changes_When_Nfkc_Casefolded` value for a given character, using compiled data 319 * 320 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 321 */ 322 inline static bool changes_when_nfkc_casefolded_for_char(char32_t ch); 323 324 /** 325 * Create a set for the `Changes_When_Nfkc_Casefolded` property, using compiled data. 326 * 327 * See the [Rust documentation for `ChangesWhenNfkcCasefolded`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenNfkcCasefolded.html) for more information. 328 */ 329 inline static std::unique_ptr<icu4x::CodePointSetData> create_changes_when_nfkc_casefolded(); 330 331 /** 332 * Create a set for the `Changes_When_Nfkc_Casefolded` property, using a particular data source. 333 * 334 * See the [Rust documentation for `ChangesWhenNfkcCasefolded`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenNfkcCasefolded.html) for more information. 335 */ 336 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_changes_when_nfkc_casefolded_with_provider(const icu4x::DataProvider& provider); 337 338 /** 339 * Get the `Changes_When_Lowercased` value for a given character, using compiled data 340 * 341 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 342 */ 343 inline static bool changes_when_lowercased_for_char(char32_t ch); 344 345 /** 346 * Create a set for the `Changes_When_Lowercased` property, using compiled data. 347 * 348 * See the [Rust documentation for `ChangesWhenLowercased`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenLowercased.html) for more information. 349 */ 350 inline static std::unique_ptr<icu4x::CodePointSetData> create_changes_when_lowercased(); 351 352 /** 353 * Create a set for the `Changes_When_Lowercased` property, using a particular data source. 354 * 355 * See the [Rust documentation for `ChangesWhenLowercased`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenLowercased.html) for more information. 356 */ 357 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_changes_when_lowercased_with_provider(const icu4x::DataProvider& provider); 358 359 /** 360 * Get the `Changes_When_Titlecased` value for a given character, using compiled data 361 * 362 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 363 */ 364 inline static bool changes_when_titlecased_for_char(char32_t ch); 365 366 /** 367 * Create a set for the `Changes_When_Titlecased` property, using compiled data. 368 * 369 * See the [Rust documentation for `ChangesWhenTitlecased`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenTitlecased.html) for more information. 370 */ 371 inline static std::unique_ptr<icu4x::CodePointSetData> create_changes_when_titlecased(); 372 373 /** 374 * Create a set for the `Changes_When_Titlecased` property, using a particular data source. 375 * 376 * See the [Rust documentation for `ChangesWhenTitlecased`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenTitlecased.html) for more information. 377 */ 378 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_changes_when_titlecased_with_provider(const icu4x::DataProvider& provider); 379 380 /** 381 * Get the `Changes_When_Uppercased` value for a given character, using compiled data 382 * 383 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 384 */ 385 inline static bool changes_when_uppercased_for_char(char32_t ch); 386 387 /** 388 * Create a set for the `Changes_When_Uppercased` property, using compiled data. 389 * 390 * See the [Rust documentation for `ChangesWhenUppercased`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenUppercased.html) for more information. 391 */ 392 inline static std::unique_ptr<icu4x::CodePointSetData> create_changes_when_uppercased(); 393 394 /** 395 * Create a set for the `Changes_When_Uppercased` property, using a particular data source. 396 * 397 * See the [Rust documentation for `ChangesWhenUppercased`](https://docs.rs/icu/latest/icu/properties/props/struct.ChangesWhenUppercased.html) for more information. 398 */ 399 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_changes_when_uppercased_with_provider(const icu4x::DataProvider& provider); 400 401 /** 402 * Get the `Dash` value for a given character, using compiled data 403 * 404 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 405 */ 406 inline static bool dash_for_char(char32_t ch); 407 408 /** 409 * Create a set for the `Dash` property, using compiled data. 410 * 411 * See the [Rust documentation for `Dash`](https://docs.rs/icu/latest/icu/properties/props/struct.Dash.html) for more information. 412 */ 413 inline static std::unique_ptr<icu4x::CodePointSetData> create_dash(); 414 415 /** 416 * Create a set for the `Dash` property, using a particular data source. 417 * 418 * See the [Rust documentation for `Dash`](https://docs.rs/icu/latest/icu/properties/props/struct.Dash.html) for more information. 419 */ 420 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_dash_with_provider(const icu4x::DataProvider& provider); 421 422 /** 423 * Get the `Deprecated` value for a given character, using compiled data 424 * 425 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 426 */ 427 inline static bool deprecated_for_char(char32_t ch); 428 429 /** 430 * Create a set for the `Deprecated` property, using compiled data. 431 * 432 * See the [Rust documentation for `Deprecated`](https://docs.rs/icu/latest/icu/properties/props/struct.Deprecated.html) for more information. 433 */ 434 inline static std::unique_ptr<icu4x::CodePointSetData> create_deprecated(); 435 436 /** 437 * Create a set for the `Deprecated` property, using a particular data source. 438 * 439 * See the [Rust documentation for `Deprecated`](https://docs.rs/icu/latest/icu/properties/props/struct.Deprecated.html) for more information. 440 */ 441 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_deprecated_with_provider(const icu4x::DataProvider& provider); 442 443 /** 444 * Get the `Default_Ignorable_Code_Point` value for a given character, using compiled data 445 * 446 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 447 */ 448 inline static bool default_ignorable_code_point_for_char(char32_t ch); 449 450 /** 451 * Create a set for the `Default_Ignorable_Code_Point` property, using compiled data. 452 * 453 * See the [Rust documentation for `DefaultIgnorableCodePoint`](https://docs.rs/icu/latest/icu/properties/props/struct.DefaultIgnorableCodePoint.html) for more information. 454 */ 455 inline static std::unique_ptr<icu4x::CodePointSetData> create_default_ignorable_code_point(); 456 457 /** 458 * Create a set for the `Default_Ignorable_Code_Point` property, using a particular data source. 459 * 460 * See the [Rust documentation for `DefaultIgnorableCodePoint`](https://docs.rs/icu/latest/icu/properties/props/struct.DefaultIgnorableCodePoint.html) for more information. 461 */ 462 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_default_ignorable_code_point_with_provider(const icu4x::DataProvider& provider); 463 464 /** 465 * Get the `Diacritic` value for a given character, using compiled data 466 * 467 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 468 */ 469 inline static bool diacritic_for_char(char32_t ch); 470 471 /** 472 * Create a set for the `Diacritic` property, using compiled data. 473 * 474 * See the [Rust documentation for `Diacritic`](https://docs.rs/icu/latest/icu/properties/props/struct.Diacritic.html) for more information. 475 */ 476 inline static std::unique_ptr<icu4x::CodePointSetData> create_diacritic(); 477 478 /** 479 * Create a set for the `Diacritic` property, using a particular data source. 480 * 481 * See the [Rust documentation for `Diacritic`](https://docs.rs/icu/latest/icu/properties/props/struct.Diacritic.html) for more information. 482 */ 483 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_diacritic_with_provider(const icu4x::DataProvider& provider); 484 485 /** 486 * Get the `Emoji_Modifier_Base` value for a given character, using compiled data 487 * 488 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 489 */ 490 inline static bool emoji_modifier_base_for_char(char32_t ch); 491 492 /** 493 * Create a set for the `Emoji_Modifier_Base` property, using compiled data. 494 * 495 * See the [Rust documentation for `EmojiModifierBase`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiModifierBase.html) for more information. 496 */ 497 inline static std::unique_ptr<icu4x::CodePointSetData> create_emoji_modifier_base(); 498 499 /** 500 * Create a set for the `Emoji_Modifier_Base` property, using a particular data source. 501 * 502 * See the [Rust documentation for `EmojiModifierBase`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiModifierBase.html) for more information. 503 */ 504 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_emoji_modifier_base_with_provider(const icu4x::DataProvider& provider); 505 506 /** 507 * Get the `Emoji_Component` value for a given character, using compiled data 508 * 509 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 510 */ 511 inline static bool emoji_component_for_char(char32_t ch); 512 513 /** 514 * Create a set for the `Emoji_Component` property, using compiled data. 515 * 516 * See the [Rust documentation for `EmojiComponent`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiComponent.html) for more information. 517 */ 518 inline static std::unique_ptr<icu4x::CodePointSetData> create_emoji_component(); 519 520 /** 521 * Create a set for the `Emoji_Component` property, using a particular data source. 522 * 523 * See the [Rust documentation for `EmojiComponent`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiComponent.html) for more information. 524 */ 525 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_emoji_component_with_provider(const icu4x::DataProvider& provider); 526 527 /** 528 * Get the `Emoji_Modifier` value for a given character, using compiled data 529 * 530 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 531 */ 532 inline static bool emoji_modifier_for_char(char32_t ch); 533 534 /** 535 * Create a set for the `Emoji_Modifier` property, using compiled data. 536 * 537 * See the [Rust documentation for `EmojiModifier`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiModifier.html) for more information. 538 */ 539 inline static std::unique_ptr<icu4x::CodePointSetData> create_emoji_modifier(); 540 541 /** 542 * Create a set for the `Emoji_Modifier` property, using a particular data source. 543 * 544 * See the [Rust documentation for `EmojiModifier`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiModifier.html) for more information. 545 */ 546 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_emoji_modifier_with_provider(const icu4x::DataProvider& provider); 547 548 /** 549 * Get the `Emoji` value for a given character, using compiled data 550 * 551 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 552 */ 553 inline static bool emoji_for_char(char32_t ch); 554 555 /** 556 * Create a set for the `Emoji` property, using compiled data. 557 * 558 * See the [Rust documentation for `Emoji`](https://docs.rs/icu/latest/icu/properties/props/struct.Emoji.html) for more information. 559 */ 560 inline static std::unique_ptr<icu4x::CodePointSetData> create_emoji(); 561 562 /** 563 * Create a set for the `Emoji` property, using a particular data source. 564 * 565 * See the [Rust documentation for `Emoji`](https://docs.rs/icu/latest/icu/properties/props/struct.Emoji.html) for more information. 566 */ 567 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_emoji_with_provider(const icu4x::DataProvider& provider); 568 569 /** 570 * Get the `Emoji_Presentation` value for a given character, using compiled data 571 * 572 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 573 */ 574 inline static bool emoji_presentation_for_char(char32_t ch); 575 576 /** 577 * Create a set for the `Emoji_Presentation` property, using compiled data. 578 * 579 * See the [Rust documentation for `EmojiPresentation`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiPresentation.html) for more information. 580 */ 581 inline static std::unique_ptr<icu4x::CodePointSetData> create_emoji_presentation(); 582 583 /** 584 * Create a set for the `Emoji_Presentation` property, using a particular data source. 585 * 586 * See the [Rust documentation for `EmojiPresentation`](https://docs.rs/icu/latest/icu/properties/props/struct.EmojiPresentation.html) for more information. 587 */ 588 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_emoji_presentation_with_provider(const icu4x::DataProvider& provider); 589 590 /** 591 * Get the `Extender` value for a given character, using compiled data 592 * 593 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 594 */ 595 inline static bool extender_for_char(char32_t ch); 596 597 /** 598 * Create a set for the `Extender` property, using compiled data. 599 * 600 * See the [Rust documentation for `Extender`](https://docs.rs/icu/latest/icu/properties/props/struct.Extender.html) for more information. 601 */ 602 inline static std::unique_ptr<icu4x::CodePointSetData> create_extender(); 603 604 /** 605 * Create a set for the `Extender` property, using a particular data source. 606 * 607 * See the [Rust documentation for `Extender`](https://docs.rs/icu/latest/icu/properties/props/struct.Extender.html) for more information. 608 */ 609 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_extender_with_provider(const icu4x::DataProvider& provider); 610 611 /** 612 * Get the `Extended_Pictographic` value for a given character, using compiled data 613 * 614 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 615 */ 616 inline static bool extended_pictographic_for_char(char32_t ch); 617 618 /** 619 * Create a set for the `Extended_Pictographic` property, using compiled data. 620 * 621 * See the [Rust documentation for `ExtendedPictographic`](https://docs.rs/icu/latest/icu/properties/props/struct.ExtendedPictographic.html) for more information. 622 */ 623 inline static std::unique_ptr<icu4x::CodePointSetData> create_extended_pictographic(); 624 625 /** 626 * Create a set for the `Extended_Pictographic` property, using a particular data source. 627 * 628 * See the [Rust documentation for `ExtendedPictographic`](https://docs.rs/icu/latest/icu/properties/props/struct.ExtendedPictographic.html) for more information. 629 */ 630 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_extended_pictographic_with_provider(const icu4x::DataProvider& provider); 631 632 /** 633 * Get the `Graph` value for a given character, using compiled data 634 * 635 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 636 */ 637 inline static bool graph_for_char(char32_t ch); 638 639 /** 640 * Create a set for the `Graph` property, using compiled data. 641 * 642 * See the [Rust documentation for `Graph`](https://docs.rs/icu/latest/icu/properties/props/struct.Graph.html) for more information. 643 */ 644 inline static std::unique_ptr<icu4x::CodePointSetData> create_graph(); 645 646 /** 647 * Create a set for the `Graph` property, using a particular data source. 648 * 649 * See the [Rust documentation for `Graph`](https://docs.rs/icu/latest/icu/properties/props/struct.Graph.html) for more information. 650 */ 651 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_graph_with_provider(const icu4x::DataProvider& provider); 652 653 /** 654 * Get the `Grapheme_Base` value for a given character, using compiled data 655 * 656 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 657 */ 658 inline static bool grapheme_base_for_char(char32_t ch); 659 660 /** 661 * Create a set for the `Grapheme_Base` property, using compiled data. 662 * 663 * See the [Rust documentation for `GraphemeBase`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeBase.html) for more information. 664 */ 665 inline static std::unique_ptr<icu4x::CodePointSetData> create_grapheme_base(); 666 667 /** 668 * Create a set for the `Grapheme_Base` property, using a particular data source. 669 * 670 * See the [Rust documentation for `GraphemeBase`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeBase.html) for more information. 671 */ 672 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_grapheme_base_with_provider(const icu4x::DataProvider& provider); 673 674 /** 675 * Get the `Grapheme_Extend` value for a given character, using compiled data 676 * 677 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 678 */ 679 inline static bool grapheme_extend_for_char(char32_t ch); 680 681 /** 682 * Create a set for the `Grapheme_Extend` property, using compiled data. 683 * 684 * See the [Rust documentation for `GraphemeExtend`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeExtend.html) for more information. 685 */ 686 inline static std::unique_ptr<icu4x::CodePointSetData> create_grapheme_extend(); 687 688 /** 689 * Create a set for the `Grapheme_Extend` property, using a particular data source. 690 * 691 * See the [Rust documentation for `GraphemeExtend`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeExtend.html) for more information. 692 */ 693 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_grapheme_extend_with_provider(const icu4x::DataProvider& provider); 694 695 /** 696 * Get the `Grapheme_Link` value for a given character, using compiled data 697 * 698 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 699 */ 700 inline static bool grapheme_link_for_char(char32_t ch); 701 702 /** 703 * Create a set for the `Grapheme_Link` property, using compiled data. 704 * 705 * See the [Rust documentation for `GraphemeLink`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeLink.html) for more information. 706 */ 707 inline static std::unique_ptr<icu4x::CodePointSetData> create_grapheme_link(); 708 709 /** 710 * Create a set for the `Grapheme_Link` property, using a particular data source. 711 * 712 * See the [Rust documentation for `GraphemeLink`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeLink.html) for more information. 713 */ 714 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_grapheme_link_with_provider(const icu4x::DataProvider& provider); 715 716 /** 717 * Get the `Hex_Digit` value for a given character, using compiled data 718 * 719 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 720 */ 721 inline static bool hex_digit_for_char(char32_t ch); 722 723 /** 724 * Create a set for the `Hex_Digit` property, using compiled data. 725 * 726 * See the [Rust documentation for `HexDigit`](https://docs.rs/icu/latest/icu/properties/props/struct.HexDigit.html) for more information. 727 */ 728 inline static std::unique_ptr<icu4x::CodePointSetData> create_hex_digit(); 729 730 /** 731 * Create a set for the `Hex_Digit` property, using a particular data source. 732 * 733 * See the [Rust documentation for `HexDigit`](https://docs.rs/icu/latest/icu/properties/props/struct.HexDigit.html) for more information. 734 */ 735 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_hex_digit_with_provider(const icu4x::DataProvider& provider); 736 737 /** 738 * Get the `Hyphen` value for a given character, using compiled data 739 * 740 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 741 */ 742 inline static bool hyphen_for_char(char32_t ch); 743 744 /** 745 * Create a set for the `Hyphen` property, using compiled data. 746 * 747 * See the [Rust documentation for `Hyphen`](https://docs.rs/icu/latest/icu/properties/props/struct.Hyphen.html) for more information. 748 */ 749 inline static std::unique_ptr<icu4x::CodePointSetData> create_hyphen(); 750 751 /** 752 * Create a set for the `Hyphen` property, using a particular data source. 753 * 754 * See the [Rust documentation for `Hyphen`](https://docs.rs/icu/latest/icu/properties/props/struct.Hyphen.html) for more information. 755 */ 756 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_hyphen_with_provider(const icu4x::DataProvider& provider); 757 758 /** 759 * Get the `Id_Continue` value for a given character, using compiled data 760 * 761 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 762 */ 763 inline static bool id_continue_for_char(char32_t ch); 764 765 /** 766 * Create a set for the `Id_Continue` property, using compiled data. 767 * 768 * See the [Rust documentation for `IdContinue`](https://docs.rs/icu/latest/icu/properties/props/struct.IdContinue.html) for more information. 769 */ 770 inline static std::unique_ptr<icu4x::CodePointSetData> create_id_continue(); 771 772 /** 773 * Create a set for the `Id_Continue` property, using a particular data source. 774 * 775 * See the [Rust documentation for `IdContinue`](https://docs.rs/icu/latest/icu/properties/props/struct.IdContinue.html) for more information. 776 */ 777 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_id_continue_with_provider(const icu4x::DataProvider& provider); 778 779 /** 780 * Get the `Ideographic` value for a given character, using compiled data 781 * 782 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 783 */ 784 inline static bool ideographic_for_char(char32_t ch); 785 786 /** 787 * Create a set for the `Ideographic` property, using compiled data. 788 * 789 * See the [Rust documentation for `Ideographic`](https://docs.rs/icu/latest/icu/properties/props/struct.Ideographic.html) for more information. 790 */ 791 inline static std::unique_ptr<icu4x::CodePointSetData> create_ideographic(); 792 793 /** 794 * Create a set for the `Ideographic` property, using a particular data source. 795 * 796 * See the [Rust documentation for `Ideographic`](https://docs.rs/icu/latest/icu/properties/props/struct.Ideographic.html) for more information. 797 */ 798 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_ideographic_with_provider(const icu4x::DataProvider& provider); 799 800 /** 801 * Get the `Id_Start` value for a given character, using compiled data 802 * 803 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 804 */ 805 inline static bool id_start_for_char(char32_t ch); 806 807 /** 808 * Create a set for the `Id_Start` property, using compiled data. 809 * 810 * See the [Rust documentation for `IdStart`](https://docs.rs/icu/latest/icu/properties/props/struct.IdStart.html) for more information. 811 */ 812 inline static std::unique_ptr<icu4x::CodePointSetData> create_id_start(); 813 814 /** 815 * Create a set for the `Id_Start` property, using a particular data source. 816 * 817 * See the [Rust documentation for `IdStart`](https://docs.rs/icu/latest/icu/properties/props/struct.IdStart.html) for more information. 818 */ 819 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_id_start_with_provider(const icu4x::DataProvider& provider); 820 821 /** 822 * Get the `Ids_Binary_Operator` value for a given character, using compiled data 823 * 824 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 825 */ 826 inline static bool ids_binary_operator_for_char(char32_t ch); 827 828 /** 829 * Create a set for the `Ids_Binary_Operator` property, using compiled data. 830 * 831 * See the [Rust documentation for `IdsBinaryOperator`](https://docs.rs/icu/latest/icu/properties/props/struct.IdsBinaryOperator.html) for more information. 832 */ 833 inline static std::unique_ptr<icu4x::CodePointSetData> create_ids_binary_operator(); 834 835 /** 836 * Create a set for the `Ids_Binary_Operator` property, using a particular data source. 837 * 838 * See the [Rust documentation for `IdsBinaryOperator`](https://docs.rs/icu/latest/icu/properties/props/struct.IdsBinaryOperator.html) for more information. 839 */ 840 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_ids_binary_operator_with_provider(const icu4x::DataProvider& provider); 841 842 /** 843 * Get the `Ids_Trinary_Operator` value for a given character, using compiled data 844 * 845 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 846 */ 847 inline static bool ids_trinary_operator_for_char(char32_t ch); 848 849 /** 850 * Create a set for the `Ids_Trinary_Operator` property, using compiled data. 851 * 852 * See the [Rust documentation for `IdsTrinaryOperator`](https://docs.rs/icu/latest/icu/properties/props/struct.IdsTrinaryOperator.html) for more information. 853 */ 854 inline static std::unique_ptr<icu4x::CodePointSetData> create_ids_trinary_operator(); 855 856 /** 857 * Create a set for the `Ids_Trinary_Operator` property, using a particular data source. 858 * 859 * See the [Rust documentation for `IdsTrinaryOperator`](https://docs.rs/icu/latest/icu/properties/props/struct.IdsTrinaryOperator.html) for more information. 860 */ 861 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_ids_trinary_operator_with_provider(const icu4x::DataProvider& provider); 862 863 /** 864 * Get the `Join_Control` value for a given character, using compiled data 865 * 866 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 867 */ 868 inline static bool join_control_for_char(char32_t ch); 869 870 /** 871 * Create a set for the `Join_Control` property, using compiled data. 872 * 873 * See the [Rust documentation for `JoinControl`](https://docs.rs/icu/latest/icu/properties/props/struct.JoinControl.html) for more information. 874 */ 875 inline static std::unique_ptr<icu4x::CodePointSetData> create_join_control(); 876 877 /** 878 * Create a set for the `Join_Control` property, using a particular data source. 879 * 880 * See the [Rust documentation for `JoinControl`](https://docs.rs/icu/latest/icu/properties/props/struct.JoinControl.html) for more information. 881 */ 882 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_join_control_with_provider(const icu4x::DataProvider& provider); 883 884 /** 885 * Get the `Logical_Order_Exception` value for a given character, using compiled data 886 * 887 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 888 */ 889 inline static bool logical_order_exception_for_char(char32_t ch); 890 891 /** 892 * Create a set for the `Logical_Order_Exception` property, using compiled data. 893 * 894 * See the [Rust documentation for `LogicalOrderException`](https://docs.rs/icu/latest/icu/properties/props/struct.LogicalOrderException.html) for more information. 895 */ 896 inline static std::unique_ptr<icu4x::CodePointSetData> create_logical_order_exception(); 897 898 /** 899 * Create a set for the `Logical_Order_Exception` property, using a particular data source. 900 * 901 * See the [Rust documentation for `LogicalOrderException`](https://docs.rs/icu/latest/icu/properties/props/struct.LogicalOrderException.html) for more information. 902 */ 903 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_logical_order_exception_with_provider(const icu4x::DataProvider& provider); 904 905 /** 906 * Get the `Lowercase` value for a given character, using compiled data 907 * 908 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 909 */ 910 inline static bool lowercase_for_char(char32_t ch); 911 912 /** 913 * Create a set for the `Lowercase` property, using compiled data. 914 * 915 * See the [Rust documentation for `Lowercase`](https://docs.rs/icu/latest/icu/properties/props/struct.Lowercase.html) for more information. 916 */ 917 inline static std::unique_ptr<icu4x::CodePointSetData> create_lowercase(); 918 919 /** 920 * Create a set for the `Lowercase` property, using a particular data source. 921 * 922 * See the [Rust documentation for `Lowercase`](https://docs.rs/icu/latest/icu/properties/props/struct.Lowercase.html) for more information. 923 */ 924 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_lowercase_with_provider(const icu4x::DataProvider& provider); 925 926 /** 927 * Get the `Math` value for a given character, using compiled data 928 * 929 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 930 */ 931 inline static bool math_for_char(char32_t ch); 932 933 /** 934 * Create a set for the `Math` property, using compiled data. 935 * 936 * See the [Rust documentation for `Math`](https://docs.rs/icu/latest/icu/properties/props/struct.Math.html) for more information. 937 */ 938 inline static std::unique_ptr<icu4x::CodePointSetData> create_math(); 939 940 /** 941 * Create a set for the `Math` property, using a particular data source. 942 * 943 * See the [Rust documentation for `Math`](https://docs.rs/icu/latest/icu/properties/props/struct.Math.html) for more information. 944 */ 945 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_math_with_provider(const icu4x::DataProvider& provider); 946 947 /** 948 * Get the `Noncharacter_Code_Point` value for a given character, using compiled data 949 * 950 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 951 */ 952 inline static bool noncharacter_code_point_for_char(char32_t ch); 953 954 /** 955 * Create a set for the `Noncharacter_Code_Point` property, using compiled data. 956 * 957 * See the [Rust documentation for `NoncharacterCodePoint`](https://docs.rs/icu/latest/icu/properties/props/struct.NoncharacterCodePoint.html) for more information. 958 */ 959 inline static std::unique_ptr<icu4x::CodePointSetData> create_noncharacter_code_point(); 960 961 /** 962 * Create a set for the `Noncharacter_Code_Point` property, using a particular data source. 963 * 964 * See the [Rust documentation for `NoncharacterCodePoint`](https://docs.rs/icu/latest/icu/properties/props/struct.NoncharacterCodePoint.html) for more information. 965 */ 966 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_noncharacter_code_point_with_provider(const icu4x::DataProvider& provider); 967 968 /** 969 * Get the `Nfc_Inert` value for a given character, using compiled data 970 * 971 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 972 */ 973 inline static bool nfc_inert_for_char(char32_t ch); 974 975 /** 976 * Create a set for the `Nfc_Inert` property, using compiled data. 977 * 978 * See the [Rust documentation for `NfcInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfcInert.html) for more information. 979 */ 980 inline static std::unique_ptr<icu4x::CodePointSetData> create_nfc_inert(); 981 982 /** 983 * Create a set for the `Nfc_Inert` property, using a particular data source. 984 * 985 * See the [Rust documentation for `NfcInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfcInert.html) for more information. 986 */ 987 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_nfc_inert_with_provider(const icu4x::DataProvider& provider); 988 989 /** 990 * Get the `Nfd_Inert` value for a given character, using compiled data 991 * 992 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 993 */ 994 inline static bool nfd_inert_for_char(char32_t ch); 995 996 /** 997 * Create a set for the `Nfd_Inert` property, using compiled data. 998 * 999 * See the [Rust documentation for `NfdInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfdInert.html) for more information. 1000 */ 1001 inline static std::unique_ptr<icu4x::CodePointSetData> create_nfd_inert(); 1002 1003 /** 1004 * Create a set for the `Nfd_Inert` property, using a particular data source. 1005 * 1006 * See the [Rust documentation for `NfdInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfdInert.html) for more information. 1007 */ 1008 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_nfd_inert_with_provider(const icu4x::DataProvider& provider); 1009 1010 /** 1011 * Get the `Nfkc_Inert` value for a given character, using compiled data 1012 * 1013 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1014 */ 1015 inline static bool nfkc_inert_for_char(char32_t ch); 1016 1017 /** 1018 * Create a set for the `Nfkc_Inert` property, using compiled data. 1019 * 1020 * See the [Rust documentation for `NfkcInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfkcInert.html) for more information. 1021 */ 1022 inline static std::unique_ptr<icu4x::CodePointSetData> create_nfkc_inert(); 1023 1024 /** 1025 * Create a set for the `Nfkc_Inert` property, using a particular data source. 1026 * 1027 * See the [Rust documentation for `NfkcInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfkcInert.html) for more information. 1028 */ 1029 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_nfkc_inert_with_provider(const icu4x::DataProvider& provider); 1030 1031 /** 1032 * Get the `Nfkd_Inert` value for a given character, using compiled data 1033 * 1034 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1035 */ 1036 inline static bool nfkd_inert_for_char(char32_t ch); 1037 1038 /** 1039 * Create a set for the `Nfkd_Inert` property, using compiled data. 1040 * 1041 * See the [Rust documentation for `NfkdInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfkdInert.html) for more information. 1042 */ 1043 inline static std::unique_ptr<icu4x::CodePointSetData> create_nfkd_inert(); 1044 1045 /** 1046 * Create a set for the `Nfkd_Inert` property, using a particular data source. 1047 * 1048 * See the [Rust documentation for `NfkdInert`](https://docs.rs/icu/latest/icu/properties/props/struct.NfkdInert.html) for more information. 1049 */ 1050 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_nfkd_inert_with_provider(const icu4x::DataProvider& provider); 1051 1052 /** 1053 * Get the `Pattern_Syntax` value for a given character, using compiled data 1054 * 1055 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1056 */ 1057 inline static bool pattern_syntax_for_char(char32_t ch); 1058 1059 /** 1060 * Create a set for the `Pattern_Syntax` property, using compiled data. 1061 * 1062 * See the [Rust documentation for `PatternSyntax`](https://docs.rs/icu/latest/icu/properties/props/struct.PatternSyntax.html) for more information. 1063 */ 1064 inline static std::unique_ptr<icu4x::CodePointSetData> create_pattern_syntax(); 1065 1066 /** 1067 * Create a set for the `Pattern_Syntax` property, using a particular data source. 1068 * 1069 * See the [Rust documentation for `PatternSyntax`](https://docs.rs/icu/latest/icu/properties/props/struct.PatternSyntax.html) for more information. 1070 */ 1071 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_pattern_syntax_with_provider(const icu4x::DataProvider& provider); 1072 1073 /** 1074 * Get the `Pattern_White_Space` value for a given character, using compiled data 1075 * 1076 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1077 */ 1078 inline static bool pattern_white_space_for_char(char32_t ch); 1079 1080 /** 1081 * Create a set for the `Pattern_White_Space` property, using compiled data. 1082 * 1083 * See the [Rust documentation for `PatternWhiteSpace`](https://docs.rs/icu/latest/icu/properties/props/struct.PatternWhiteSpace.html) for more information. 1084 */ 1085 inline static std::unique_ptr<icu4x::CodePointSetData> create_pattern_white_space(); 1086 1087 /** 1088 * Create a set for the `Pattern_White_Space` property, using a particular data source. 1089 * 1090 * See the [Rust documentation for `PatternWhiteSpace`](https://docs.rs/icu/latest/icu/properties/props/struct.PatternWhiteSpace.html) for more information. 1091 */ 1092 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_pattern_white_space_with_provider(const icu4x::DataProvider& provider); 1093 1094 /** 1095 * Get the `Prepended_Concatenation_Mark` value for a given character, using compiled data 1096 * 1097 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1098 */ 1099 inline static bool prepended_concatenation_mark_for_char(char32_t ch); 1100 1101 /** 1102 * Create a set for the `Prepended_Concatenation_Mark` property, using compiled data. 1103 * 1104 * See the [Rust documentation for `PrependedConcatenationMark`](https://docs.rs/icu/latest/icu/properties/props/struct.PrependedConcatenationMark.html) for more information. 1105 */ 1106 inline static std::unique_ptr<icu4x::CodePointSetData> create_prepended_concatenation_mark(); 1107 1108 /** 1109 * Create a set for the `Prepended_Concatenation_Mark` property, using a particular data source. 1110 * 1111 * See the [Rust documentation for `PrependedConcatenationMark`](https://docs.rs/icu/latest/icu/properties/props/struct.PrependedConcatenationMark.html) for more information. 1112 */ 1113 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_prepended_concatenation_mark_with_provider(const icu4x::DataProvider& provider); 1114 1115 /** 1116 * Get the `Print` value for a given character, using compiled data 1117 * 1118 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1119 */ 1120 inline static bool print_for_char(char32_t ch); 1121 1122 /** 1123 * Create a set for the `Print` property, using compiled data. 1124 * 1125 * See the [Rust documentation for `Print`](https://docs.rs/icu/latest/icu/properties/props/struct.Print.html) for more information. 1126 */ 1127 inline static std::unique_ptr<icu4x::CodePointSetData> create_print(); 1128 1129 /** 1130 * Create a set for the `Print` property, using a particular data source. 1131 * 1132 * See the [Rust documentation for `Print`](https://docs.rs/icu/latest/icu/properties/props/struct.Print.html) for more information. 1133 */ 1134 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_print_with_provider(const icu4x::DataProvider& provider); 1135 1136 /** 1137 * Get the `Quotation_Mark` value for a given character, using compiled data 1138 * 1139 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1140 */ 1141 inline static bool quotation_mark_for_char(char32_t ch); 1142 1143 /** 1144 * Create a set for the `Quotation_Mark` property, using compiled data. 1145 * 1146 * See the [Rust documentation for `QuotationMark`](https://docs.rs/icu/latest/icu/properties/props/struct.QuotationMark.html) for more information. 1147 */ 1148 inline static std::unique_ptr<icu4x::CodePointSetData> create_quotation_mark(); 1149 1150 /** 1151 * Create a set for the `Quotation_Mark` property, using a particular data source. 1152 * 1153 * See the [Rust documentation for `QuotationMark`](https://docs.rs/icu/latest/icu/properties/props/struct.QuotationMark.html) for more information. 1154 */ 1155 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_quotation_mark_with_provider(const icu4x::DataProvider& provider); 1156 1157 /** 1158 * Get the `Radical` value for a given character, using compiled data 1159 * 1160 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1161 */ 1162 inline static bool radical_for_char(char32_t ch); 1163 1164 /** 1165 * Create a set for the `Radical` property, using compiled data. 1166 * 1167 * See the [Rust documentation for `Radical`](https://docs.rs/icu/latest/icu/properties/props/struct.Radical.html) for more information. 1168 */ 1169 inline static std::unique_ptr<icu4x::CodePointSetData> create_radical(); 1170 1171 /** 1172 * Create a set for the `Radical` property, using a particular data source. 1173 * 1174 * See the [Rust documentation for `Radical`](https://docs.rs/icu/latest/icu/properties/props/struct.Radical.html) for more information. 1175 */ 1176 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_radical_with_provider(const icu4x::DataProvider& provider); 1177 1178 /** 1179 * Get the `Regional_Indicator` value for a given character, using compiled data 1180 * 1181 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1182 */ 1183 inline static bool regional_indicator_for_char(char32_t ch); 1184 1185 /** 1186 * Create a set for the `Regional_Indicator` property, using compiled data. 1187 * 1188 * See the [Rust documentation for `RegionalIndicator`](https://docs.rs/icu/latest/icu/properties/props/struct.RegionalIndicator.html) for more information. 1189 */ 1190 inline static std::unique_ptr<icu4x::CodePointSetData> create_regional_indicator(); 1191 1192 /** 1193 * Create a set for the `Regional_Indicator` property, using a particular data source. 1194 * 1195 * See the [Rust documentation for `RegionalIndicator`](https://docs.rs/icu/latest/icu/properties/props/struct.RegionalIndicator.html) for more information. 1196 */ 1197 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_regional_indicator_with_provider(const icu4x::DataProvider& provider); 1198 1199 /** 1200 * Get the `Soft_Dotted` value for a given character, using compiled data 1201 * 1202 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1203 */ 1204 inline static bool soft_dotted_for_char(char32_t ch); 1205 1206 /** 1207 * Create a set for the `Soft_Dotted` property, using compiled data. 1208 * 1209 * See the [Rust documentation for `SoftDotted`](https://docs.rs/icu/latest/icu/properties/props/struct.SoftDotted.html) for more information. 1210 */ 1211 inline static std::unique_ptr<icu4x::CodePointSetData> create_soft_dotted(); 1212 1213 /** 1214 * Create a set for the `Soft_Dotted` property, using a particular data source. 1215 * 1216 * See the [Rust documentation for `SoftDotted`](https://docs.rs/icu/latest/icu/properties/props/struct.SoftDotted.html) for more information. 1217 */ 1218 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_soft_dotted_with_provider(const icu4x::DataProvider& provider); 1219 1220 /** 1221 * Get the `Segment_Starter` value for a given character, using compiled data 1222 * 1223 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1224 */ 1225 inline static bool segment_starter_for_char(char32_t ch); 1226 1227 /** 1228 * Create a set for the `Segment_Starter` property, using compiled data. 1229 * 1230 * See the [Rust documentation for `SegmentStarter`](https://docs.rs/icu/latest/icu/properties/props/struct.SegmentStarter.html) for more information. 1231 */ 1232 inline static std::unique_ptr<icu4x::CodePointSetData> create_segment_starter(); 1233 1234 /** 1235 * Create a set for the `Segment_Starter` property, using a particular data source. 1236 * 1237 * See the [Rust documentation for `SegmentStarter`](https://docs.rs/icu/latest/icu/properties/props/struct.SegmentStarter.html) for more information. 1238 */ 1239 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_segment_starter_with_provider(const icu4x::DataProvider& provider); 1240 1241 /** 1242 * Get the `Case_Sensitive` value for a given character, using compiled data 1243 * 1244 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1245 */ 1246 inline static bool case_sensitive_for_char(char32_t ch); 1247 1248 /** 1249 * Create a set for the `Case_Sensitive` property, using compiled data. 1250 * 1251 * See the [Rust documentation for `CaseSensitive`](https://docs.rs/icu/latest/icu/properties/props/struct.CaseSensitive.html) for more information. 1252 */ 1253 inline static std::unique_ptr<icu4x::CodePointSetData> create_case_sensitive(); 1254 1255 /** 1256 * Create a set for the `Case_Sensitive` property, using a particular data source. 1257 * 1258 * See the [Rust documentation for `CaseSensitive`](https://docs.rs/icu/latest/icu/properties/props/struct.CaseSensitive.html) for more information. 1259 */ 1260 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_case_sensitive_with_provider(const icu4x::DataProvider& provider); 1261 1262 /** 1263 * Get the `Sentence_Terminal` value for a given character, using compiled data 1264 * 1265 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1266 */ 1267 inline static bool sentence_terminal_for_char(char32_t ch); 1268 1269 /** 1270 * Create a set for the `Sentence_Terminal` property, using compiled data. 1271 * 1272 * See the [Rust documentation for `SentenceTerminal`](https://docs.rs/icu/latest/icu/properties/props/struct.SentenceTerminal.html) for more information. 1273 */ 1274 inline static std::unique_ptr<icu4x::CodePointSetData> create_sentence_terminal(); 1275 1276 /** 1277 * Create a set for the `Sentence_Terminal` property, using a particular data source. 1278 * 1279 * See the [Rust documentation for `SentenceTerminal`](https://docs.rs/icu/latest/icu/properties/props/struct.SentenceTerminal.html) for more information. 1280 */ 1281 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_sentence_terminal_with_provider(const icu4x::DataProvider& provider); 1282 1283 /** 1284 * Get the `Terminal_Punctuation` value for a given character, using compiled data 1285 * 1286 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1287 */ 1288 inline static bool terminal_punctuation_for_char(char32_t ch); 1289 1290 /** 1291 * Create a set for the `Terminal_Punctuation` property, using compiled data. 1292 * 1293 * See the [Rust documentation for `TerminalPunctuation`](https://docs.rs/icu/latest/icu/properties/props/struct.TerminalPunctuation.html) for more information. 1294 */ 1295 inline static std::unique_ptr<icu4x::CodePointSetData> create_terminal_punctuation(); 1296 1297 /** 1298 * Create a set for the `Terminal_Punctuation` property, using a particular data source. 1299 * 1300 * See the [Rust documentation for `TerminalPunctuation`](https://docs.rs/icu/latest/icu/properties/props/struct.TerminalPunctuation.html) for more information. 1301 */ 1302 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_terminal_punctuation_with_provider(const icu4x::DataProvider& provider); 1303 1304 /** 1305 * Get the `Unified_Ideograph` value for a given character, using compiled data 1306 * 1307 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1308 */ 1309 inline static bool unified_ideograph_for_char(char32_t ch); 1310 1311 /** 1312 * Create a set for the `Unified_Ideograph` property, using compiled data. 1313 * 1314 * See the [Rust documentation for `UnifiedIdeograph`](https://docs.rs/icu/latest/icu/properties/props/struct.UnifiedIdeograph.html) for more information. 1315 */ 1316 inline static std::unique_ptr<icu4x::CodePointSetData> create_unified_ideograph(); 1317 1318 /** 1319 * Create a set for the `Unified_Ideograph` property, using a particular data source. 1320 * 1321 * See the [Rust documentation for `UnifiedIdeograph`](https://docs.rs/icu/latest/icu/properties/props/struct.UnifiedIdeograph.html) for more information. 1322 */ 1323 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_unified_ideograph_with_provider(const icu4x::DataProvider& provider); 1324 1325 /** 1326 * Get the `Uppercase` value for a given character, using compiled data 1327 * 1328 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1329 */ 1330 inline static bool uppercase_for_char(char32_t ch); 1331 1332 /** 1333 * Create a set for the `Uppercase` property, using compiled data. 1334 * 1335 * See the [Rust documentation for `Uppercase`](https://docs.rs/icu/latest/icu/properties/props/struct.Uppercase.html) for more information. 1336 */ 1337 inline static std::unique_ptr<icu4x::CodePointSetData> create_uppercase(); 1338 1339 /** 1340 * Create a set for the `Uppercase` property, using a particular data source. 1341 * 1342 * See the [Rust documentation for `Uppercase`](https://docs.rs/icu/latest/icu/properties/props/struct.Uppercase.html) for more information. 1343 */ 1344 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_uppercase_with_provider(const icu4x::DataProvider& provider); 1345 1346 /** 1347 * Get the `Variation_Selector` value for a given character, using compiled data 1348 * 1349 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1350 */ 1351 inline static bool variation_selector_for_char(char32_t ch); 1352 1353 /** 1354 * Create a set for the `Variation_Selector` property, using compiled data. 1355 * 1356 * See the [Rust documentation for `VariationSelector`](https://docs.rs/icu/latest/icu/properties/props/struct.VariationSelector.html) for more information. 1357 */ 1358 inline static std::unique_ptr<icu4x::CodePointSetData> create_variation_selector(); 1359 1360 /** 1361 * Create a set for the `Variation_Selector` property, using a particular data source. 1362 * 1363 * See the [Rust documentation for `VariationSelector`](https://docs.rs/icu/latest/icu/properties/props/struct.VariationSelector.html) for more information. 1364 */ 1365 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_variation_selector_with_provider(const icu4x::DataProvider& provider); 1366 1367 /** 1368 * Get the `White_Space` value for a given character, using compiled data 1369 * 1370 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1371 */ 1372 inline static bool white_space_for_char(char32_t ch); 1373 1374 /** 1375 * Create a set for the `White_Space` property, using compiled data. 1376 * 1377 * See the [Rust documentation for `WhiteSpace`](https://docs.rs/icu/latest/icu/properties/props/struct.WhiteSpace.html) for more information. 1378 */ 1379 inline static std::unique_ptr<icu4x::CodePointSetData> create_white_space(); 1380 1381 /** 1382 * Create a set for the `White_Space` property, using a particular data source. 1383 * 1384 * See the [Rust documentation for `WhiteSpace`](https://docs.rs/icu/latest/icu/properties/props/struct.WhiteSpace.html) for more information. 1385 */ 1386 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_white_space_with_provider(const icu4x::DataProvider& provider); 1387 1388 /** 1389 * Get the `Xdigit` value for a given character, using compiled data 1390 * 1391 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1392 */ 1393 inline static bool xdigit_for_char(char32_t ch); 1394 1395 /** 1396 * Create a set for the `Xdigit` property, using compiled data. 1397 * 1398 * See the [Rust documentation for `Xdigit`](https://docs.rs/icu/latest/icu/properties/props/struct.Xdigit.html) for more information. 1399 */ 1400 inline static std::unique_ptr<icu4x::CodePointSetData> create_xdigit(); 1401 1402 /** 1403 * Create a set for the `Xdigit` property, using a particular data source. 1404 * 1405 * See the [Rust documentation for `Xdigit`](https://docs.rs/icu/latest/icu/properties/props/struct.Xdigit.html) for more information. 1406 */ 1407 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_xdigit_with_provider(const icu4x::DataProvider& provider); 1408 1409 /** 1410 * Get the `Xid_Continue` value for a given character, using compiled data 1411 * 1412 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1413 */ 1414 inline static bool xid_continue_for_char(char32_t ch); 1415 1416 /** 1417 * Create a set for the `Xid_Continue` property, using compiled data. 1418 * 1419 * See the [Rust documentation for `XidContinue`](https://docs.rs/icu/latest/icu/properties/props/struct.XidContinue.html) for more information. 1420 */ 1421 inline static std::unique_ptr<icu4x::CodePointSetData> create_xid_continue(); 1422 1423 /** 1424 * Create a set for the `Xid_Continue` property, using a particular data source. 1425 * 1426 * See the [Rust documentation for `XidContinue`](https://docs.rs/icu/latest/icu/properties/props/struct.XidContinue.html) for more information. 1427 */ 1428 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_xid_continue_with_provider(const icu4x::DataProvider& provider); 1429 1430 /** 1431 * Get the `Xid_Start` value for a given character, using compiled data 1432 * 1433 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.BinaryProperty.html#tymethod.for_char) for more information. 1434 */ 1435 inline static bool xid_start_for_char(char32_t ch); 1436 1437 /** 1438 * Create a set for the `Xid_Start` property, using compiled data. 1439 * 1440 * See the [Rust documentation for `XidStart`](https://docs.rs/icu/latest/icu/properties/props/struct.XidStart.html) for more information. 1441 */ 1442 inline static std::unique_ptr<icu4x::CodePointSetData> create_xid_start(); 1443 1444 /** 1445 * Create a set for the `Xid_Start` property, using a particular data source. 1446 * 1447 * See the [Rust documentation for `XidStart`](https://docs.rs/icu/latest/icu/properties/props/struct.XidStart.html) for more information. 1448 */ 1449 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_xid_start_with_provider(const icu4x::DataProvider& provider); 1450 1451 /** 1452 * [ecma]: https://tc39.es/ecma262/#table-binary-unicode-properties 1453 * 1454 * See the [Rust documentation for `new_for_ecma262`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetData.html#method.new_for_ecma262) for more information. 1455 */ 1456 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_for_ecma262(std::string_view property_name); 1457 1458 /** 1459 * [ecma]: https://tc39.es/ecma262/#table-binary-unicode-properties 1460 * 1461 * See the [Rust documentation for `new_for_ecma262`](https://docs.rs/icu/latest/icu/properties/struct.CodePointSetData.html#method.new_for_ecma262) for more information. 1462 */ 1463 inline static diplomat::result<std::unique_ptr<icu4x::CodePointSetData>, icu4x::DataError> create_for_ecma262_with_provider(const icu4x::DataProvider& provider, std::string_view property_name); 1464 1465 inline const icu4x::capi::CodePointSetData* AsFFI() const; 1466 inline icu4x::capi::CodePointSetData* AsFFI(); 1467 inline static const icu4x::CodePointSetData* FromFFI(const icu4x::capi::CodePointSetData* ptr); 1468 inline static icu4x::CodePointSetData* FromFFI(icu4x::capi::CodePointSetData* ptr); 1469 inline static void operator delete(void* ptr); 1470 private: 1471 CodePointSetData() = delete; 1472 CodePointSetData(const icu4x::CodePointSetData&) = delete; 1473 CodePointSetData(icu4x::CodePointSetData&&) noexcept = delete; 1474 CodePointSetData operator=(const icu4x::CodePointSetData&) = delete; 1475 CodePointSetData operator=(icu4x::CodePointSetData&&) noexcept = delete; 1476 static void operator delete[](void*, size_t) = delete; 1477 }; 1478 1479 } // namespace 1480 #endif // icu4x_CodePointSetData_D_HPP