blob: f12131e1e7ce7e0900694b64a436ee79160e12d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
import { i16 } from "./diplomat-runtime"
import { FFIError } from "./diplomat-runtime"
import { ICU4XDataProvider } from "./ICU4XDataProvider";
import { ICU4XError } from "./ICU4XError";
/**
* A type capable of looking up a property value from a string name.
* See the {@link https://docs.rs/icu/latest/icu/properties/names/struct.PropertyValueNameToEnumMapper.html Rust documentation for `PropertyValueNameToEnumMapper`} for more information.
* See the {@link https://docs.rs/icu/latest/icu/properties/names/struct.PropertyValueNameToEnumMapperBorrowed.html Rust documentation for `PropertyValueNameToEnumMapperBorrowed`} for more information.
*/
export class ICU4XPropertyValueNameToEnumMapper {
/**
* Get the property value matching the given name, using strict matching
* Returns -1 if the name is unknown for this property
* See the {@link https://docs.rs/icu/latest/icu/properties/names/struct.PropertyValueNameToEnumMapperBorrowed.html#method.get_strict Rust documentation for `get_strict`} for more information.
*/
get_strict(name: string): i16;
/**
* Get the property value matching the given name, using loose matching
* Returns -1 if the name is unknown for this property
* See the {@link https://docs.rs/icu/latest/icu/properties/names/struct.PropertyValueNameToEnumMapperBorrowed.html#method.get_loose Rust documentation for `get_loose`} for more information.
*/
get_loose(name: string): i16;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.GeneralCategory.html#method.get_name_to_enum_mapper Rust documentation for `get_name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_general_category(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.BidiClass.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_bidi_class(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.EastAsianWidth.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_east_asian_width(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.IndicSyllabicCategory.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_indic_syllabic_category(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.LineBreak.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_line_break(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.GraphemeClusterBreak.html#method.get_name_to_enum_mapper Rust documentation for `get_name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_grapheme_cluster_break(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.WordBreak.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_word_break(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.SentenceBreak.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_sentence_break(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
/**
* See the {@link https://docs.rs/icu/latest/icu/properties/struct.Script.html#method.name_to_enum_mapper Rust documentation for `name_to_enum_mapper`} for more information.
* @throws {@link FFIError}<{@link ICU4XError}>
*/
static load_script(provider: ICU4XDataProvider): ICU4XPropertyValueNameToEnumMapper | never;
}
|