summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/cpp/docs/source/collections_sets_ffi.rst
blob: cdf1e1c04679cef1b03cf177be77d02e299837f0 (plain)
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
``collections_sets::ffi``
=========================

.. cpp:class:: ICU4XCodePointSetBuilder

    See the `Rust documentation for CodePointInversionListBuilder <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html>`__ for more information.


    .. cpp:function:: static ICU4XCodePointSetBuilder create()

        Make a new set builder containing nothing

        See the `Rust documentation for new <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.new>`__ for more information.


    .. cpp:function:: ICU4XCodePointSetData build()

        Build this into a set

        This object is repopulated with an empty builder

        See the `Rust documentation for build <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.build>`__ for more information.


    .. cpp:function:: void complement()

        Complements this set

        (Elements in this set are removed and vice versa)

        See the `Rust documentation for complement <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement>`__ for more information.


    .. cpp:function:: bool is_empty() const

        Returns whether this set is empty

        See the `Rust documentation for is_empty <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.is_empty>`__ for more information.


    .. cpp:function:: void add_char(char32_t ch)

        Add a single character to the set

        See the `Rust documentation for add_char <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_char>`__ for more information.


    .. cpp:function:: void add_u32(uint32_t ch)

        Add a single u32 value to the set

        See the `Rust documentation for add_u32 <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_u32>`__ for more information.


    .. cpp:function:: void add_inclusive_range(char32_t start, char32_t end)

        Add an inclusive range of characters to the set

        See the `Rust documentation for add_range <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_range>`__ for more information.


    .. cpp:function:: void add_inclusive_range_u32(uint32_t start, uint32_t end)

        Add an inclusive range of u32s to the set

        See the `Rust documentation for add_range_u32 <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_range_u32>`__ for more information.


    .. cpp:function:: void add_set(const ICU4XCodePointSetData& data)

        Add all elements that belong to the provided set to the set

        See the `Rust documentation for add_set <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_set>`__ for more information.


    .. cpp:function:: void remove_char(char32_t ch)

        Remove a single character to the set

        See the `Rust documentation for remove_char <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_char>`__ for more information.


    .. cpp:function:: void remove_inclusive_range(char32_t start, char32_t end)

        Remove an inclusive range of characters from the set

        See the `Rust documentation for remove_range <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_range>`__ for more information.


    .. cpp:function:: void remove_set(const ICU4XCodePointSetData& data)

        Remove all elements that belong to the provided set from the set

        See the `Rust documentation for remove_set <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_set>`__ for more information.


    .. cpp:function:: void retain_char(char32_t ch)

        Removes all elements from the set except a single character

        See the `Rust documentation for retain_char <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_char>`__ for more information.


    .. cpp:function:: void retain_inclusive_range(char32_t start, char32_t end)

        Removes all elements from the set except an inclusive range of characters f

        See the `Rust documentation for retain_range <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_range>`__ for more information.


    .. cpp:function:: void retain_set(const ICU4XCodePointSetData& data)

        Removes all elements from the set except all elements in the provided set

        See the `Rust documentation for retain_set <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_set>`__ for more information.


    .. cpp:function:: void complement_char(char32_t ch)

        Complement a single character to the set

        (Characters which are in this set are removed and vice versa)

        See the `Rust documentation for complement_char <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_char>`__ for more information.


    .. cpp:function:: void complement_inclusive_range(char32_t start, char32_t end)

        Complement an inclusive range of characters from the set

        (Characters which are in this set are removed and vice versa)

        See the `Rust documentation for complement_range <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_range>`__ for more information.


    .. cpp:function:: void complement_set(const ICU4XCodePointSetData& data)

        Complement all elements that belong to the provided set from the set

        (Characters which are in this set are removed and vice versa)

        See the `Rust documentation for complement_set <https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_set>`__ for more information.