Source code

Revision control

Copy as Markdown

Other Tools

// generated by diplomat-tool
import type { CodePointSetData } from "./CodePointSetData"
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/**
* See the [Rust documentation for `CodePointInversionListBuilder`](https://docs.rs/icu/latest/icu/collections/codepointinvlist/struct.CodePointInversionListBuilder.html) for more information.
*/
export class CodePointSetBuilder {
get ffiValue(): pointer;
/**
* Build this into a set
*
* This object is repopulated with an empty builder
*
*/
build(): CodePointSetData;
/**
* Complements this set
*
* (Elements in this set are removed and vice versa)
*
*/
complement(): void;
/**
* Returns whether this set is empty
*
*/
get isEmpty(): boolean;
/**
* Add a single character to the set
*
*/
addChar(ch: codepoint): void;
/**
* Add an inclusive range of characters to the set
*
*/
addInclusiveRange(start: codepoint, end: codepoint): void;
/**
* Add all elements that belong to the provided set to the set
*
*/
addSet(data: CodePointSetData): void;
/**
* Remove a single character to the set
*
*/
removeChar(ch: codepoint): void;
/**
* Remove an inclusive range of characters from the set
*
*/
removeInclusiveRange(start: codepoint, end: codepoint): void;
/**
* Remove all elements that belong to the provided set from the set
*
*/
removeSet(data: CodePointSetData): void;
/**
* Removes all elements from the set except a single character
*
*/
retainChar(ch: codepoint): void;
/**
* Removes all elements from the set except an inclusive range of characters f
*
*/
retainInclusiveRange(start: codepoint, end: codepoint): void;
/**
* Removes all elements from the set except all elements in the provided set
*
*/
retainSet(data: CodePointSetData): void;
/**
* Complement a single character to the set
*
* (Characters which are in this set are removed and vice versa)
*
*/
complementChar(ch: codepoint): void;
/**
* Complement an inclusive range of characters from the set
*
* (Characters which are in this set are removed and vice versa)
*
*/
complementInclusiveRange(start: codepoint, end: codepoint): void;
/**
* Complement all elements that belong to the provided set from the set
*
* (Characters which are in this set are removed and vice versa)
*
*/
complementSet(data: CodePointSetData): void;
constructor();
}