Debian Codegraph @

intl/icu_capi/bindings/js/ICU4XGeneralCategoryNameToMaskMapper.d.ts

raw
1 import { u32 } from "./diplomat-runtime"
2 import { FFIError } from "./diplomat-runtime"
3 import { ICU4XDataProvider } from "./ICU4XDataProvider";
4 import { ICU4XError } from "./ICU4XError";
5
6 /**
7
8 * A type capable of looking up General Category mask values from a string name.
9
10 * See the {@link https://docs.rs/icu/latest/icu/properties/struct.GeneralCategoryGroup.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
11
12 * See the {@link https://docs.rs/icu/latest/icu/properties/names/struct.PropertyValueNameToEnumMapper.html Rust documentation for `PropertyValueNameToEnumMapper`} for more information.
13 */
14 export class ICU4XGeneralCategoryNameToMaskMapper {
15
16 /**
17
18 * Get the mask value matching the given name, using strict matching
19
20 * Returns 0 if the name is unknown for this property
21 */
22 get_strict(name: string): u32;
23
24 /**
25
26 * Get the mask value matching the given name, using loose matching
27
28 * Returns 0 if the name is unknown for this property
29 */
30 get_loose(name: string): u32;
31
32 /**
33
34 * See the {@link https://docs.rs/icu/latest/icu/properties/struct.GeneralCategoryGroup.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
35 * @throws {@link FFIError}<{@link ICU4XError}>
36 */
37 static load(provider: ICU4XDataProvider): ICU4XGeneralCategoryNameToMaskMapper | never;
38 }