Home
last modified time | relevance | path

Searched refs:rbnf (Results 1 – 25 of 98) sorted by relevance

1234

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1181 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 …]
DRBNFParseTest.java103 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/
DRbnfTest.java1185 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 …]
DRBNFParseTest.java107 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/
Dunum.cpp158 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 …]
Dnfrule.h49 const RuleBasedNumberFormat* rbnf,
53 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
/external/icu/icu4c/source/data/rbnf/
Dnn.txt6 // * Source File: <path>/common/rbnf/nn.xml
10 * ICU <specials> source: <path>/xml/rbnf/nn.xml
Dcy.txt6 // * Source File: <path>/common/rbnf/cy.xml
10 * ICU <specials> source: <path>/xml/rbnf/cy.xml
Dfo.txt6 // * Source File: <path>/common/rbnf/fo.xml
10 * ICU <specials> source: <path>/xml/rbnf/fo.xml
Den.txt6 // * Source File: <path>/common/rbnf/en.xml
10 * ICU <specials> source: <path>/xml/rbnf/en.xml
Dis.txt6 // * Source File: <path>/common/rbnf/is.xml
10 * ICU <specials> source: <path>/xml/rbnf/is.xml
Det.txt6 // * Source File: <path>/common/rbnf/et.xml
Deo.txt6 // * Source File: <path>/common/rbnf/eo.xml
Did.txt6 // * Source File: <path>/common/rbnf/id.xml
Dse.txt6 // * Source File: <path>/common/rbnf/se.xml
Dms.txt6 // * Source File: <path>/common/rbnf/ms.xml
Dda.txt6 // * Source File: <path>/common/rbnf/da.xml
10 * ICU <specials> source: <path>/xml/rbnf/da.xml
Dja.txt6 // * Source File: <path>/common/rbnf/ja.xml
Dkl.txt6 // * Source File: <path>/common/rbnf/kl.xml
Dde.txt6 // * Source File: <path>/common/rbnf/de.xml
10 * ICU <specials> source: <path>/xml/rbnf/de.xml
Dga.txt6 // * Source File: <path>/common/rbnf/ga.xml
10 * ICU <specials> source: <path>/xml/rbnf/ga.xml
Dam.txt6 // * Source File: <path>/common/rbnf/am.xml
Dlo.txt6 // * Source File: <path>/common/rbnf/lo.xml
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java2252 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/
DMessageFormat.java2208 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()

1234