From b027245b45cc7248e5819cc0e4965561273859b6 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Mon, 18 Aug 2014 16:01:00 +0000 Subject: [PATCH] ICU-10880 Add some RBNF documentation for the new syntax X-SVN-Rev: 36188 --- .../com/ibm/icu/text/RuleBasedNumberFormat.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java b/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java index 426099f1f68..310869405f6 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/RuleBasedNumberFormat.java @@ -433,6 +433,20 @@ import com.ibm.icu.util.UResourceBundleIterator; * in rule in fraction rule set * Omit the optional text if multiplying the number by the rule's base value yields 1. * + * + * $(cardinal,plural syntax) + * + * in all rule sets + * This provides the ability to choose a word based on the number divided by the base value for the specified locale. + * This uses the cardinal plural rules from PluralFormat. All strings used in the plural format are treated as the same base value for parsing. + * + * + * $(ordinal,plural syntax) + * + * in all rule sets + * This provides the ability to choose a word based on the number divided by the base value for the specified locale. + * This uses the ordinal plural rules from PluralFormat. All strings used in the plural format are treated as the same base value for parsing. + * * * *

The substitution descriptor (i.e., the text between the token characters) may take one @@ -480,6 +494,8 @@ import com.ibm.icu.util.UResourceBundleIterator; * @author Richard Gillam * @see NumberFormat * @see DecimalFormat + * @see PluralFormat + * @see PluralRules * @stable ICU 2.0 */ public class RuleBasedNumberFormat extends NumberFormat { -- 2.40.0