CanonicalComposition.d.ts (1435B)
1 // generated by diplomat-tool 2 import type { DataError } from "./DataError" 3 import type { DataProvider } from "./DataProvider" 4 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 5 6 7 /** 8 * The raw canonical composition operation. 9 * 10 * Callers should generally use ComposingNormalizer unless they specifically need raw composition operations 11 * 12 * See the [Rust documentation for `CanonicalComposition`](https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html) for more information. 13 */ 14 15 16 export class CanonicalComposition { 17 get ffiValue(): pointer; 18 19 20 /** 21 * Construct a new CanonicalComposition instance for NFC using a particular data source. 22 * 23 * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalComposition.html#method.new) for more information. 24 */ 25 static createWithProvider(provider: DataProvider): CanonicalComposition; 26 27 /** 28 * Performs canonical composition (including Hangul) on a pair of characters 29 * or returns NUL if these characters don’t compose. Composition exclusions are taken into account. 30 * 31 * See the [Rust documentation for `compose`](https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalCompositionBorrowed.html#method.compose) for more information. 32 */ 33 compose(starter: codepoint, second: codepoint): codepoint; 34 35 constructor(); 36 }