EastAsianWidth.d.ts (2200B)
1 // generated by diplomat-tool 2 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 3 4 5 /** 6 * See the [Rust documentation for `EastAsianWidth`](https://docs.rs/icu/latest/icu/properties/props/struct.EastAsianWidth.html) for more information. 7 */ 8 9 10 export class EastAsianWidth { 11 12 static fromValue(value: EastAsianWidth | string): EastAsianWidth; 13 14 get value(): string; 15 16 get ffiValue(): number; 17 18 static Neutral : EastAsianWidth; 19 static Ambiguous : EastAsianWidth; 20 static Halfwidth : EastAsianWidth; 21 static Fullwidth : EastAsianWidth; 22 static Narrow : EastAsianWidth; 23 static Wide : EastAsianWidth; 24 25 26 /** 27 * See the [Rust documentation for `for_char`](https://docs.rs/icu/latest/icu/properties/props/trait.EnumeratedProperty.html#tymethod.for_char) for more information. 28 */ 29 static forChar(ch: codepoint): EastAsianWidth; 30 31 /** 32 * Get the "long" name of this property value (returns empty if property value is unknown) 33 * 34 * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/properties/struct.PropertyNamesLongBorrowed.html#method.get) for more information. 35 */ 36 longName(): string | null; 37 38 /** 39 * Get the "short" name of this property value (returns empty if property value is unknown) 40 * 41 * See the [Rust documentation for `get`](https://docs.rs/icu/latest/icu/properties/struct.PropertyNamesShortBorrowed.html#method.get) for more information. 42 */ 43 shortName(): string | null; 44 45 /** 46 * Convert to an integer value usable with ICU4C and CodePointMapData 47 * 48 * See the [Rust documentation for `to_icu4c_value`](https://docs.rs/icu/latest/icu/properties/props/struct.EastAsianWidth.html#method.to_icu4c_value) for more information. 49 */ 50 toIntegerValue(): number; 51 52 /** 53 * Convert from an integer value from ICU4C or CodePointMapData 54 * 55 * See the [Rust documentation for `from_icu4c_value`](https://docs.rs/icu/latest/icu/properties/props/struct.EastAsianWidth.html#method.from_icu4c_value) for more information. 56 */ 57 static fromIntegerValue(other: number): EastAsianWidth | null; 58 59 constructor(value: EastAsianWidth | string ); 60 }