tor-browser

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

IanaParser.d.ts (1500B)


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