CaseMapCloser.d.ts (1705B)
1 // generated by diplomat-tool 2 import type { CodePointSetBuilder } from "./CodePointSetBuilder" 3 import type { DataError } from "./DataError" 4 import type { DataProvider } from "./DataProvider" 5 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 6 7 8 /** 9 * See the [Rust documentation for `CaseMapCloser`](https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html) for more information. 10 */ 11 12 13 export class CaseMapCloser { 14 get ffiValue(): pointer; 15 16 17 /** 18 * Construct a new CaseMapCloser instance using a particular data source. 19 * 20 * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html#method.new) for more information. 21 */ 22 static createWithProvider(provider: DataProvider): CaseMapCloser; 23 24 /** 25 * Adds all simple case mappings and the full case folding for `c` to `builder`. 26 * Also adds special case closure mappings. 27 * 28 * See the [Rust documentation for `add_case_closure_to`](https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloserBorrowed.html#method.add_case_closure_to) for more information. 29 */ 30 addCaseClosureTo(c: codepoint, builder: CodePointSetBuilder): void; 31 32 /** 33 * Finds all characters and strings which may casemap to `s` as their full case folding string 34 * and adds them to the set. 35 * 36 * Returns true if the string was found 37 * 38 * See the [Rust documentation for `add_string_case_closure_to`](https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloserBorrowed.html#method.add_string_case_closure_to) for more information. 39 */ 40 addStringCaseClosureTo(s: string, builder: CodePointSetBuilder): boolean; 41 42 constructor(); 43 }