Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XDecomposingNormalizer.d.ts

raw
1 import { FFIError } from "./diplomat-runtime"
2 import { ICU4XDataProvider } from "./ICU4XDataProvider";
3 import { ICU4XError } from "./ICU4XError";
4
5 /**
6
7 * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html Rust documentation for `DecomposingNormalizer`} for more information.
8 */
9 export class ICU4XDecomposingNormalizer {
10
11 /**
12
13 * Construct a new ICU4XDecomposingNormalizer instance for NFC
14
15 * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html#method.new_nfd Rust documentation for `new_nfd`} for more information.
16 * @throws {@link FFIError}<{@link ICU4XError}>
17 */
18 static create_nfd(provider: ICU4XDataProvider): ICU4XDecomposingNormalizer | never;
19
20 /**
21
22 * Construct a new ICU4XDecomposingNormalizer instance for NFKC
23
24 * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html#method.new_nfkd Rust documentation for `new_nfkd`} for more information.
25 * @throws {@link FFIError}<{@link ICU4XError}>
26 */
27 static create_nfkd(provider: ICU4XDataProvider): ICU4XDecomposingNormalizer | never;
28
29 /**
30
31 * Normalize a string
32
33 * Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
34
35 * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.DecomposingNormalizer.html#method.normalize_utf8 Rust documentation for `normalize_utf8`} for more information.
36 * @throws {@link FFIError}<{@link ICU4XError}>
37 */
38 normalize(s: string): string | never;
39
40 /**
41
42 * Check if a string is normalized
43
44 * Ill-formed input is treated as if errors had been replaced with REPLACEMENT CHARACTERs according to the WHATWG Encoding Standard.
45
46 * 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.
47 */
48 is_normalized(s: string): boolean;
49 }