PropertyValueNameToEnumMapper.d.ts (9481B)
1 // generated by diplomat-tool 2 import type { DataError } from "./DataError" 3 import type { DataProvider } from "./DataProvider" 4 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 5 6 7 /** 8 * A type capable of looking up a property value from a string name. 9 * 10 * See the [Rust documentation for `PropertyParser`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParser.html) for more information. 11 * 12 * See the [Rust documentation for `PropertyParserBorrowed`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParserBorrowed.html) for more information. 13 * 14 * See the [Rust documentation for `new`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParser.html#method.new) for more information. 15 */ 16 17 18 export class PropertyValueNameToEnumMapper { 19 get ffiValue(): pointer; 20 21 22 /** 23 * Get the property value matching the given name, using strict matching 24 * 25 * Returns -1 if the name is unknown for this property 26 * 27 * See the [Rust documentation for `get_strict`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParserBorrowed.html#method.get_strict) for more information. 28 */ 29 getStrict(name: string): number; 30 31 /** 32 * Get the property value matching the given name, using loose matching 33 * 34 * Returns -1 if the name is unknown for this property 35 * 36 * See the [Rust documentation for `get_loose`](https://docs.rs/icu/latest/icu/properties/struct.PropertyParserBorrowed.html#method.get_loose) for more information. 37 */ 38 getLoose(name: string): number; 39 40 /** 41 * Create a name-to-enum mapper for the `General_Category` property, using compiled data. 42 * 43 * See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/latest/icu/properties/props/enum.GeneralCategory.html) for more information. 44 */ 45 static createGeneralCategory(): PropertyValueNameToEnumMapper; 46 47 /** 48 * Create a name-to-enum mapper for the `General_Category` property, using a particular data source. 49 * 50 * See the [Rust documentation for `GeneralCategory`](https://docs.rs/icu/latest/icu/properties/props/enum.GeneralCategory.html) for more information. 51 */ 52 static createGeneralCategoryWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 53 54 /** 55 * Create a name-to-enum mapper for the `Hangul_Syllable_Type` property, using compiled data. 56 * 57 * See the [Rust documentation for `HangulSyllableType`](https://docs.rs/icu/latest/icu/properties/props/struct.HangulSyllableType.html) for more information. 58 */ 59 static createHangulSyllableType(): PropertyValueNameToEnumMapper; 60 61 /** 62 * Create a name-to-enum mapper for the `Hangul_Syllable_Type` property, using a particular data source. 63 * 64 * See the [Rust documentation for `HangulSyllableType`](https://docs.rs/icu/latest/icu/properties/props/struct.HangulSyllableType.html) for more information. 65 */ 66 static createHangulSyllableTypeWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 67 68 /** 69 * Create a name-to-enum mapper for the `East_Asian_Width` property, using compiled data. 70 * 71 * See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/latest/icu/properties/props/struct.EastAsianWidth.html) for more information. 72 */ 73 static createEastAsianWidth(): PropertyValueNameToEnumMapper; 74 75 /** 76 * Create a name-to-enum mapper for the `East_Asian_Width` property, using a particular data source. 77 * 78 * See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/latest/icu/properties/props/struct.EastAsianWidth.html) for more information. 79 */ 80 static createEastAsianWidthWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 81 82 /** 83 * Create a name-to-enum mapper for the `Bidi_Class` property, using compiled data. 84 * 85 * See the [Rust documentation for `BidiClass`](https://docs.rs/icu/latest/icu/properties/props/struct.BidiClass.html) for more information. 86 */ 87 static createBidiClass(): PropertyValueNameToEnumMapper; 88 89 /** 90 * Create a name-to-enum mapper for the `Bidi_Class` property, using a particular data source. 91 * 92 * See the [Rust documentation for `BidiClass`](https://docs.rs/icu/latest/icu/properties/props/struct.BidiClass.html) for more information. 93 */ 94 static createBidiClassWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 95 96 /** 97 * Create a name-to-enum mapper for the `Indic_Syllabic_Category` property, using compiled data. 98 * 99 * See the [Rust documentation for `IndicSyllabicCategory`](https://docs.rs/icu/latest/icu/properties/props/struct.IndicSyllabicCategory.html) for more information. 100 */ 101 static createIndicSyllabicCategory(): PropertyValueNameToEnumMapper; 102 103 /** 104 * Create a name-to-enum mapper for the `Indic_Syllabic_Category` property, using a particular data source. 105 * 106 * See the [Rust documentation for `IndicSyllabicCategory`](https://docs.rs/icu/latest/icu/properties/props/struct.IndicSyllabicCategory.html) for more information. 107 */ 108 static createIndicSyllabicCategoryWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 109 110 /** 111 * Create a name-to-enum mapper for the `Line_Break` property, using compiled data. 112 * 113 * See the [Rust documentation for `LineBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.LineBreak.html) for more information. 114 */ 115 static createLineBreak(): PropertyValueNameToEnumMapper; 116 117 /** 118 * Create a name-to-enum mapper for the `Line_Break` property, using a particular data source. 119 * 120 * See the [Rust documentation for `LineBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.LineBreak.html) for more information. 121 */ 122 static createLineBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 123 124 /** 125 * Create a name-to-enum mapper for the `Grapheme_Cluster_Break` property, using compiled data. 126 * 127 * See the [Rust documentation for `GraphemeClusterBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeClusterBreak.html) for more information. 128 */ 129 static createGraphemeClusterBreak(): PropertyValueNameToEnumMapper; 130 131 /** 132 * Create a name-to-enum mapper for the `Grapheme_Cluster_Break` property, using a particular data source. 133 * 134 * See the [Rust documentation for `GraphemeClusterBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.GraphemeClusterBreak.html) for more information. 135 */ 136 static createGraphemeClusterBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 137 138 /** 139 * Create a name-to-enum mapper for the `Word_Break` property, using compiled data. 140 * 141 * See the [Rust documentation for `WordBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.WordBreak.html) for more information. 142 */ 143 static createWordBreak(): PropertyValueNameToEnumMapper; 144 145 /** 146 * Create a name-to-enum mapper for the `Word_Break` property, using a particular data source. 147 * 148 * See the [Rust documentation for `WordBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.WordBreak.html) for more information. 149 */ 150 static createWordBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 151 152 /** 153 * Create a name-to-enum mapper for the `Sentence_Break` property, using compiled data. 154 * 155 * See the [Rust documentation for `SentenceBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.SentenceBreak.html) for more information. 156 */ 157 static createSentenceBreak(): PropertyValueNameToEnumMapper; 158 159 /** 160 * Create a name-to-enum mapper for the `Sentence_Break` property, using a particular data source. 161 * 162 * See the [Rust documentation for `SentenceBreak`](https://docs.rs/icu/latest/icu/properties/props/struct.SentenceBreak.html) for more information. 163 */ 164 static createSentenceBreakWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 165 166 /** 167 * Create a name-to-enum mapper for the `Script` property, using compiled data. 168 * 169 * See the [Rust documentation for `Script`](https://docs.rs/icu/latest/icu/properties/props/struct.Script.html) for more information. 170 */ 171 static createScript(): PropertyValueNameToEnumMapper; 172 173 /** 174 * Create a name-to-enum mapper for the `Script` property, using a particular data source. 175 * 176 * See the [Rust documentation for `Script`](https://docs.rs/icu/latest/icu/properties/props/struct.Script.html) for more information. 177 */ 178 static createScriptWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 179 180 /** 181 * Create a name-to-enum mapper for the `Vertical_Orientation` property, using compiled data. 182 * 183 * See the [Rust documentation for `VerticalOrientation`](https://docs.rs/icu/latest/icu/properties/props/struct.VerticalOrientation.html) for more information. 184 */ 185 static createVerticalOrientation(): PropertyValueNameToEnumMapper; 186 187 /** 188 * Create a name-to-enum mapper for the `Vertical_Orientation` property, using a particular data source. 189 * 190 * See the [Rust documentation for `VerticalOrientation`](https://docs.rs/icu/latest/icu/properties/props/struct.VerticalOrientation.html) for more information. 191 */ 192 static createVerticalOrientationWithProvider(provider: DataProvider): PropertyValueNameToEnumMapper; 193 }