Source code

Revision control

Copy as Markdown

Other Tools

import { u32, char } from "./diplomat-runtime"
import { ICU4XCodePointSetData } from "./ICU4XCodePointSetData";
/**
* See the {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html Rust documentation for `CodePointInversionListBuilder`} for more information.
*/
export class ICU4XCodePointSetBuilder {
/**
* Make a new set builder containing nothing
*/
static create(): ICU4XCodePointSetBuilder;
/**
* Build this into a set
* This object is repopulated with an empty builder
*/
build(): ICU4XCodePointSetData;
/**
* Complements this set
* (Elements in this set are removed and vice versa)
*/
complement(): void;
/**
* Returns whether this set is empty
*/
is_empty(): boolean;
/**
* Add a single character to the set
*/
add_char(ch: char): void;
/**
* Deprecated, use `add_char`.
*/
add_u32(ch: u32): void;
/**
* Add an inclusive range of characters to the set
*/
add_inclusive_range(start: char, end: char): void;
/**
* Deprecated, use `add_inclusive_range`.
*/
add_inclusive_range_u32(start: u32, end: u32): void;
/**
* Add all elements that belong to the provided set to the set
*/
add_set(data: ICU4XCodePointSetData): void;
/**
* Remove a single character to the set
*/
remove_char(ch: char): void;
/**
* Remove an inclusive range of characters from the set
*/
remove_inclusive_range(start: char, end: char): void;
/**
* Remove all elements that belong to the provided set from the set
*/
remove_set(data: ICU4XCodePointSetData): void;
/**
* Removes all elements from the set except a single character
*/
retain_char(ch: char): void;
/**
* Removes all elements from the set except an inclusive range of characters f
*/
retain_inclusive_range(start: char, end: char): void;
/**
* Removes all elements from the set except all elements in the provided set
*/
retain_set(data: ICU4XCodePointSetData): void;
/**
* Complement a single character to the set
* (Characters which are in this set are removed and vice versa)
* 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.
*/
complement_char(ch: char): void;
/**
* Complement an inclusive range of characters from the set
* (Characters which are in this set are removed and vice versa)
* 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.
*/
complement_inclusive_range(start: char, end: char): void;
/**
* 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 {@link https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html#method.complement_set Rust documentation for `complement_set`} for more information.
*/
complement_set(data: ICU4XCodePointSetData): void;
}