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