tor-browser

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

ScriptWithExtensionsBorrowed.d.ts (2046B)


      1 // generated by diplomat-tool
      2 import type { CodePointSetData } from "./CodePointSetData"
      3 import type { ScriptExtensionsSet } from "./ScriptExtensionsSet"
      4 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      5 
      6 
      7 /**
      8 * A slightly faster ScriptWithExtensions object
      9 *
     10 * See the [Rust documentation for `ScriptWithExtensionsBorrowed`](https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html) for more information.
     11 */
     12 
     13 
     14 export class ScriptWithExtensionsBorrowed {
     15    get ffiValue(): pointer;
     16 
     17 
     18    /**
     19     * Get the Script property value for a code point
     20     * Get the Script property value for a code point
     21     *
     22     * See the [Rust documentation for `get_script_val`](https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_val) for more information.
     23     */
     24    getScriptVal(ch: codepoint): number;
     25 
     26    /**
     27     * Get the Script property value for a code point
     28     *
     29     * See the [Rust documentation for `get_script_extensions_val`](https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_extensions_val) for more information.
     30     */
     31    getScriptExtensionsVal(ch: codepoint): ScriptExtensionsSet;
     32 
     33    /**
     34     * Check if the Script_Extensions property of the given code point covers the given script
     35     *
     36     * See the [Rust documentation for `has_script`](https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.has_script) for more information.
     37     */
     38    hasScript(ch: codepoint, script: number): boolean;
     39 
     40    /**
     41     * Build the CodePointSetData corresponding to a codepoints matching a particular script
     42     * in their Script_Extensions
     43     *
     44     * See the [Rust documentation for `get_script_extensions_set`](https://docs.rs/icu/latest/icu/properties/script/struct.ScriptWithExtensionsBorrowed.html#method.get_script_extensions_set) for more information.
     45     */
     46    getScriptExtensionsSet(script: number): CodePointSetData;
     47 }