Debian Codegraph @

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

raw
1 import { FFIError } from "./diplomat-runtime"
2 import { ICU4XDataProvider } from "./ICU4XDataProvider";
3 import { ICU4XError } from "./ICU4XError";
4 import { ICU4XLocale } from "./ICU4XLocale";
5 import { ICU4XTitlecaseOptionsV1 } from "./ICU4XTitlecaseOptionsV1";
6
7 /**
8
9 * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.TitlecaseMapper.html Rust documentation for `TitlecaseMapper`} for more information.
10 */
11 export class ICU4XTitlecaseMapper {
12
13 /**
14
15 * Construct a new `ICU4XTitlecaseMapper` instance
16
17 * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.TitlecaseMapper.html#method.new Rust documentation for `new`} for more information.
18 * @throws {@link FFIError}<{@link ICU4XError}>
19 */
20 static create(provider: ICU4XDataProvider): ICU4XTitlecaseMapper | never;
21
22 /**
23
24 * Returns the full titlecase mapping of the given string
25
26 * The `v1` refers to the version of the options struct, which may change as we add more options
27
28 * See the {@link https://docs.rs/icu/latest/icu/casemap/struct.TitlecaseMapper.html#method.titlecase_segment Rust documentation for `titlecase_segment`} for more information.
29 * @throws {@link FFIError}<{@link ICU4XError}>
30 */
31 titlecase_segment_v1(s: string, locale: ICU4XLocale, options: ICU4XTitlecaseOptionsV1): string | never;
32 }