RegionDisplayNames.d.ts (1580B)
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 { LocaleParseError } from "./LocaleParseError" 8 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 9 10 11 /** 12 * See the [Rust documentation for `RegionDisplayNames`](https://docs.rs/icu/latest/icu/experimental/displaynames/struct.RegionDisplayNames.html) for more information. 13 */ 14 15 16 export class RegionDisplayNames { 17 get ffiValue(): pointer; 18 19 20 /** 21 * Creates a new `RegionDisplayNames` from locale data and an options bag using a particular data source. 22 * 23 * See the [Rust documentation for `try_new`](https://docs.rs/icu/latest/icu/experimental/displaynames/struct.RegionDisplayNames.html#method.try_new) for more information. 24 */ 25 static createWithProvider(provider: DataProvider, locale: Locale, options: DisplayNamesOptions_obj): RegionDisplayNames; 26 27 /** 28 * Returns the locale specific display name of a region. 29 * Note that the function returns an empty string in case the display name for a given 30 * region code is not found. 31 * 32 * See the [Rust documentation for `of`](https://docs.rs/icu/latest/icu/experimental/displaynames/struct.RegionDisplayNames.html#method.of) for more information. 33 */ 34 of(region: string): string; 35 36 constructor(locale: Locale, options: DisplayNamesOptions_obj); 37 }