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