From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../js/package/lib/ICU4XCaseMapCloser.d.ts | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts (limited to 'intl/icu_capi/js/package/lib/ICU4XCaseMapCloser.d.ts') 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; +} -- cgit v1.2.3