tor-browser

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

LocaleCanonicalizer.d.ts (1785B)


      1 // generated by diplomat-tool
      2 import type { DataError } from "./DataError"
      3 import type { DataProvider } from "./DataProvider"
      4 import type { Locale } from "./Locale"
      5 import type { TransformResult } from "./TransformResult"
      6 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      7 
      8 
      9 /**
     10 * A locale canonicalizer.
     11 *
     12 * See the [Rust documentation for `LocaleCanonicalizer`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html) for more information.
     13 */
     14 
     15 
     16 export class LocaleCanonicalizer {
     17    get ffiValue(): pointer;
     18 
     19 
     20    /**
     21     * Create a new [`LocaleCanonicalizer`].
     22     *
     23     * See the [Rust documentation for `new_common`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.new_common) for more information.
     24     */
     25    static createCommonWithProvider(provider: DataProvider): LocaleCanonicalizer;
     26 
     27    /**
     28     * Create a new [`LocaleCanonicalizer`] with extended data using compiled data.
     29     *
     30     * See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.new_extended) for more information.
     31     */
     32    static createExtended(): LocaleCanonicalizer;
     33 
     34    /**
     35     * Create a new [`LocaleCanonicalizer`] with extended data.
     36     *
     37     * See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.new_extended) for more information.
     38     */
     39    static createExtendedWithProvider(provider: DataProvider): LocaleCanonicalizer;
     40 
     41    /**
     42     * See the [Rust documentation for `canonicalize`](https://docs.rs/icu/latest/icu/locale/struct.LocaleCanonicalizer.html#method.canonicalize) for more information.
     43     */
     44    canonicalize(locale: Locale): TransformResult;
     45 
     46    constructor();
     47 }