tor-browser

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

LocaleExpander.d.ts (2240B)


      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 expander.
     11 *
     12 * See the [Rust documentation for `LocaleExpander`](https://docs.rs/icu/latest/icu/locale/struct.LocaleExpander.html) for more information.
     13 */
     14 
     15 
     16 export class LocaleExpander {
     17    get ffiValue(): pointer;
     18 
     19 
     20    /**
     21     * Create a new [`LocaleExpander`] using a new_common data source.
     22     *
     23     * See the [Rust documentation for `new_common`](https://docs.rs/icu/latest/icu/locale/struct.LocaleExpander.html#method.new_common) for more information.
     24     */
     25    static createCommonWithProvider(provider: DataProvider): LocaleExpander;
     26 
     27    /**
     28     * Create a new [`LocaleExpander`] with extended data using compiled data.
     29     *
     30     * See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleExpander.html#method.new_extended) for more information.
     31     */
     32    static createExtended(): LocaleExpander;
     33 
     34    /**
     35     * Create a new [`LocaleExpander`] with extended data using a particular data source.
     36     *
     37     * See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleExpander.html#method.new_extended) for more information.
     38     */
     39    static createExtendedWithProvider(provider: DataProvider): LocaleExpander;
     40 
     41    /**
     42     * See the [Rust documentation for `maximize`](https://docs.rs/icu/latest/icu/locale/struct.LocaleExpander.html#method.maximize) for more information.
     43     */
     44    maximize(locale: Locale): TransformResult;
     45 
     46    /**
     47     * See the [Rust documentation for `minimize`](https://docs.rs/icu/latest/icu/locale/struct.LocaleExpander.html#method.minimize) for more information.
     48     */
     49    minimize(locale: Locale): TransformResult;
     50 
     51    /**
     52     * See the [Rust documentation for `minimize_favor_script`](https://docs.rs/icu/latest/icu/locale/struct.LocaleExpander.html#method.minimize_favor_script) for more information.
     53     */
     54    minimizeFavorScript(locale: Locale): TransformResult;
     55 
     56    constructor();
     57 }