Home
last modified time | relevance | path

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

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1196 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat("dummy"); in TestEquals() local
1197 if (rbnf.equals("dummy") || in TestEquals()
1198 rbnf.equals(new Character('a')) || in TestEquals()
1199 rbnf.equals(new Object()) || in TestEquals()
1200 rbnf.equals(-1) || in TestEquals()
1201 rbnf.equals(0) || in TestEquals()
1202 rbnf.equals(1) || in TestEquals()
1203 rbnf.equals(-1.0) || in TestEquals()
1204 rbnf.equals(0.0) || in TestEquals()
1205 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/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfTest.java1199 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat("dummy"); in TestEquals() local
1200 if (rbnf.equals("dummy") || in TestEquals()
1201 rbnf.equals(new Character('a')) || in TestEquals()
1202 rbnf.equals(new Object()) || in TestEquals()
1203 rbnf.equals(-1) || in TestEquals()
1204 rbnf.equals(0) || in TestEquals()
1205 rbnf.equals(1) || in TestEquals()
1206 rbnf.equals(-1.0) || in TestEquals()
1207 rbnf.equals(0.0) || in TestEquals()
1208 rbnf.equals(1.0)) in TestEquals()
[all …]
DRBNFParseTest.java110 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat() argument
112 Number n = rbnf.parse(s); in parseFormat()
113 String t = rbnf.format(n); in parseFormat()
114 assertEquals(rbnf.getLocale(ULocale.ACTUAL_LOCALE) + ": " + s + " : " + n, target, t); in parseFormat()
/external/icu/icu4c/source/i18n/
Dunum.cpp160 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone() local
161 U_ASSERT(rbnf != NULL); in unum_clone()
162 res = rbnf->clone(); in unum_clone()
667 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute() local
668 U_ASSERT(rbnf != NULL); in unum_getTextAttribute()
670 res = rbnf->getDefaultRuleSetName(); in unum_getTextAttribute()
672 int32_t count = rbnf->getNumberOfRuleSetNames(); in unum_getTextAttribute()
674 res += rbnf->getRuleSetName(i); in unum_getTextAttribute()
730 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute() local
731 U_ASSERT(rbnf != NULL); in unum_setTextAttribute()
[all …]
Dnfrule.h50 const RuleBasedNumberFormat* rbnf,
54 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
Dnfsubs.h62 const RuleBasedNumberFormat* rbnf,
Dnfrule.cpp111 const RuleBasedNumberFormat *rbnf, in makeRules() argument
119 NFRule* rule1 = new NFRule(rbnf, description, status); in makeRules()
163 rule2 = new NFRule(rbnf, UnicodeString(), status); in makeRules()
DAndroid.bp146 "rbnf.cpp",
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp1973 RuleBasedNumberFormat *rbnf = in TestMultiplierSubstitution() local
1979 rbnf->format(n, res, pos); in TestMultiplierSubstitution()
1980 delete rbnf; in TestMultiplierSubstitution()
1997 RuleBasedNumberFormat rbnf(URBNF_ORDINAL, Locale::getEnglish(), status); in TestSetDecimalFormatSymbols() local
2018 rbnf.format(number, result); in TestSetDecimalFormatSymbols()
2027 rbnf.setDecimalFormatSymbols(dfs); in TestSetDecimalFormatSymbols()
2029 rbnf.format(number, result); in TestSetDecimalFormatSymbols()
2225 RuleBasedNumberFormat rbnf(URBNF_SPELLOUT, Locale::getEnglish(), status); in TestLargeNumbers() local
2248 doTest(&rbnf, enTestFullData, false); in TestLargeNumbers()
2261 …RuleBasedNumberFormat rbnf(numberPattern, UnicodeString(), Locale::getEnglish(), parseError, statu… in TestCompactDecimalFormatStyle() local
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java2259 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2264 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2270 newFormat = rbnf; in createAppropriateFormat()
2275 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2280 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2286 newFormat = rbnf; in createAppropriateFormat()
2291 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2296 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2302 newFormat = rbnf; in createAppropriateFormat()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java2215 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2220 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2226 newFormat = rbnf; in createAppropriateFormat()
2231 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2236 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2242 newFormat = rbnf; in createAppropriateFormat()
2247 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2252 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2258 newFormat = rbnf; in createAppropriateFormat()
/external/icu/icu4c/source/data/rbnf/
Dnn.txt4 * ICU <specials> source: <path>/xml/rbnf/nn.xml
Dcy.txt4 * ICU <specials> source: <path>/xml/rbnf/cy.xml
Dfo.txt4 * ICU <specials> source: <path>/xml/rbnf/fo.xml
Dis.txt4 * ICU <specials> source: <path>/xml/rbnf/is.xml
Den.txt4 * ICU <specials> source: <path>/xml/rbnf/en.xml
Dda.txt4 * ICU <specials> source: <path>/xml/rbnf/da.xml
Dga.txt4 * ICU <specials> source: <path>/xml/rbnf/ga.xml
Dde.txt4 * ICU <specials> source: <path>/xml/rbnf/de.xml
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfSampleRuleSets.java9 package com.ibm.icu.dev.demo.rbnf;
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu/META-INF/
DMANIFEST.MF20 com.ibm.icu.impl.data.icudt@DATA_VERSION_NUMBER@b.rbnf;x-internal:=true,
/external/icu/icu4c/source/config/
Ddist.mk22 DISTY_RMV=brkitr coll curr lang locales mappings rbnf region translit xml zone misc unit
/external/icu/icu4c/source/test/hdrtst/
Dcxxfiles.txt77 rbnf.h
/external/icu/icu4c/source/data/
DMakefile.in99 RBNFSRCDIR=$(SRCDATADIR)/rbnf
100 RBNFBLDDIR=$(BUILDDIR)/rbnf
424 RBNF_TREE=rbnf

12