diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts')
-rw-r--r-- | intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts b/intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts new file mode 100644 index 0000000000..61af474e1f --- /dev/null +++ b/intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts @@ -0,0 +1,39 @@ +import { char } from "./diplomat-runtime" +import { FFIError } from "./diplomat-runtime" +import { ICU4XCodePointSetBuilder } from "./ICU4XCodePointSetBuilder"; +import { ICU4XDataProvider } from "./ICU4XDataProvider"; +import { ICU4XError } from "./ICU4XError"; + +/** + + * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html Rust documentation for `CaseMapCloser`} for more information. + */ +export class ICU4XCaseMapCloser { + + /** + + * Construct a new ICU4XCaseMapper instance + + * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.CaseMapCloser.html#method.new Rust documentation for `new`} for more information. + * @throws {@link FFIError}<{@link ICU4XError}> + */ + static create(provider: ICU4XDataProvider): ICU4XCaseMapCloser | never; + + /** + + * Adds all simple case mappings and the full case folding for `c` to `builder`. Also adds special case closure mappings. + + * 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. + */ + add_case_closure_to(c: char, builder: ICU4XCodePointSetBuilder): void; + + /** + + * Finds all characters and strings which may casemap to `s` as their full case folding string and adds them to the set. + + * Returns true if the string was found + + * 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. + */ + add_string_case_closure_to(s: string, builder: ICU4XCodePointSetBuilder): boolean; +} |