/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | RbnfTest.java | 1181 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat("dummy"); in TestEquals() local 1182 if (rbnf.equals("dummy") || in TestEquals() 1183 rbnf.equals(new Character('a')) || in TestEquals() 1184 rbnf.equals(new Object()) || in TestEquals() 1185 rbnf.equals(-1) || in TestEquals() 1186 rbnf.equals(0) || in TestEquals() 1187 rbnf.equals(1) || in TestEquals() 1188 rbnf.equals(-1.0) || in TestEquals() 1189 rbnf.equals(0.0) || in TestEquals() 1190 rbnf.equals(1.0)) in TestEquals() [all …]
|
D | RBNFParseTest.java | 103 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat() argument 105 Number n = rbnf.parse(s); in parseFormat() 106 String t = rbnf.format(n); in parseFormat() 107 assertEquals(rbnf.getLocale(ULocale.ACTUAL_LOCALE) + ": " + s + " : " + n, target, t); in parseFormat()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | RbnfTest.java | 1185 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat("dummy"); in TestEquals() local 1186 if (rbnf.equals("dummy") || in TestEquals() 1187 rbnf.equals(new Character('a')) || in TestEquals() 1188 rbnf.equals(new Object()) || in TestEquals() 1189 rbnf.equals(-1) || in TestEquals() 1190 rbnf.equals(0) || in TestEquals() 1191 rbnf.equals(1) || in TestEquals() 1192 rbnf.equals(-1.0) || in TestEquals() 1193 rbnf.equals(0.0) || in TestEquals() 1194 rbnf.equals(1.0)) in TestEquals() [all …]
|
D | RBNFParseTest.java | 107 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat() argument 109 Number n = rbnf.parse(s); in parseFormat() 110 String t = rbnf.format(n); in parseFormat() 111 assertEquals(rbnf.getLocale(ULocale.ACTUAL_LOCALE) + ": " + s + " : " + n, target, t); in parseFormat()
|
/external/icu/icu4c/source/i18n/ |
D | unum.cpp | 158 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone() local 159 U_ASSERT(rbnf != NULL); in unum_clone() 160 res = rbnf->clone(); in unum_clone() 591 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute() local 592 U_ASSERT(rbnf != NULL); in unum_getTextAttribute() 594 res = rbnf->getDefaultRuleSetName(); in unum_getTextAttribute() 596 int32_t count = rbnf->getNumberOfRuleSetNames(); in unum_getTextAttribute() 598 res += rbnf->getRuleSetName(i); in unum_getTextAttribute() 654 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute() local 655 U_ASSERT(rbnf != NULL); in unum_setTextAttribute() [all …]
|
D | nfrule.h | 49 const RuleBasedNumberFormat* rbnf, 53 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
|
/external/icu/icu4c/source/data/rbnf/ |
D | nn.txt | 6 // * Source File: <path>/common/rbnf/nn.xml 10 * ICU <specials> source: <path>/xml/rbnf/nn.xml
|
D | cy.txt | 6 // * Source File: <path>/common/rbnf/cy.xml 10 * ICU <specials> source: <path>/xml/rbnf/cy.xml
|
D | fo.txt | 6 // * Source File: <path>/common/rbnf/fo.xml 10 * ICU <specials> source: <path>/xml/rbnf/fo.xml
|
D | en.txt | 6 // * Source File: <path>/common/rbnf/en.xml 10 * ICU <specials> source: <path>/xml/rbnf/en.xml
|
D | is.txt | 6 // * Source File: <path>/common/rbnf/is.xml 10 * ICU <specials> source: <path>/xml/rbnf/is.xml
|
D | et.txt | 6 // * Source File: <path>/common/rbnf/et.xml
|
D | eo.txt | 6 // * Source File: <path>/common/rbnf/eo.xml
|
D | id.txt | 6 // * Source File: <path>/common/rbnf/id.xml
|
D | se.txt | 6 // * Source File: <path>/common/rbnf/se.xml
|
D | ms.txt | 6 // * Source File: <path>/common/rbnf/ms.xml
|
D | da.txt | 6 // * Source File: <path>/common/rbnf/da.xml 10 * ICU <specials> source: <path>/xml/rbnf/da.xml
|
D | ja.txt | 6 // * Source File: <path>/common/rbnf/ja.xml
|
D | kl.txt | 6 // * Source File: <path>/common/rbnf/kl.xml
|
D | de.txt | 6 // * Source File: <path>/common/rbnf/de.xml 10 * ICU <specials> source: <path>/xml/rbnf/de.xml
|
D | ga.txt | 6 // * Source File: <path>/common/rbnf/ga.xml 10 * ICU <specials> source: <path>/xml/rbnf/ga.xml
|
D | am.txt | 6 // * Source File: <path>/common/rbnf/am.xml
|
D | lo.txt | 6 // * Source File: <path>/common/rbnf/lo.xml
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MessageFormat.java | 2252 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local 2257 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat() 2263 newFormat = rbnf; in createAppropriateFormat() 2268 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local 2273 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat() 2279 newFormat = rbnf; in createAppropriateFormat() 2284 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local 2289 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat() 2295 newFormat = rbnf; in createAppropriateFormat()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | MessageFormat.java | 2208 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local 2213 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat() 2219 newFormat = rbnf; in createAppropriateFormat() 2224 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local 2229 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat() 2235 newFormat = rbnf; in createAppropriateFormat() 2240 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local 2245 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat() 2251 newFormat = rbnf; in createAppropriateFormat()
|