tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

CanonicalDecomposition.d.ts (1389B)


      1 // generated by diplomat-tool
      2 import type { DataError } from "./DataError"
      3 import type { DataProvider } from "./DataProvider"
      4 import type { Decomposed } from "./Decomposed"
      5 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      6 
      7 
      8 /**
      9 * The raw (non-recursive) canonical decomposition operation.
     10 *
     11 * Callers should generally use DecomposingNormalizer unless they specifically need raw composition operations
     12 *
     13 * See the [Rust documentation for `CanonicalDecomposition`](https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalDecomposition.html) for more information.
     14 */
     15 
     16 
     17 export class CanonicalDecomposition {
     18    get ffiValue(): pointer;
     19 
     20 
     21    /**
     22     * Construct a new CanonicalDecomposition instance for NFC using a particular data source.
     23     *
     24     * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalDecomposition.html#method.new) for more information.
     25     */
     26    static createWithProvider(provider: DataProvider): CanonicalDecomposition;
     27 
     28    /**
     29     * Performs non-recursive canonical decomposition (including for Hangul).
     30     *
     31     * See the [Rust documentation for `decompose`](https://docs.rs/icu/latest/icu/normalizer/properties/struct.CanonicalDecompositionBorrowed.html#method.decompose) for more information.
     32     */
     33    decompose(c: codepoint): Decomposed;
     34 
     35    constructor();
     36 }