PluralCategory.d.ts (1251B)
1 // generated by diplomat-tool 2 import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; 3 4 5 /** 6 * See the [Rust documentation for `PluralCategory`](https://docs.rs/icu/latest/icu/plurals/enum.PluralCategory.html) for more information. 7 */ 8 9 10 export class PluralCategory { 11 12 static fromValue(value: PluralCategory | string): PluralCategory; 13 14 get value(): string; 15 16 get ffiValue(): number; 17 18 static Zero : PluralCategory; 19 static One : PluralCategory; 20 static Two : PluralCategory; 21 static Few : PluralCategory; 22 static Many : PluralCategory; 23 static Other : PluralCategory; 24 25 26 /** 27 * Construct from a string in the format 28 * [specified in TR35](https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules) 29 * 30 * See the [Rust documentation for `get_for_cldr_string`](https://docs.rs/icu/latest/icu/plurals/enum.PluralCategory.html#method.get_for_cldr_string) for more information. 31 * 32 * See the [Rust documentation for `get_for_cldr_bytes`](https://docs.rs/icu/latest/icu/plurals/enum.PluralCategory.html#method.get_for_cldr_bytes) for more information. 33 */ 34 static getForCldrString(s: string): PluralCategory | null; 35 36 constructor(value: PluralCategory | string ); 37 }