OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * Copyright (C) 1996-2012, International Business Machines Corporation and * | 3 * Copyright (C) 1996-2014, International Business Machines Corporation and * |
4 * others. All Rights Reserved. * | 4 * others. All Rights Reserved. * |
5 ******************************************************************************* | 5 ******************************************************************************* |
6 */ | 6 */ |
7 | 7 |
8 #ifndef ITRBNF_H | 8 #ifndef ITRBNF_H |
9 #define ITRBNF_H | 9 #define ITRBNF_H |
10 | 10 |
11 #include "unicode/utypes.h" | 11 #include "unicode/utypes.h" |
12 | 12 |
13 #if !UCONFIG_NO_FORMATTING | 13 #if !UCONFIG_NO_FORMATTING |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 * Regression test, don't truncate | 126 * Regression test, don't truncate |
127 * when doing multiplier substitution to a number format rule. | 127 * when doing multiplier substitution to a number format rule. |
128 */ | 128 */ |
129 virtual void TestMultiplierSubstitution(); | 129 virtual void TestMultiplierSubstitution(); |
130 | 130 |
131 /** | 131 /** |
132 * Test the setDecimalFormatSymbols in RBNF | 132 * Test the setDecimalFormatSymbols in RBNF |
133 */ | 133 */ |
134 virtual void TestSetDecimalFormatSymbols(); | 134 virtual void TestSetDecimalFormatSymbols(); |
135 | 135 |
| 136 /** |
| 137 * Test the plural rules in RBNF |
| 138 */ |
| 139 virtual void TestPluralRules(); |
| 140 |
136 protected: | 141 protected: |
137 virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testDa
ta[][2], UBool testParsing); | 142 virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testDa
ta[][2], UBool testParsing); |
138 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char*
testData[][2]); | 143 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char*
testData[][2]); |
139 | 144 |
140 /* U_HAVE_RBNF */ | 145 /* U_HAVE_RBNF */ |
141 #else | 146 #else |
142 | 147 |
143 virtual void TestRBNFDisabled(); | 148 virtual void TestRBNFDisabled(); |
144 | 149 |
145 /* U_HAVE_RBNF */ | 150 /* U_HAVE_RBNF */ |
146 #endif | 151 #endif |
147 }; | 152 }; |
148 | 153 |
149 #endif /* #if !UCONFIG_NO_FORMATTING */ | 154 #endif /* #if !UCONFIG_NO_FORMATTING */ |
150 | 155 |
151 // endif ITRBNF_H | 156 // endif ITRBNF_H |
152 #endif | 157 #endif |
OLD | NEW |