tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

IanaParserExtended.d.ts (2034B)


      1 // generated by diplomat-tool
      2 import type { DataError } from "./DataError"
      3 import type { DataProvider } from "./DataProvider"
      4 import type { TimeZoneAndCanonicalAndNormalized } from "./TimeZoneAndCanonicalAndNormalized"
      5 import type { TimeZoneAndCanonicalAndNormalizedIterator } from "./TimeZoneAndCanonicalAndNormalizedIterator"
      6 import type { TimeZoneAndCanonicalIterator } from "./TimeZoneAndCanonicalIterator"
      7 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      8 
      9 
     10 /**
     11 * A mapper between IANA time zone identifiers and BCP-47 time zone identifiers.
     12 *
     13 * This mapper supports two-way mapping, but it is optimized for the case of IANA to BCP-47.
     14 * It also supports normalizing and canonicalizing the IANA strings.
     15 *
     16 * See the [Rust documentation for `IanaParserExtended`](https://docs.rs/icu/latest/icu/time/zone/iana/struct.IanaParserExtended.html) for more information.
     17 */
     18 
     19 
     20 export class IanaParserExtended {
     21    get ffiValue(): pointer;
     22 
     23 
     24    /**
     25     * Create a new [`IanaParserExtended`] using a particular data source
     26     *
     27     * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/time/zone/iana/struct.IanaParserExtended.html#method.new) for more information.
     28     */
     29    static createWithProvider(provider: DataProvider): IanaParserExtended;
     30 
     31    /**
     32     * See the [Rust documentation for `parse`](https://docs.rs/icu/latest/icu/time/zone/iana/struct.IanaParserExtendedBorrowed.html#method.parse) for more information.
     33     */
     34    parse(value: string): TimeZoneAndCanonicalAndNormalized;
     35 
     36    /**
     37     * See the [Rust documentation for `iter`](https://docs.rs/icu/latest/icu/time/zone/iana/struct.IanaParserExtendedBorrowed.html#method.iter) for more information.
     38     */
     39    iter(): TimeZoneAndCanonicalIterator;
     40 
     41    /**
     42     * See the [Rust documentation for `iter_all`](https://docs.rs/icu/latest/icu/time/zone/iana/struct.IanaParserExtendedBorrowed.html#method.iter_all) for more information.
     43     */
     44    iterAll(): TimeZoneAndCanonicalAndNormalizedIterator;
     45 
     46    constructor();
     47 }