Home
last modified time | relevance | path

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

123

/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.java109 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat() argument
111 Number n = rbnf.parse(s); in parseFormat()
112 String t = rbnf.format(n); in parseFormat()
113 assertEquals(rbnf.getLocale(ULocale.ACTUAL_LOCALE) + ": " + s + " : " + n, target, t); in parseFormat()
170 …RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(Locale.JAPAN, RuleBasedNumberFormat.SPELLOU… in TestBadParse() local
177 rbnf.parse(testString); in TestBadParse()
/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.java112 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat() argument
114 Number n = rbnf.parse(s); in parseFormat()
115 String t = rbnf.format(n); in parseFormat()
116 assertEquals(rbnf.getLocale(ULocale.ACTUAL_LOCALE) + ": " + s + " : " + n, target, t); in parseFormat()
173 …RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(Locale.JAPAN, RuleBasedNumberFormat.SPELLOU… in TestBadParse() local
180 rbnf.parse(testString); in TestBadParse()
/external/cldr/tools/java/org/unicode/cldr/icu/
DListNumbers.java180 for (RuleBasedNumberFormat rbnf : rbnfs) { in printLine()
181 for (String name : rbnf.getRuleSetNames()) { in printLine()
182 …System.out.print("<td" + getNumberStyle(name, num, isRTL) + ">" + rbnf.format(num, name) + "</td>"… in printLine()
191 for (RuleBasedNumberFormat rbnf : rbnfs) { in printSkipLine()
192 for (String name : rbnf.getRuleSetNames()) { in printSkipLine()
193 … System.out.print("<th class=\"thead\"><b>" + getDisplayName(rbnf, name) + "</b></th>"); in printSkipLine()
204 for (RuleBasedNumberFormat rbnf : rbnfs) { in printTable()
205 int numColumns = rbnf.getRuleSetNames().length; in printTable()
207 + getRulePrefix(rbnf.getDefaultRuleSetName())); in printTable()
209 + getDisplayName(rbnf, rbnf.getDefaultRuleSetName())); in printTable()
[all …]
DNewLdml2IcuConverter.java57 …ges, postalCodeData, rgScope, supplementalData, windowsZones, keyTypeData, brkitr, collation, rbnf; enumConstant
173 if (type == Type.rbnf) { in processArgs()
248 case rbnf: in processArgs()
/external/cldr/tools/java/org/unicode/cldr/json/
DJSON_config_rbnf.txt1 section=rbnf ; path=//cldr/rbnf/rbnf/.* ; package=rbnf
DLdml2JsonConverter.java60 main, supplemental, segments, rbnf enumConstant
232 case rbnf: in Ldml2JsonConverter()
430 if (type == RunType.rbnf) { in convertCldrItems()
442 if (type != RunType.supplemental && type != RunType.rbnf) { in convertCldrItems()
464 } else if (type == RunType.rbnf) { in convertCldrItems()
474 if (type != RunType.supplemental && type != RunType.rbnf) { in convertCldrItems()
514 if (type == RunType.rbnf) { in convertCldrItems()
534 if (type == RunType.rbnf) { in convertCldrItems()
730 } else if (type == RunType.rbnf) { in writeBowerJson()
967 if (i == nodesInPath.size() && type != RunType.rbnf) { in outputCldrItem()
[all …]
/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()
/external/icu/icu4c/source/test/intltest/
Ditrbnf.cpp1975 RuleBasedNumberFormat *rbnf = in TestMultiplierSubstitution() local
1981 rbnf->format(n, res, pos); in TestMultiplierSubstitution()
1982 delete rbnf; in TestMultiplierSubstitution()
1999 RuleBasedNumberFormat rbnf(URBNF_ORDINAL, Locale::getEnglish(), status); in TestSetDecimalFormatSymbols() local
2020 rbnf.format(number, result); in TestSetDecimalFormatSymbols()
2029 rbnf.setDecimalFormatSymbols(dfs); in TestSetDecimalFormatSymbols()
2031 rbnf.format(number, result); in TestSetDecimalFormatSymbols()
2227 RuleBasedNumberFormat rbnf(URBNF_SPELLOUT, Locale::getEnglish(), status); in TestLargeNumbers() local
2250 doTest(&rbnf, enTestFullData, false); in TestLargeNumbers()
2263 …RuleBasedNumberFormat rbnf(numberPattern, UnicodeString(), Locale::getEnglish(), parseError, statu… in TestCompactDecimalFormatStyle() local
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DMessageFormat.java2224 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()
2256 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2261 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2267 newFormat = rbnf; in createAppropriateFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java2271 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2276 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2282 newFormat = rbnf; in createAppropriateFormat()
2287 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2292 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2298 newFormat = rbnf; in createAppropriateFormat()
2303 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2308 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2314 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
/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/*.txt misc/*.mk…
/external/icu/icu4c/source/test/hdrtst/
Dcxxfiles.txt79 rbnf.h
/external/cldr/tools/java/org/unicode/cldr/util/
DFactory.java90 main, supplemental, bcp47, casing, collation, dtd, rbnf, segments, transforms, other enumConstant

123