namespace icu4x { /** *Seethe[Rustdocumentationfor`PluralCategory`](https://docs.rs/icu/2.1.1/icu/plurals/enum.PluralCategory.html) for more information.
*/ class PluralCategory {
public: enum Value {
Zero = 0,
One = 1,
Two = 2,
Few = 3,
Many = 4,
Other = 5,
};
PluralCategory(): value(Value::Other) {}
// Implicit conversions between enum and ::Value
constexpr PluralCategory(Value v) : value(v) {}
constexpr operator Value() const { return value; } // Prevent usage as boolean value explicitoperatorbool() const = delete;
/** *Constructfromastringintheformat *[specifiedinTR35](https://unicode.org/reports/tr35/tr35-numbers.html#Language_Plural_Rules) * *Seethe[Rustdocumentationfor`get_for_cldr_string`](https://docs.rs/icu/2.1.1/icu/plurals/enum.PluralCategory.html#method.get_for_cldr_string) for more information. * *Seethe[Rustdocumentationfor`get_for_cldr_bytes`](https://docs.rs/icu/2.1.1/icu/plurals/enum.PluralCategory.html#method.get_for_cldr_bytes) for more information.
*/ inlinestatic std::optional<icu4x::PluralCategory> get_for_cldr_string(std::string_view s);
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.