summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/lib/ICU4XLocaleCanonicalizer.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XLocaleCanonicalizer.d.ts')
-rw-r--r--intl/icu_capi/js/package/lib/ICU4XLocaleCanonicalizer.d.ts40
1 files changed, 40 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XLocaleCanonicalizer.d.ts b/intl/icu_capi/js/package/lib/ICU4XLocaleCanonicalizer.d.ts
new file mode 100644
index 0000000000..2263c73e2a
--- /dev/null
+++ b/intl/icu_capi/js/package/lib/ICU4XLocaleCanonicalizer.d.ts
@@ -0,0 +1,40 @@
+import { FFIError } from "./diplomat-runtime"
+import { ICU4XDataProvider } from "./ICU4XDataProvider";
+import { ICU4XError } from "./ICU4XError";
+import { ICU4XLocale } from "./ICU4XLocale";
+import { ICU4XTransformResult } from "./ICU4XTransformResult";
+
+/**
+
+ * A locale canonicalizer.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleCanonicalizer.html Rust documentation for `LocaleCanonicalizer`} for more information.
+ */
+export class ICU4XLocaleCanonicalizer {
+
+ /**
+
+ * Create a new {@link ICU4XLocaleCanonicalizer `ICU4XLocaleCanonicalizer`}.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleCanonicalizer.html#method.new Rust documentation for `new`} for more information.
+ * @throws {@link FFIError}<{@link ICU4XError}>
+ */
+ static create(provider: ICU4XDataProvider): ICU4XLocaleCanonicalizer | never;
+
+ /**
+
+ * Create a new {@link ICU4XLocaleCanonicalizer `ICU4XLocaleCanonicalizer`} with extended data.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleCanonicalizer.html#method.new_with_expander Rust documentation for `new_with_expander`} for more information.
+ * @throws {@link FFIError}<{@link ICU4XError}>
+ */
+ static create_extended(provider: ICU4XDataProvider): ICU4XLocaleCanonicalizer | never;
+
+ /**
+
+ * FFI version of `LocaleCanonicalizer::canonicalize()`.
+
+ * See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleCanonicalizer.html#method.canonicalize Rust documentation for `canonicalize`} for more information.
+ */
+ canonicalize(locale: ICU4XLocale): ICU4XTransformResult;
+}