tor-browser

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

WindowsParser.d.ts (1297B)


      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 { pointer, codepoint } from "./diplomat-runtime.d.ts";
      6 
      7 
      8 /**
      9 * A mapper between Windows time zone identifiers and BCP-47 time zone identifiers.
     10 *
     11 * This mapper supports two-way mapping, but it is optimized for the case of Windows to BCP-47.
     12 * It also supports normalizing and canonicalizing the Windows strings.
     13 *
     14 * See the [Rust documentation for `WindowsParser`](https://docs.rs/icu/latest/icu/time/zone/windows/struct.WindowsParser.html) for more information.
     15 */
     16 
     17 
     18 export class WindowsParser {
     19    get ffiValue(): pointer;
     20 
     21 
     22    /**
     23     * Create a new [`WindowsParser`] using a particular data source
     24     *
     25     * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/time/zone/windows/struct.WindowsParser.html#method.new) for more information.
     26     */
     27    static createWithProvider(provider: DataProvider): WindowsParser;
     28 
     29    /**
     30     * See the [Rust documentation for `parse`](https://docs.rs/icu/latest/icu/time/zone/windows/struct.WindowsParserBorrowed.html#method.parse) for more information.
     31     */
     32    parse(value: string, region: string): TimeZone | null;
     33 
     34    constructor();
     35 }