Home
last modified time | relevance | path

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

1234

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DRbnfTest.java1219 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat("dummy"); in TestEquals() local
1220 if (rbnf.equals("dummy") || in TestEquals()
1221 rbnf.equals(new Character('a')) || in TestEquals()
1222 rbnf.equals(new Object()) || in TestEquals()
1223 rbnf.equals(-1) || in TestEquals()
1224 rbnf.equals(0) || in TestEquals()
1225 rbnf.equals(1) || in TestEquals()
1226 rbnf.equals(-1.0) || in TestEquals()
1227 rbnf.equals(0.0) || in TestEquals()
1228 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()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java1310 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat("dummy"); in TestEquals() local
1311 if (rbnf.equals("dummy") || in TestEquals()
1312 rbnf.equals(new Character('a')) || in TestEquals()
1313 rbnf.equals(new Object()) || in TestEquals()
1314 rbnf.equals(-1) || in TestEquals()
1315 rbnf.equals(0) || in TestEquals()
1316 rbnf.equals(1) || in TestEquals()
1317 rbnf.equals(-1.0) || in TestEquals()
1318 rbnf.equals(0.0) || in TestEquals()
1319 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()
/third_party/flutter/skia/third_party/externals/icu/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,
/third_party/skia/third_party/externals/icu/source/i18n/
Dunum.cpp165 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone() local
166 U_ASSERT(rbnf != NULL); in unum_clone()
167 res = rbnf->clone(); in unum_clone()
672 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute() local
673 U_ASSERT(rbnf != NULL); in unum_getTextAttribute()
675 res = rbnf->getDefaultRuleSetName(); in unum_getTextAttribute()
677 int32_t count = rbnf->getNumberOfRuleSetNames(); in unum_getTextAttribute()
679 res += rbnf->getRuleSetName(i); in unum_getTextAttribute()
735 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute() local
736 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,
/third_party/icu/icu4c/source/i18n/
Dunum.cpp165 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone() local
166 U_ASSERT(rbnf != NULL); in unum_clone()
167 res = rbnf->clone(); in unum_clone()
672 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute() local
673 U_ASSERT(rbnf != NULL); in unum_getTextAttribute()
675 res = rbnf->getDefaultRuleSetName(); in unum_getTextAttribute()
677 int32_t count = rbnf->getNumberOfRuleSetNames(); in unum_getTextAttribute()
679 res += rbnf->getRuleSetName(i); in unum_getTextAttribute()
735 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute() local
736 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,
/third_party/node/deps/icu-small/source/i18n/
Dunum.cpp165 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone() local
166 U_ASSERT(rbnf != NULL); in unum_clone()
167 res = rbnf->clone(); in unum_clone()
672 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute() local
673 U_ASSERT(rbnf != NULL); in unum_getTextAttribute()
675 res = rbnf->getDefaultRuleSetName(); in unum_getTextAttribute()
677 int32_t count = rbnf->getNumberOfRuleSetNames(); in unum_getTextAttribute()
679 res += rbnf->getRuleSetName(i); in unum_getTextAttribute()
735 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute() local
736 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,
/third_party/icu/icu4c/source/test/intltest/
Ditrbnf.cpp2009 RuleBasedNumberFormat *rbnf = in TestMultiplierSubstitution() local
2015 rbnf->format(n, res, pos); in TestMultiplierSubstitution()
2016 delete rbnf; in TestMultiplierSubstitution()
2033 RuleBasedNumberFormat rbnf(URBNF_ORDINAL, Locale::getEnglish(), status); in TestSetDecimalFormatSymbols() local
2054 rbnf.format(number, result); in TestSetDecimalFormatSymbols()
2063 rbnf.setDecimalFormatSymbols(dfs); in TestSetDecimalFormatSymbols()
2065 rbnf.format(number, result); in TestSetDecimalFormatSymbols()
2261 RuleBasedNumberFormat rbnf(URBNF_SPELLOUT, Locale::getEnglish(), status); in TestLargeNumbers() local
2284 doTest(&rbnf, enTestFullData, false); in TestLargeNumbers()
2297 …RuleBasedNumberFormat rbnf(numberPattern, UnicodeString(), Locale::getEnglish(), parseError, statu… in TestCompactDecimalFormatStyle() local
[all …]
/third_party/icu/docs/userguide/format_parse/numbers/
Dindex.md28 …rt for traditional numbering systems not covered by base-10 decimal digits, see [rbnf.md](rbnf.md).
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DMessageFormat.java2261 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2266 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2272 newFormat = rbnf; in createAppropriateFormat()
2277 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2282 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2288 newFormat = rbnf; in createAppropriateFormat()
2293 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2298 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2304 newFormat = rbnf; in createAppropriateFormat()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMessageFormat.java2305 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2310 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2316 newFormat = rbnf; in createAppropriateFormat()
2321 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2326 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2332 newFormat = rbnf; in createAppropriateFormat()
2337 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat() local
2342 rbnf.setDefaultRuleSet(ruleset); in createAppropriateFormat()
2348 newFormat = rbnf; in createAppropriateFormat()
/third_party/flutter/skia/third_party/externals/icu/scripts/
Ddata_files_to_preserve.txt12 rbnf/rbnflocal.mk
/third_party/flutter/skia/third_party/externals/icu/source/data/rbnf/
Dnn.txt4 * ICU <specials> source: <path>/xml/rbnf/nn.xml
Dcy.txt4 * ICU <specials> source: <path>/xml/rbnf/cy.xml
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfSampleRuleSets.java9 package com.ibm.icu.dev.demo.rbnf;
/third_party/flutter/skia/third_party/externals/icu/source/config/
Ddist.mk22 DISTY_RMV=brkitr coll curr lang locales mappings rbnf region translit xml zone misc/*.txt misc/*.mk…

1234