// NOTE: In Java, this method is in NumberFormat.java const char16_t*
getPatternForStyle(const Locale& locale, constchar* nsName, CldrPatternStyle style, UErrorCode& status);
/** *Computesthepluralformforthisnumberbasedonthespecifiedsetofrules. * *@paramrulesA{@linkPluralRules}objectrepresentingthesetofrules. *@returnThe{@linkStandardPlural}accordingtothePluralRules.Ifthepluralformisnotin *thesetofstandardplurals,{@linkStandardPlural#OTHER}isreturnedinstead.
*/ inline StandardPlural::Form getStandardPlural(const PluralRules *rules, const IFixedDecimal &fdec) { if (rules == nullptr) { // Fail gracefully if the user didn't provide a PluralRules return StandardPlural::Form::OTHER;
} else {
UnicodeString ruleString = rules->select(fdec); return StandardPlural::orOtherFromString(ruleString);
}
}
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.