Source code

Revision control

Copy as Markdown

Other Tools

import { FFIError } from "./diplomat-runtime"
import { ICU4XDataProvider } from "./ICU4XDataProvider";
import { ICU4XError } from "./ICU4XError";
import { ICU4XLocale } from "./ICU4XLocale";
import { ICU4XTransformResult } from "./ICU4XTransformResult";
/**
* A locale expander.
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html Rust documentation for `LocaleExpander`} for more information.
*/
export class ICU4XLocaleExpander {
/**
* Create a new {@link ICU4XLocaleExpander `ICU4XLocaleExpander`}.
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.new Rust documentation for `new`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static create(provider: ICU4XDataProvider): ICU4XLocaleExpander | never;
/**
* Create a new {@link ICU4XLocaleExpander `ICU4XLocaleExpander`} with extended data.
* 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.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static create_extended(provider: ICU4XDataProvider): ICU4XLocaleExpander | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.maximize Rust documentation for `maximize`} for more information.
*/
maximize(locale: ICU4XLocale): ICU4XTransformResult;
/**
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleExpander.html#method.minimize Rust documentation for `minimize`} for more information.
*/
minimize(locale: ICU4XLocale): ICU4XTransformResult;
/**
* 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.
*/
minimize_favor_script(locale: ICU4XLocale): ICU4XTransformResult;
}