Source code
Revision control
Copy as Markdown
Other Tools
// generated by diplomat-tool
import type { DataError } from "./DataError"
import type { DataProvider } from "./DataProvider"
import type { Locale } from "./Locale"
import type { TransformResult } from "./TransformResult"
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/**
* A locale canonicalizer.
*
* See the [Rust documentation for `LocaleCanonicalizer`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html) for more information.
*/
export class LocaleCanonicalizer {
get ffiValue(): pointer;
/**
* Create a new [`LocaleCanonicalizer`].
*
* See the [Rust documentation for `new_common`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.new_common) for more information.
*/
static createCommonWithProvider(provider: DataProvider): LocaleCanonicalizer;
/**
* Create a new [`LocaleCanonicalizer`] with extended data using compiled data.
*
* See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.new_extended) for more information.
*/
static createExtended(): LocaleCanonicalizer;
/**
* Create a new [`LocaleCanonicalizer`] with extended data.
*
* See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.new_extended) for more information.
*/
static createExtendedWithProvider(provider: DataProvider): LocaleCanonicalizer;
/**
* See the [Rust documentation for `canonicalize`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.canonicalize) for more information.
*/
canonicalize(locale: Locale): TransformResult;
constructor();
}