Debian Codegraph @

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

raw
1 import { char } from "./diplomat-runtime"
2 import { FFIError } from "./diplomat-runtime"
3 import { ICU4XCodePointSetBuilder } from "./ICU4XCodePointSetBuilder";
4 import { ICU4XDataProvider } from "./ICU4XDataProvider";
5 import { ICU4XError } from "./ICU4XError";
6
7 /**
8
9 * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html Rust documentation for `CaseMapCloser`} for more information.
10 */
11 export class ICU4XCaseMapCloser {
12
13 /**
14
15 * Construct a new ICU4XCaseMapper instance
16
17 * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html#method.new Rust documentation for `new`} for more information.
18 * @throws {@link FFIError}<{@link ICU4XError}>
19 */
20 static create(provider: ICU4XDataProvider): ICU4XCaseMapCloser | never;
21
22 /**
23
24 * Adds all simple case mappings and the full case folding for `c` to `builder`. Also adds special case closure mappings.
25
26 * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html#method.add_case_closure_to Rust documentation for `add_case_closure_to`} for more information.
27 */
28 add_case_closure_to(c: char, builder: ICU4XCodePointSetBuilder): void;
29
30 /**
31
32 * Finds all characters and strings which may casemap to `s` as their full case folding string and adds them to the set.
33
34 * Returns true if the string was found
35
36 * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html#method.add_string_case_closure_to Rust documentation for `add_string_case_closure_to`} for more information.
37 */
38 add_string_case_closure_to(s: string, builder: ICU4XCodePointSetBuilder): boolean;
39 }