| 1 |
import { FFIError } from "./diplomat-runtime" |
| 2 |
import { ICU4XDataProvider } from "./ICU4XDataProvider"; |
| 3 |
import { ICU4XError } from "./ICU4XError"; |
| 4 |
import { ICU4XLocale } from "./ICU4XLocale"; |
| 5 |
import { ICU4XLocaleDirection } from "./ICU4XLocaleDirection"; |
| 6 |
import { ICU4XLocaleExpander } from "./ICU4XLocaleExpander"; |
| 7 |
|
| 8 |
/** |
| 9 |
|
| 10 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html Rust documentation for `LocaleDirectionality`} for more information. |
| 11 |
*/ |
| 12 |
export class ICU4XLocaleDirectionality { |
| 13 |
|
| 14 |
/** |
| 15 |
|
| 16 |
* Construct a new ICU4XLocaleDirectionality instance |
| 17 |
|
| 18 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.new Rust documentation for `new`} for more information. |
| 19 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 20 |
*/ |
| 21 |
static create(provider: ICU4XDataProvider): ICU4XLocaleDirectionality | never; |
| 22 |
|
| 23 |
/** |
| 24 |
|
| 25 |
* Construct a new ICU4XLocaleDirectionality instance with a custom expander |
| 26 |
|
| 27 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.new_with_expander Rust documentation for `new_with_expander`} for more information. |
| 28 |
* @throws {@link FFIError}<{@link ICU4XError}> |
| 29 |
*/ |
| 30 |
static create_with_expander(provider: ICU4XDataProvider, expander: ICU4XLocaleExpander): ICU4XLocaleDirectionality | never; |
| 31 |
|
| 32 |
/** |
| 33 |
|
| 34 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.get Rust documentation for `get`} for more information. |
| 35 |
*/ |
| 36 |
get(locale: ICU4XLocale): ICU4XLocaleDirection; |
| 37 |
|
| 38 |
/** |
| 39 |
|
| 40 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.is_left_to_right Rust documentation for `is_left_to_right`} for more information. |
| 41 |
*/ |
| 42 |
is_left_to_right(locale: ICU4XLocale): boolean; |
| 43 |
|
| 44 |
/** |
| 45 |
|
| 46 |
* See the {@link https://docs.rs/icu/latest/icu/locid_transform/struct.LocaleDirectionality.html#method.is_right_to_left Rust documentation for `is_right_to_left`} for more information. |
| 47 |
*/ |
| 48 |
is_right_to_left(locale: ICU4XLocale): boolean; |
| 49 |
} |