// generated by diplomat-tool import type { DataError } from "./DataError" import type { DataProvider } from "./DataProvider" import type { Locale } from "./Locale" import type { PluralCategories } from "./PluralCategories" import type { PluralCategory } from "./PluralCategory" import type { PluralOperands } from "./PluralOperands" import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/** *Seethe[Rustdocumentationfor`PluralRules`](https://docs.rs/icu/2.1.1/icu/plurals/struct.PluralRules.html) for more information.
*/
export class PluralRules { /** @internal */
get ffiValue(): pointer; /** @internal */
constructor();
/** *Constructan{@linkPluralRules}forthegivenlocale,forcardinalnumbers,usingcompileddata. * *Seethe[Rustdocumentationfor`try_new_cardinal`](https://docs.rs/icu/2.1.1/icu/plurals/struct.PluralRules.html#method.try_new_cardinal) for more information.
*/ static createCardinal(locale: Locale): PluralRules;
/** *Constructan{@linkPluralRules}forthegivenlocale,forcardinalnumbers,usingaparticulardatasource. * *Seethe[Rustdocumentationfor`try_new_cardinal`](https://docs.rs/icu/2.1.1/icu/plurals/struct.PluralRules.html#method.try_new_cardinal) for more information.
*/ static createCardinalWithProvider(provider: DataProvider, locale: Locale): PluralRules;
/** *Constructan{@linkPluralRules}forthegivenlocale,forordinalnumbers,usingcompileddata. * *Seethe[Rustdocumentationfor`try_new_ordinal`](https://docs.rs/icu/2.1.1/icu/plurals/struct.PluralRules.html#method.try_new_ordinal) for more information.
*/ static createOrdinal(locale: Locale): PluralRules;
/** *Constructan{@linkPluralRules}forthegivenlocale,forordinalnumbers,usingaparticulardatasource. * *Seethe[Rustdocumentationfor`try_new_ordinal`](https://docs.rs/icu/2.1.1/icu/plurals/struct.PluralRules.html#method.try_new_ordinal) for more information.
*/ static createOrdinalWithProvider(provider: DataProvider, locale: Locale): PluralRules;
/** *Getthecategoryforagivennumberrepresentedasoperands * *Seethe[Rustdocumentationfor`category_for`](https://docs.rs/icu/2.1.1/icu/plurals/struct.PluralRules.html#method.category_for) for more information.
*/
categoryFor(op: PluralOperands): PluralCategory;
/** *Getallofthecategoriesneededinthecurrentlocale * *Seethe[Rustdocumentationfor`categories`](https://docs.rs/icu/2.1.1/icu/plurals/struct.PluralRules.html#method.categories) for more information.
*/
get categories(): PluralCategories;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.