class ICU4XDataProvider; class ICU4XLocale; class ICU4XPluralRules; #include"ICU4XError.hpp" class ICU4XPluralOperands; #include"ICU4XPluralCategory.hpp" struct ICU4XPluralCategories;
/** * A destruction policy for using ICU4XPluralRules with std::unique_ptr.
*/ struct ICU4XPluralRulesDeleter { voidoperator()(capi::ICU4XPluralRules* l) const noexcept {
capi::ICU4XPluralRules_destroy(l);
}
};
/** * Construct an [`ICU4XPluralRules`] for the given locale, for cardinal numbers * * See the [Rust documentation for `try_new_cardinal`](https://docs.rs/icu/latest/icu/plurals/struct.PluralRules.html#method.try_new_cardinal) for more information.
*/ static diplomat::result<ICU4XPluralRules, ICU4XError> create_cardinal(const ICU4XDataProvider& provider, const ICU4XLocale& locale);
/** * Construct an [`ICU4XPluralRules`] for the given locale, for ordinal numbers * * See the [Rust documentation for `try_new_ordinal`](https://docs.rs/icu/latest/icu/plurals/struct.PluralRules.html#method.try_new_ordinal) for more information.
*/ static diplomat::result<ICU4XPluralRules, ICU4XError> create_ordinal(const ICU4XDataProvider& provider, const ICU4XLocale& locale);
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.