CodePointSetBuilder.d.ts (5652B)
1 // generated by diplomat-tool 2 import type { CodePointSetData } from "./CodePointSetData" 3 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 4 5 6 /** 7 * See the [Rust documentation for `CodePointInversionListBuilder`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html) for more information. 8 */ 9 10 11 export class CodePointSetBuilder { 12 get ffiValue(): pointer; 13 14 15 /** 16 * Build this into a set 17 * 18 * This object is repopulated with an empty builder 19 * 20 * See the [Rust documentation for `build`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.build) for more information. 21 */ 22 build(): CodePointSetData; 23 24 /** 25 * Complements this set 26 * 27 * (Elements in this set are removed and vice versa) 28 * 29 * See the [Rust documentation for `complement`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement) for more information. 30 */ 31 complement(): void; 32 33 /** 34 * Returns whether this set is empty 35 * 36 * See the [Rust documentation for `is_empty`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.is_empty) for more information. 37 */ 38 get isEmpty(): boolean; 39 40 /** 41 * Add a single character to the set 42 * 43 * See the [Rust documentation for `add_char`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_char) for more information. 44 */ 45 addChar(ch: codepoint): void; 46 47 /** 48 * Add an inclusive range of characters to the set 49 * 50 * See the [Rust documentation for `add_range`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_range) for more information. 51 */ 52 addInclusiveRange(start: codepoint, end: codepoint): void; 53 54 /** 55 * Add all elements that belong to the provided set to the set 56 * 57 * See the [Rust documentation for `add_set`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.add_set) for more information. 58 */ 59 addSet(data: CodePointSetData): void; 60 61 /** 62 * Remove a single character to the set 63 * 64 * See the [Rust documentation for `remove_char`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_char) for more information. 65 */ 66 removeChar(ch: codepoint): void; 67 68 /** 69 * Remove an inclusive range of characters from the set 70 * 71 * See the [Rust documentation for `remove_range`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_range) for more information. 72 */ 73 removeInclusiveRange(start: codepoint, end: codepoint): void; 74 75 /** 76 * Remove all elements that belong to the provided set from the set 77 * 78 * See the [Rust documentation for `remove_set`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.remove_set) for more information. 79 */ 80 removeSet(data: CodePointSetData): void; 81 82 /** 83 * Removes all elements from the set except a single character 84 * 85 * See the [Rust documentation for `retain_char`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_char) for more information. 86 */ 87 retainChar(ch: codepoint): void; 88 89 /** 90 * Removes all elements from the set except an inclusive range of characters f 91 * 92 * See the [Rust documentation for `retain_range`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_range) for more information. 93 */ 94 retainInclusiveRange(start: codepoint, end: codepoint): void; 95 96 /** 97 * Removes all elements from the set except all elements in the provided set 98 * 99 * See the [Rust documentation for `retain_set`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.retain_set) for more information. 100 */ 101 retainSet(data: CodePointSetData): void; 102 103 /** 104 * Complement a single character to the set 105 * 106 * (Characters which are in this set are removed and vice versa) 107 * 108 * See the [Rust documentation for `complement_char`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_char) for more information. 109 */ 110 complementChar(ch: codepoint): void; 111 112 /** 113 * Complement an inclusive range of characters from the set 114 * 115 * (Characters which are in this set are removed and vice versa) 116 * 117 * See the [Rust documentation for `complement_range`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_range) for more information. 118 */ 119 complementInclusiveRange(start: codepoint, end: codepoint): void; 120 121 /** 122 * Complement all elements that belong to the provided set from the set 123 * 124 * (Characters which are in this set are removed and vice versa) 125 * 126 * See the [Rust documentation for `complement_set`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_set) for more information. 127 */ 128 complementSet(data: CodePointSetData): void; 129 130 constructor(); 131 }