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
#ifndef icu4x_GeneralCategoryGroup_D_HPP
#define icu4x_GeneralCategoryGroup_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 {
struct GeneralCategoryGroup;
class GeneralCategory;
}
namespace icu4x {
namespace capi {
struct GeneralCategoryGroup {
uint32_t mask;
};
typedef struct GeneralCategoryGroup_option {union { GeneralCategoryGroup ok; }; bool is_ok; } GeneralCategoryGroup_option;
} // namespace capi
} // namespace
namespace icu4x {
/**
* A mask that is capable of representing groups of `General_Category` values.
*
* See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html) for more information.
*/
struct GeneralCategoryGroup {
uint32_t mask;
/**
* See the [Rust documentation for `contains`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#method.contains) for more information.
*/
inline bool contains(icu4x::GeneralCategory val) const;
/**
* See the [Rust documentation for `complement`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#method.complement) for more information.
*/
inline icu4x::GeneralCategoryGroup complement() const;
/**
* See the [Rust documentation for `all`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#method.all) for more information.
*/
inline static icu4x::GeneralCategoryGroup all();
/**
* See the [Rust documentation for `empty`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#method.empty) for more information.
*/
inline static icu4x::GeneralCategoryGroup empty();
/**
* See the [Rust documentation for `union`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#method.union) for more information.
*/
inline icu4x::GeneralCategoryGroup union_(icu4x::GeneralCategoryGroup other) const;
/**
* See the [Rust documentation for `intersection`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#method.intersection) for more information.
*/
inline icu4x::GeneralCategoryGroup intersection(icu4x::GeneralCategoryGroup other) const;
/**
* See the [Rust documentation for `CasedLetter`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.CasedLetter) for more information.
*/
inline static icu4x::GeneralCategoryGroup cased_letter();
/**
* See the [Rust documentation for `Letter`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Letter) for more information.
*/
inline static icu4x::GeneralCategoryGroup letter();
/**
* See the [Rust documentation for `Mark`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Mark) for more information.
*/
inline static icu4x::GeneralCategoryGroup mark();
/**
* See the [Rust documentation for `Number`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Number) for more information.
*/
inline static icu4x::GeneralCategoryGroup number();
/**
* See the [Rust documentation for `Other`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Other) for more information.
*/
inline static icu4x::GeneralCategoryGroup separator();
/**
* See the [Rust documentation for `Letter`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Letter) for more information.
*/
inline static icu4x::GeneralCategoryGroup other();
/**
* See the [Rust documentation for `Punctuation`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Punctuation) for more information.
*/
inline static icu4x::GeneralCategoryGroup punctuation();
/**
* See the [Rust documentation for `Symbol`](https://docs.rs/icu/2.0.0/icu/properties/props/struct.GeneralCategoryGroup.html#associatedconstant.Symbol) for more information.
*/
inline static icu4x::GeneralCategoryGroup symbol();
inline icu4x::capi::GeneralCategoryGroup AsFFI() const;
inline static icu4x::GeneralCategoryGroup FromFFI(icu4x::capi::GeneralCategoryGroup c_struct);
};
} // namespace
#endif // icu4x_GeneralCategoryGroup_D_HPP