| 1 |
import { FFIError } from "./diplomat-runtime" |
| 2 |
import { ICU4XDataProvider } from "./ICU4XDataProvider"; |
| 3 |
import { ICU4XError } from "./ICU4XError"; |
| 4 |
import { ICU4XLocale } from "./ICU4XLocale"; |
| 5 |
import { ICU4XTransformResult } from "./ICU4XTransformResult"; |
| 6 |
|
| 7 |
/** |
| 8 |
|
| 9 |
* A locale expander. |
| 10 |
|
| 11 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html Rust documentation for `LocaleExpander`} for more information. |
| 12 |
*/ |
| 13 |
export class ICU4XLocaleExpander { |
| 14 |
|
| 15 |
/** |
| 16 |
|
| 17 |
* Create a new {@link ICU4XLocaleExpander `ICU4XLocaleExpander`}. |
| 18 |
|
| 19 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.new Rust documentation for `new`} for more information. |
| 20 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 21 |
*/ |
| 22 |
static create(provider: ICU4XDataProvider): ICU4XLocaleExpander | never; |
| 23 |
|
| 24 |
/** |
| 25 |
|
| 26 |
* Create a new {@link ICU4XLocaleExpander `ICU4XLocaleExpander`} with extended data. |
| 27 |
|
| 28 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.new_extended Rust documentation for `new_extended`} for more information. |
| 29 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 30 |
*/ |
| 31 |
static create_extended(provider: ICU4XDataProvider): ICU4XLocaleExpander | never; |
| 32 |
|
| 33 |
/** |
| 34 |
|
| 35 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.maximize Rust documentation for `maximize`} for more information. |
| 36 |
*/ |
| 37 |
maximize(locale: ICU4XLocale): ICU4XTransformResult; |
| 38 |
|
| 39 |
/** |
| 40 |
|
| 41 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.minimize Rust documentation for `minimize`} for more information. |
| 42 |
*/ |
| 43 |
minimize(locale: ICU4XLocale): ICU4XTransformResult; |
| 44 |
|
| 45 |
/** |
| 46 |
|
| 47 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.minimize_favor_script Rust documentation for `minimize_favor_script`} for more information. |
| 48 |
*/ |
| 49 |
minimize_favor_script(locale: ICU4XLocale): ICU4XTransformResult; |
| 50 |
} |