tor-browser

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

GeneralCategory.d.ts (3496B)


      1 // generated by diplomat-tool
      2 import type { GeneralCategoryGroup } from "./GeneralCategoryGroup"
      3 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      4 
      5 
      6 /**
      7 * See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/latest/icu/properties/props/enum.GeneralCategory.html) for more information.
      8 */
      9 
     10 
     11 export class GeneralCategory {
     12 
     13    static fromValue(value: GeneralCategory | string): GeneralCategory;
     14 
     15    get value(): string;
     16 
     17    get ffiValue(): number;
     18 
     19    static Unassigned : GeneralCategory;
     20    static UppercaseLetter : GeneralCategory;
     21    static LowercaseLetter : GeneralCategory;
     22    static TitlecaseLetter : GeneralCategory;
     23    static ModifierLetter : GeneralCategory;
     24    static OtherLetter : GeneralCategory;
     25    static NonspacingMark : GeneralCategory;
     26    static SpacingMark : GeneralCategory;
     27    static EnclosingMark : GeneralCategory;
     28    static DecimalNumber : GeneralCategory;
     29    static LetterNumber : GeneralCategory;
     30    static OtherNumber : GeneralCategory;
     31    static SpaceSeparator : GeneralCategory;
     32    static LineSeparator : GeneralCategory;
     33    static ParagraphSeparator : GeneralCategory;
     34    static Control : GeneralCategory;
     35    static Format : GeneralCategory;
     36    static PrivateUse : GeneralCategory;
     37    static Surrogate : GeneralCategory;
     38    static DashPunctuation : GeneralCategory;
     39    static OpenPunctuation : GeneralCategory;
     40    static ClosePunctuation : GeneralCategory;
     41    static ConnectorPunctuation : GeneralCategory;
     42    static InitialPunctuation : GeneralCategory;
     43    static FinalPunctuation : GeneralCategory;
     44    static OtherPunctuation : GeneralCategory;
     45    static MathSymbol : GeneralCategory;
     46    static CurrencySymbol : GeneralCategory;
     47    static ModifierSymbol : GeneralCategory;
     48    static OtherSymbol : GeneralCategory;
     49 
     50 
     51    /**
     52     * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.EnumeratedProperty.html#tymethod.for_char) for more information.
     53     */
     54    static forChar(ch: codepoint): GeneralCategory;
     55 
     56    /**
     57     * Convert to an integer using the ICU4C integer mappings for `General_Category`
     58     * Get the "long" name of this property value (returns empty if property value is unknown)
     59     *
     60     * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/properties/struct.PropertyNamesLongBorrowed.html#method.get) for more information.
     61     */
     62    longName(): string | null;
     63 
     64    /**
     65     * Get the "short" name of this property value (returns empty if property value is unknown)
     66     *
     67     * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/properties/struct.PropertyNamesShortBorrowed.html#method.get) for more information.
     68     */
     69    shortName(): string | null;
     70 
     71    /**
     72     * Convert to an integer value usable with ICU4C and CodePointMapData
     73     */
     74    toIntegerValue(): number;
     75 
     76    /**
     77     * Produces a GeneralCategoryGroup mask that can represent a group of general categories
     78     *
     79     * See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html) for more information.
     80     */
     81    toGroup(): GeneralCategoryGroup;
     82 
     83    /**
     84     * Convert from an integer using the ICU4C integer mappings for `General_Category`
     85     * Convert from an integer value from ICU4C or CodePointMapData
     86     */
     87    static fromIntegerValue(other: number): GeneralCategory | null;
     88 
     89    constructor(value: GeneralCategory | string );
     90 }