Source code

Revision control

Copy as Markdown

Other Tools

// generated by diplomat-tool
import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/**
* See the [Rust documentation for `PluralCategory`](https://docs.rs/icu/latest/icu/plurals/enum.PluralCategory.html) for more information.
*/
export class PluralCategory {
static fromValue(value: PluralCategory | string): PluralCategory;
get value(): string;
get ffiValue(): number;
static Zero : PluralCategory;
static One : PluralCategory;
static Two : PluralCategory;
static Few : PluralCategory;
static Many : PluralCategory;
static Other : PluralCategory;
/**
* Construct from a string in the format
*
* 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.
*
* 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.
*/
static getForCldrString(s: string): PluralCategory | null;
constructor(value: PluralCategory | string );
}