Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XIanaToBcp47Mapper.d.ts

raw
1 import { FFIError } from "./diplomat-runtime"
2 import { ICU4XDataProvider } from "./ICU4XDataProvider";
3 import { ICU4XError } from "./ICU4XError";
4
5 /**
6
7 * An object capable of mapping from an IANA time zone ID to a BCP-47 ID.
8
9 * This can be used via `try_set_iana_time_zone_id()` on {@link crate::timezone::ffi::ICU4XCustomTimeZone `ICU4XCustomTimeZone`}.
10
11 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.IanaToBcp47Mapper.html Rust documentation for `IanaToBcp47Mapper`} for more information.
12 */
13 export class ICU4XIanaToBcp47Mapper {
14
15 /**
16
17 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.IanaToBcp47Mapper.html#method.new Rust documentation for `new`} for more information.
18 * @throws {@link FFIError}<{@link ICU4XError}>
19 */
20 static create(provider: ICU4XDataProvider): ICU4XIanaToBcp47Mapper | never;
21
22 /**
23
24 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.IanaToBcp47MapperBorrowed.html#method.get Rust documentation for `get`} for more information.
25
26 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.IanaBcp47RoundTripMapperBorrowed.html#method.iana_to_bcp47 Rust documentation for `iana_to_bcp47`} for more information.
27 * @throws {@link FFIError}<{@link ICU4XError}>
28 */
29 get(value: string): string | never;
30 }