Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XComposingNormalizer.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.ComposingNormalizer.html Rust documentation for `ComposingNormalizer`} for more information.
8 */
9 export class ICU4XComposingNormalizer {
10
11 /**
12
13 * Construct a new ICU4XComposingNormalizer instance for NFC
14
15 * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.ComposingNormalizer.html#method.new_nfc Rust documentation for `new_nfc`} for more information.
16 * @throws {@link FFIError}<{@link ICU4XError}>
17 */
18 static create_nfc(provider: ICU4XDataProvider): ICU4XComposingNormalizer | never;
19
20 /**
21
22 * Construct a new ICU4XComposingNormalizer instance for NFKC
23
24 * See the {@link https://docs.rs/icu/latest/icu/normalizer/struct.ComposingNormalizer.html#method.new_nfkc Rust documentation for `new_nfkc`} for more information.
25 * @throws {@link FFIError}<{@link ICU4XError}>
26 */
27 static create_nfkc(provider: ICU4XDataProvider): ICU4XComposingNormalizer | 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.ComposingNormalizer.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.ComposingNormalizer.html#method.is_normalized_utf8 Rust documentation for `is_normalized_utf8`} for more information.
47 */
48 is_normalized(s: string): boolean;
49 }