GeneralCategoryGroup.d.hpp (4606B)
1 #ifndef icu4x_GeneralCategoryGroup_D_HPP 2 #define icu4x_GeneralCategoryGroup_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 struct GeneralCategoryGroup; 16 class GeneralCategory; 17 } 18 19 20 namespace icu4x { 21 namespace capi { 22 struct GeneralCategoryGroup { 23 uint32_t mask; 24 }; 25 26 typedef struct GeneralCategoryGroup_option {union { GeneralCategoryGroup ok; }; bool is_ok; } GeneralCategoryGroup_option; 27 } // namespace capi 28 } // namespace 29 30 31 namespace icu4x { 32 /** 33 * A mask that is capable of representing groups of `General_Category` values. 34 * 35 * See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html) for more information. 36 */ 37 struct GeneralCategoryGroup { 38 uint32_t mask; 39 40 /** 41 * See the [Rust documentation for `contains`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#method.contains) for more information. 42 */ 43 inline bool contains(icu4x::GeneralCategory val) const; 44 45 /** 46 * See the [Rust documentation for `complement`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#method.complement) for more information. 47 */ 48 inline icu4x::GeneralCategoryGroup complement() const; 49 50 /** 51 * See the [Rust documentation for `all`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#method.all) for more information. 52 */ 53 inline static icu4x::GeneralCategoryGroup all(); 54 55 /** 56 * See the [Rust documentation for `empty`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#method.empty) for more information. 57 */ 58 inline static icu4x::GeneralCategoryGroup empty(); 59 60 /** 61 * See the [Rust documentation for `union`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#method.union) for more information. 62 */ 63 inline icu4x::GeneralCategoryGroup union_(icu4x::GeneralCategoryGroup other) const; 64 65 /** 66 * See the [Rust documentation for `intersection`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#method.intersection) for more information. 67 */ 68 inline icu4x::GeneralCategoryGroup intersection(icu4x::GeneralCategoryGroup other) const; 69 70 /** 71 * See the [Rust documentation for `CasedLetter`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.CasedLetter) for more information. 72 */ 73 inline static icu4x::GeneralCategoryGroup cased_letter(); 74 75 /** 76 * See the [Rust documentation for `Letter`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Letter) for more information. 77 */ 78 inline static icu4x::GeneralCategoryGroup letter(); 79 80 /** 81 * See the [Rust documentation for `Mark`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Mark) for more information. 82 */ 83 inline static icu4x::GeneralCategoryGroup mark(); 84 85 /** 86 * See the [Rust documentation for `Number`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Number) for more information. 87 */ 88 inline static icu4x::GeneralCategoryGroup number(); 89 90 /** 91 * See the [Rust documentation for `Other`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Other) for more information. 92 */ 93 inline static icu4x::GeneralCategoryGroup separator(); 94 95 /** 96 * See the [Rust documentation for `Letter`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Letter) for more information. 97 */ 98 inline static icu4x::GeneralCategoryGroup other(); 99 100 /** 101 * See the [Rust documentation for `Punctuation`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Punctuation) for more information. 102 */ 103 inline static icu4x::GeneralCategoryGroup punctuation(); 104 105 /** 106 * See the [Rust documentation for `Symbol`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Symbol) for more information. 107 */ 108 inline static icu4x::GeneralCategoryGroup symbol(); 109 110 inline icu4x::capi::GeneralCategoryGroup AsFFI() const; 111 inline static icu4x::GeneralCategoryGroup FromFFI(icu4x::capi::GeneralCategoryGroup c_struct); 112 }; 113 114 } // namespace 115 #endif // icu4x_GeneralCategoryGroup_D_HPP