Debian Codegraph @

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

raw
1 import { char } from "./diplomat-runtime"
2 import { FFIError } from "./diplomat-runtime"
3 import { ICU4XDataProvider } from "./ICU4XDataProvider";
4 import { ICU4XError } from "./ICU4XError";
5
6 /**
7
8 * The raw canonical composition operation.
9
10 * Callers should generally use ICU4XComposingNormalizer unless they specifically need raw composition operations
11
12 * See the {@link https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html Rust documentation for `CanonicalComposition`} for more information.
13 */
14 export class ICU4XCanonicalComposition {
15
16 /**
17
18 * Construct a new ICU4XCanonicalComposition instance for NFC
19
20 * See the {@link https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html#method.new Rust documentation for `new`} for more information.
21 * @throws {@link FFIError}<{@link ICU4XError}>
22 */
23 static create(provider: ICU4XDataProvider): ICU4XCanonicalComposition | never;
24
25 /**
26
27 * Performs canonical composition (including Hangul) on a pair of characters or returns NUL if these characters don’t compose. Composition exclusions are taken into account.
28
29 * See the {@link https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html#method.compose Rust documentation for `compose`} for more information.
30 */
31 compose(starter: char, second: char): char;
32 }