Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XCodePointSetBuilder.d.ts

raw
1 import { u32, char } from "./diplomat-runtime"
2 import { ICU4XCodePointSetData } from "./ICU4XCodePointSetData";
3
4 /**
5
6 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html Rust documentation for `CodePointInversionListBuilder`} for more information.
7 */
8 export class ICU4XCodePointSetBuilder {
9
10 /**
11
12 * Make a new set builder containing nothing
13
14 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.new Rust documentation for `new`} for more information.
15 */
16 static create(): ICU4XCodePointSetBuilder;
17
18 /**
19
20 * Build this into a set
21
22 * This object is repopulated with an empty builder
23
24 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.build Rust documentation for `build`} for more information.
25 */
26 build(): ICU4XCodePointSetData;
27
28 /**
29
30 * Complements this set
31
32 * (Elements in this set are removed and vice versa)
33
34 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement Rust documentation for `complement`} for more information.
35 */
36 complement(): void;
37
38 /**
39
40 * Returns whether this set is empty
41
42 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.is_empty Rust documentation for `is_empty`} for more information.
43 */
44 is_empty(): boolean;
45
46 /**
47
48 * Add a single character to the set
49
50 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_char Rust documentation for `add_char`} for more information.
51 */
52 add_char(ch: char): void;
53
54 /**
55
56 * Deprecated, use `add_char`.
57
58 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_u32 Rust documentation for `add_u32`} for more information.
59 */
60 add_u32(ch: u32): void;
61
62 /**
63
64 * Add an inclusive range of characters to the set
65
66 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_range Rust documentation for `add_range`} for more information.
67 */
68 add_inclusive_range(start: char, end: char): void;
69
70 /**
71
72 * Deprecated, use `add_inclusive_range`.
73
74 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_range_u32 Rust documentation for `add_range_u32`} for more information.
75 */
76 add_inclusive_range_u32(start: u32, end: u32): void;
77
78 /**
79
80 * Add all elements that belong to the provided set to the set
81
82 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_set Rust documentation for `add_set`} for more information.
83 */
84 add_set(data: ICU4XCodePointSetData): void;
85
86 /**
87
88 * Remove a single character to the set
89
90 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_char Rust documentation for `remove_char`} for more information.
91 */
92 remove_char(ch: char): void;
93
94 /**
95
96 * Remove an inclusive range of characters from the set
97
98 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_range Rust documentation for `remove_range`} for more information.
99 */
100 remove_inclusive_range(start: char, end: char): void;
101
102 /**
103
104 * Remove all elements that belong to the provided set from the set
105
106 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_set Rust documentation for `remove_set`} for more information.
107 */
108 remove_set(data: ICU4XCodePointSetData): void;
109
110 /**
111
112 * Removes all elements from the set except a single character
113
114 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_char Rust documentation for `retain_char`} for more information.
115 */
116 retain_char(ch: char): void;
117
118 /**
119
120 * Removes all elements from the set except an inclusive range of characters f
121
122 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_range Rust documentation for `retain_range`} for more information.
123 */
124 retain_inclusive_range(start: char, end: char): void;
125
126 /**
127
128 * Removes all elements from the set except all elements in the provided set
129
130 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_set Rust documentation for `retain_set`} for more information.
131 */
132 retain_set(data: ICU4XCodePointSetData): void;
133
134 /**
135
136 * Complement a single character to the set
137
138 * (Characters which are in this set are removed and vice versa)
139
140 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_char Rust documentation for `complement_char`} for more information.
141 */
142 complement_char(ch: char): void;
143
144 /**
145
146 * Complement an inclusive range of characters from the set
147
148 * (Characters which are in this set are removed and vice versa)
149
150 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_range Rust documentation for `complement_range`} for more information.
151 */
152 complement_inclusive_range(start: char, end: char): void;
153
154 /**
155
156 * Complement all elements that belong to the provided set from the set
157
158 * (Characters which are in this set are removed and vice versa)
159
160 * See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_set Rust documentation for `complement_set`} for more information.
161 */
162 complement_set(data: ICU4XCodePointSetData): void;
163 }