LocaleDirectionality.d.ts (2265B)
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 { LocaleDirection } from "./LocaleDirection" 6 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 7 8 9 /** 10 * See the [Rust documentation for `LocaleDirectionality`](https://docs.rs/icu/latest/icu/locale/struct.LocaleDirectionality.html) for more information. 11 */ 12 13 14 export class LocaleDirectionality { 15 get ffiValue(): pointer; 16 17 18 /** 19 * Construct a new LocaleDirectionality instance using a particular data source. 20 * 21 * See the [Rust documentation for `new_common`](https://docs.rs/icu/latest/icu/locale/struct.LocaleDirectionality.html#method.new_common) for more information. 22 */ 23 static createCommonWithProvider(provider: DataProvider): LocaleDirectionality; 24 25 /** 26 * Construct a new LocaleDirectionality instance using compiled data. 27 * 28 * See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleDirectionality.html#method.new_extended) for more information. 29 */ 30 static createExtended(): LocaleDirectionality; 31 32 /** 33 * Construct a new LocaleDirectionality instance using a particular data source. 34 * 35 * See the [Rust documentation for `new_extended`](https://docs.rs/icu/latest/icu/locale/struct.LocaleDirectionality.html#method.new_extended) for more information. 36 */ 37 static createExtendedWithProvider(provider: DataProvider): LocaleDirectionality; 38 39 /** 40 * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/locale/struct.LocaleDirectionality.html#method.get) for more information. 41 */ 42 get(locale: Locale): LocaleDirection; 43 44 /** 45 * See the [Rust documentation for `is_left_to_right`](https://docs.rs/icu/latest/icu/locale/struct.LocaleDirectionality.html#method.is_left_to_right) for more information. 46 */ 47 isLeftToRight(locale: Locale): boolean; 48 49 /** 50 * See the [Rust documentation for `is_right_to_left`](https://docs.rs/icu/latest/icu/locale/struct.LocaleDirectionality.html#method.is_right_to_left) for more information. 51 */ 52 isRightToLeft(locale: Locale): boolean; 53 54 constructor(); 55 }