tor-browser

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

CodePointMapData16.d.ts (3038B)


      1 // generated by diplomat-tool
      2 import type { CodePointRangeIterator } from "./CodePointRangeIterator"
      3 import type { CodePointSetData } from "./CodePointSetData"
      4 import type { DataError } from "./DataError"
      5 import type { DataProvider } from "./DataProvider"
      6 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      7 
      8 
      9 /**
     10 * An ICU4X Unicode Map Property object, capable of querying whether a code point (key) to obtain the Unicode property value, for a specific Unicode property.
     11 *
     12 * For properties whose values fit into 16 bits.
     13 *
     14 * See the [Rust documentation for `properties`](https://docs.rs/icu/latest/icu/properties/index.html) for more information.
     15 *
     16 * See the [Rust documentation for `CodePointMapData`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapData.html) for more information.
     17 *
     18 * See the [Rust documentation for `CodePointMapDataBorrowed`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html) for more information.
     19 */
     20 
     21 
     22 export class CodePointMapData16 {
     23    get ffiValue(): pointer;
     24 
     25 
     26    /**
     27     * Gets the value for a code point.
     28     *
     29     * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html#method.get) for more information.
     30     */
     31    get(cp: codepoint): number;
     32 
     33    /**
     34     * Produces an iterator over ranges of code points that map to `value`
     35     *
     36     * See the [Rust documentation for `iter_ranges_for_value`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html#method.iter_ranges_for_value) for more information.
     37     */
     38    iterRangesForValue(value: number): CodePointRangeIterator;
     39 
     40    /**
     41     * Produces an iterator over ranges of code points that do not map to `value`
     42     *
     43     * See the [Rust documentation for `iter_ranges_for_value_complemented`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html#method.iter_ranges_for_value_complemented) for more information.
     44     */
     45    iterRangesForValueComplemented(value: number): CodePointRangeIterator;
     46 
     47    /**
     48     * Gets a [`CodePointSetData`] representing all entries in this map that map to the given value
     49     *
     50     * See the [Rust documentation for `get_set_for_value`](https://docs.rs/icu/latest/icu/properties/struct.CodePointMapDataBorrowed.html#method.get_set_for_value) for more information.
     51     */
     52    getSetForValue(value: number): CodePointSetData;
     53 
     54    /**
     55     * Create a map for the `Script` property, using compiled data.
     56     *
     57     * See the [Rust documentation for `Script`](https://docs.rs/icu/latest/icu/properties/props/struct.Script.html) for more information.
     58     */
     59    static createScript(): CodePointMapData16;
     60 
     61    /**
     62     * Create a map for the `Script` property, using a particular data source.
     63     *
     64     * See the [Rust documentation for `Script`](https://docs.rs/icu/latest/icu/properties/props/struct.Script.html) for more information.
     65     */
     66    static createScriptWithProvider(provider: DataProvider): CodePointMapData16;
     67 }