Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XBcp47ToIanaMapper.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 a BCP-47 time zone ID to an IANA ID.
8
9 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.IanaBcp47RoundTripMapper.html Rust documentation for `IanaBcp47RoundTripMapper`} for more information.
10 */
11 export class ICU4XBcp47ToIanaMapper {
12
13 /**
14
15 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.IanaBcp47RoundTripMapper.html#method.new Rust documentation for `new`} for more information.
16 * @throws {@link FFIError}<{@link ICU4XError}>
17 */
18 static create(provider: ICU4XDataProvider): ICU4XBcp47ToIanaMapper | never;
19
20 /**
21
22 * Writes out the canonical IANA time zone ID corresponding to the given BCP-47 ID.
23
24 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.IanaBcp47RoundTripMapperBorrowed.html#method.bcp47_to_iana Rust documentation for `bcp47_to_iana`} for more information.
25 * @throws {@link FFIError}<{@link ICU4XError}>
26 */
27 get(value: string): string | never;
28 }