tor-browser

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

GeneralCategoryNameToGroupMapper.d.ts (1904B)


      1 // generated by diplomat-tool
      2 import type { DataError } from "./DataError"
      3 import type { DataProvider } from "./DataProvider"
      4 import type { GeneralCategoryGroup } from "./GeneralCategoryGroup"
      5 import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
      6 
      7 
      8 /**
      9 * A type capable of looking up General Category Group values from a string name.
     10 *
     11 * See the [Rust documentation for `PropertyParser`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParser.html) for more information.
     12 *
     13 * See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/latest/icu/properties/props/enum.GeneralCategory.html) for more information.
     14 */
     15 
     16 
     17 export class GeneralCategoryNameToGroupMapper {
     18    get ffiValue(): pointer;
     19 
     20 
     21    /**
     22     * Get the mask value matching the given name, using strict matching
     23     *
     24     * Returns 0 if the name is unknown for this property
     25     *
     26     * See the [Rust documentation for `get_strict`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParserBorrowed.html#method.get_strict) for more information.
     27     */
     28    getStrict(name: string): GeneralCategoryGroup;
     29 
     30    /**
     31     * Get the mask value matching the given name, using loose matching
     32     *
     33     * Returns 0 if the name is unknown for this property
     34     *
     35     * See the [Rust documentation for `get_loose`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParserBorrowed.html#method.get_loose) for more information.
     36     */
     37    getLoose(name: string): GeneralCategoryGroup;
     38 
     39    /**
     40     * Create a name-to-mask mapper for the `General_Category` property, using a particular data source.
     41     *
     42     * See the [Rust documentation for `GeneralCategoryGroup`](https://docs.rs/icu/latest/icu/properties/props/struct.GeneralCategoryGroup.html) for more information.
     43     */
     44    static createWithProvider(provider: DataProvider): GeneralCategoryNameToGroupMapper;
     45 
     46    constructor();
     47 }