summaryrefslogtreecommitdiffstats
path: root/intl/icu_capi/js/package/lib/ICU4XDecomposingNormalizer.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'intl/icu_capi/js/package/lib/ICU4XDecomposingNormalizer.d.ts')
-rw-r--r--intl/icu_capi/js/package/lib/ICU4XDecomposingNormalizer.d.ts49
1 files changed, 49 insertions, 0 deletions
diff --git a/intl/icu_capi/js/package/lib/ICU4XDecomposingNormalizer.d.ts b/intl/icu_capi/js/package/lib/ICU4XDecomposingNormalizer.d.ts
new file mode 100644
index 0000000000..d95fcc5273
--- /dev/null
+++ b/intl/icu_capi/js/package/lib/ICU4XDecomposingNormalizer.d.ts
@@ -0,0 +1,49 @@
+import { FFIError } from "./diplomat-runtime"
+import { ICU4XDataProvider } from "./ICU4XDataProvider";
+import { ICU4XError } from "./ICU4XError";
+
+/**
+
+ * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html Rust documentation for `DecomposingNormalizer`} for more information.
+ */
+export class ICU4XDecomposingNormalizer {
+
+ /**
+
+ * Construct a new ICU4XDecomposingNormalizer instance for NFC
+
+ * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html#method.new_nfd Rust documentation for `new_nfd`} for more information.
+ * @throws {@link FFIError}<{@link ICU4XError}>
+ */
+ static create_nfd(provider: ICU4XDataProvider): ICU4XDecomposingNormalizer | never;
+
+ /**
+
+ * Construct a new ICU4XDecomposingNormalizer instance for NFKC
+
+ * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html#method.new_nfkd Rust documentation for `new_nfkd`} for more information.
+ * @throws {@link FFIError}<{@link ICU4XError}>
+ */
+ static create_nfkd(provider: ICU4XDataProvider): ICU4XDecomposingNormalizer | never;
+
+ /**
+
+ * Normalize a (potentially ill-formed) UTF8 string
+
+ * Errors are mapped to REPLACEMENT CHARACTER
+
+ * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html#method.normalize_utf8 Rust documentation for `normalize_utf8`} for more information.
+ * @throws {@link FFIError}<{@link ICU4XError}>
+ */
+ normalize(s: string): string | never;
+
+ /**
+
+ * Check if a (potentially ill-formed) UTF8 string is normalized
+
+ * Errors are mapped to REPLACEMENT CHARACTER
+
+ * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html#method.is_normalized_utf8 Rust documentation for `is_normalized_utf8`} for more information.
+ */
+ is_normalized(s: string): boolean;
+}