tor-browser

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

WordBreak.d.ts (2684B)


      1 // generated by diplomat-tool
      2 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      3 
      4 
      5 /**
      6 * See the [Rust documentation for `WordBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.WordBreak.html) for more information.
      7 */
      8 
      9 
     10 export class WordBreak {
     11 
     12    static fromValue(value: WordBreak | string): WordBreak;
     13 
     14    get value(): string;
     15 
     16    get ffiValue(): number;
     17 
     18    static Other : WordBreak;
     19    static ALetter : WordBreak;
     20    static Format : WordBreak;
     21    static Katakana : WordBreak;
     22    static MidLetter : WordBreak;
     23    static MidNum : WordBreak;
     24    static Numeric : WordBreak;
     25    static ExtendNumLet : WordBreak;
     26    static Cr : WordBreak;
     27    static Extend : WordBreak;
     28    static Lf : WordBreak;
     29    static MidNumLet : WordBreak;
     30    static Newline : WordBreak;
     31    static RegionalIndicator : WordBreak;
     32    static HebrewLetter : WordBreak;
     33    static SingleQuote : WordBreak;
     34    static DoubleQuote : WordBreak;
     35    static EBase : WordBreak;
     36    static EBaseGaz : WordBreak;
     37    static EModifier : WordBreak;
     38    static GlueAfterZwj : WordBreak;
     39    static Zwj : WordBreak;
     40    static WSegSpace : WordBreak;
     41 
     42 
     43    /**
     44     * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.EnumeratedProperty.html#tymethod.for_char) for more information.
     45     */
     46    static forChar(ch: codepoint): WordBreak;
     47 
     48    /**
     49     * Get the "long" name of this property value (returns empty if property value is unknown)
     50     *
     51     * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/properties/struct.PropertyNamesLongBorrowed.html#method.get) for more information.
     52     */
     53    longName(): string | null;
     54 
     55    /**
     56     * Get the "short" name of this property value (returns empty if property value is unknown)
     57     *
     58     * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/properties/struct.PropertyNamesShortBorrowed.html#method.get) for more information.
     59     */
     60    shortName(): string | null;
     61 
     62    /**
     63     * Convert to an integer value usable with ICU4C and CodePointMapData
     64     *
     65     * See the [Rust documentation for `to_icu4c_value`](https://docs.rs/icu/latest/icu/properties/props/struct.WordBreak.html#method.to_icu4c_value) for more information.
     66     */
     67    toIntegerValue(): number;
     68 
     69    /**
     70     * Convert from an integer value from ICU4C or CodePointMapData
     71     *
     72     * See the [Rust documentation for `from_icu4c_value`](https://docs.rs/icu/latest/icu/properties/props/struct.WordBreak.html#method.from_icu4c_value) for more information.
     73     */
     74    static fromIntegerValue(other: number): WordBreak | null;
     75 
     76    constructor(value: WordBreak | string );
     77 }