tor-browser

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

LocaleDisplayNamesFormatter.d.ts (1460B)


      1 // generated by diplomat-tool
      2 import type { DataError } from "./DataError"
      3 import type { DataProvider } from "./DataProvider"
      4 import type { DisplayNamesOptions } from "./DisplayNamesOptions"
      5 import type { DisplayNamesOptions_obj } from "./DisplayNamesOptions"
      6 import type { Locale } from "./Locale"
      7 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      8 
      9 
     10 /**
     11 * See the [Rust documentation for `LocaleDisplayNamesFormatter`](https://docs.rs/icu/latest/icu/experimental/displaynames/struct.LocaleDisplayNamesFormatter.html) for more information.
     12 */
     13 
     14 
     15 export class LocaleDisplayNamesFormatter {
     16    get ffiValue(): pointer;
     17 
     18 
     19    /**
     20     * Creates a new `LocaleDisplayNamesFormatter` from locale data and an options bag using a particular data source.
     21     *
     22     * See the [Rust documentation for `try_new`](https://docs.rs/icu/latest/icu/experimental/displaynames/struct.LocaleDisplayNamesFormatter.html#method.try_new) for more information.
     23     */
     24    static createWithProvider(provider: DataProvider, locale: Locale, options: DisplayNamesOptions_obj): LocaleDisplayNamesFormatter;
     25 
     26    /**
     27     * Returns the locale-specific display name of a locale.
     28     *
     29     * See the [Rust documentation for `of`](https://docs.rs/icu/latest/icu/experimental/displaynames/struct.LocaleDisplayNamesFormatter.html#method.of) for more information.
     30     */
     31    of(locale: Locale): string;
     32 
     33    constructor(locale: Locale, options: DisplayNamesOptions_obj);
     34 }