tor-browser

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

EmojiSetData.d.ts (2149B)


      1 // generated by diplomat-tool
      2 import type { DataError } from "./DataError"
      3 import type { DataProvider } from "./DataProvider"
      4 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      5 
      6 
      7 /**
      8 * An ICU4X Unicode Set Property object, capable of querying whether a code point is contained in a set based on a Unicode property.
      9 *
     10 * See the [Rust documentation for `properties`](https://docs.rs/icu/latest/icu/properties/index.html) for more information.
     11 *
     12 * See the [Rust documentation for `EmojiSetData`](https://docs.rs/icu/latest/icu/properties/struct.EmojiSetData.html) for more information.
     13 *
     14 * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/properties/struct.EmojiSetData.html#method.new) for more information.
     15 *
     16 * See the [Rust documentation for `EmojiSetDataBorrowed`](https://docs.rs/icu/latest/icu/properties/struct.EmojiSetDataBorrowed.html) for more information.
     17 */
     18 
     19 
     20 export class EmojiSetData {
     21    get ffiValue(): pointer;
     22 
     23 
     24    /**
     25     * Checks whether the string is in the set.
     26     *
     27     * See the [Rust documentation for `contains_str`](https://docs.rs/icu/latest/icu/properties/struct.EmojiSetDataBorrowed.html#method.contains_str) for more information.
     28     */
     29    containsStr(s: string): boolean;
     30 
     31    /**
     32     * Checks whether the code point is in the set.
     33     *
     34     * See the [Rust documentation for `contains`](https://docs.rs/icu/latest/icu/properties/struct.EmojiSetDataBorrowed.html#method.contains) for more information.
     35     */
     36    contains(cp: codepoint): boolean;
     37 
     38    /**
     39     * Create a map for the `Basic_Emoji` property, using compiled data.
     40     *
     41     * See the [Rust documentation for `BasicEmoji`](https://docs.rs/icu/latest/icu/properties/props/struct.BasicEmoji.html) for more information.
     42     */
     43    static createBasic(): EmojiSetData;
     44 
     45    /**
     46     * Create a map for the `Basic_Emoji` property, using a particular data source.
     47     *
     48     * See the [Rust documentation for `BasicEmoji`](https://docs.rs/icu/latest/icu/properties/props/struct.BasicEmoji.html) for more information.
     49     */
     50    static createBasicWithProvider(provider: DataProvider): EmojiSetData;
     51 }