trisquel-icecat/icecat/intl/icu_capi/bindings/js/ICU4XCanonicalComposition.d.ts
2025-10-06 02:35:48 -06:00

32 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { char } from "./diplomat-runtime"
import { FFIError } from "./diplomat-runtime"
import { ICU4XDataProvider } from "./ICU4XDataProvider";
import { ICU4XError } from "./ICU4XError";
/**
* The raw canonical composition operation.
* Callers should generally use ICU4XComposingNormalizer unless they specifically need raw composition operations
* See the {@link https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html Rust documentation for `CanonicalComposition`} for more information.
*/
export class ICU4XCanonicalComposition {
/**
* Construct a new ICU4XCanonicalComposition instance for NFC
* See the {@link https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html#method.new Rust documentation for `new`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static create(provider: ICU4XDataProvider): ICU4XCanonicalComposition | never;
/**
* Performs canonical composition (including Hangul) on a pair of characters or returns NUL if these characters dont compose. Composition exclusions are taken into account.
* See the {@link https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html#method.compose Rust documentation for `compose`} for more information.
*/
compose(starter: char, second: char): char;
}