Debian Codegraph @

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

raw
1 import { FFIError } from "./diplomat-runtime"
2 import { ICU4XDataProvider } from "./ICU4XDataProvider";
3 import { ICU4XError } from "./ICU4XError";
4
5 /**
6
7 * A mapper between IANA time zone identifiers and BCP-47 time zone identifiers.
8
9 * This mapper supports two-way mapping, but it is optimized for the case of IANA to BCP-47. It also supports normalizing and canonicalizing the IANA strings.
10
11 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.TimeZoneIdMapperWithFastCanonicalization.html Rust documentation for `TimeZoneIdMapperWithFastCanonicalization`} for more information.
12 */
13 export class ICU4XTimeZoneIdMapperWithFastCanonicalization {
14
15 /**
16
17 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.TimeZoneIdMapperWithFastCanonicalization.html#method.new Rust documentation for `new`} for more information.
18 * @throws {@link FFIError}<{@link ICU4XError}>
19 */
20 static create(provider: ICU4XDataProvider): ICU4XTimeZoneIdMapperWithFastCanonicalization | never;
21
22 /**
23
24 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.TimeZoneIdMapperWithFastCanonicalizationBorrowed.html#method.canonicalize_iana Rust documentation for `canonicalize_iana`} for more information.
25 * @throws {@link FFIError}<{@link ICU4XError}>
26 */
27 canonicalize_iana(value: string): string | never;
28
29 /**
30
31 * See the {@link https://docs.rs/icu/latest/icu/timezone/struct.TimeZoneIdMapperWithFastCanonicalizationBorrowed.html#method.canonical_iana_from_bcp47 Rust documentation for `canonical_iana_from_bcp47`} for more information.
32 * @throws {@link FFIError}<{@link ICU4XError}>
33 */
34 canonical_iana_from_bcp47(value: string): string | never;
35 }