Home
last modified time | relevance | path

Searched refs:RuleBasedNumberFormat (Results 1 – 25 of 33) sorted by relevance

12

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfRoundTripTest.java12 import com.ibm.icu.text.RuleBasedNumberFormat;
32 RuleBasedNumberFormat formatter in TestEnglishSpelloutRT()
33 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
34 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpelloutRT()
43 RuleBasedNumberFormat formatter in TestDurationsRT()
44 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
45 RuleBasedNumberFormat.DURATION); in TestDurationsRT()
54 RuleBasedNumberFormat formatter in TestSpanishSpelloutRT()
55 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
56 ""), RuleBasedNumberFormat.SPELLOUT); in TestSpanishSpelloutRT()
[all …]
DRbnfTest.java19 import com.ibm.icu.text.RuleBasedNumberFormat;
119 RuleBasedNumberFormat fmt0 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
120 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage()
121 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
134 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage()
184 RuleBasedNumberFormat fmt4 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
185 RuleBasedNumberFormat fmt5 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
224 RuleBasedNumberFormat[] formatters = { in TestUndefinedSpellout()
225 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.SPELLOUT), in TestUndefinedSpellout()
226 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.ORDINAL), in TestUndefinedSpellout()
[all …]
DRBNFParseTest.java12 import com.ibm.icu.text.RuleBasedNumberFormat;
83 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); in TestParse()
103 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat()
113 …private void parseList(RuleBasedNumberFormat rbnf_en, RuleBasedNumberFormat rbnf_fr, String[][] li… in parseList()
126 RuleBasedNumberFormat rbnf_en, rbnf_fr; in TestLenientParse()
130 rbnf_en = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
132 rbnf_fr = new RuleBasedNumberFormat(Locale.FRENCH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
/external/icu/icu4c/source/test/intltest/
Ditrbnfrt.cpp64 RuleBasedNumberFormat* formatter in TestEnglishSpelloutRT()
65 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestEnglishSpelloutRT()
82 RuleBasedNumberFormat* formatter in TestDurationsRT()
83 = new RuleBasedNumberFormat(URBNF_DURATION, Locale::getUS(), status); in TestDurationsRT()
100 RuleBasedNumberFormat* formatter in TestSpanishSpelloutRT()
101 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("es", "es"), status); in TestSpanishSpelloutRT()
118 RuleBasedNumberFormat* formatter in TestFrenchSpelloutRT()
119 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getFrance(), status); in TestFrenchSpelloutRT()
136 RuleBasedNumberFormat* formatter in TestSwissFrenchSpelloutRT()
137 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("fr", "CH"), status); in TestSwissFrenchSpelloutRT()
[all …]
Ditrbnf.cpp103 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); in TestHebrewFraction()
147 RuleBasedNumberFormat* formatter in TestAPI()
148 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestAPI()
159 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI()
173 RuleBasedNumberFormat assignResult(URBNF_SPELLOUT, Locale("es", "ES", ""), status); in TestAPI()
204 RuleBasedNumberFormat ruleCtorResult(spelloutRules, Locale::getUS(), perror, status); in TestAPI()
210 RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); in TestAPI()
223 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status); in TestAPI()
233 RuleBasedNumberFormat copyCtorResult(*formatter); in TestAPI()
361 RuleBasedNumberFormat formatter(rules, Locale("ru"), pError, status); in TestMultiplePluralRules()
[all …]
Ditrbnfp.cpp125RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(rule, Locale::getUS(), perr, status); in TestParse()
146 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status) { in testfmt()
159 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status) { in testfmt()
Ditrbnfp.h31 void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
32 void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
Ditrbnf.h144 …virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testP…
145 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
Ditrbnfrt.h85 void doTest(const RuleBasedNumberFormat* formatter, double lowLimit, double highLimit);
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DRbnfLenientScannerTest.java17 import com.ibm.icu.text.RuleBasedNumberFormat;
39 RuleBasedNumberFormat formatter in TestDefaultProvider()
40 = new RuleBasedNumberFormat(Locale.US, in TestDefaultProvider()
41 RuleBasedNumberFormat.SPELLOUT); in TestDefaultProvider()
59 RuleBasedNumberFormat formatter in TestEnglishSpellout()
60 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpellout()
61 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpellout()
86 RuleBasedNumberFormat formatter in TestDurations()
87 = new RuleBasedNumberFormat(Locale.US, in TestDurations()
88 RuleBasedNumberFormat.DURATION); in TestDurations()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h522 class U_I18N_API RuleBasedNumberFormat : public NumberFormat {
539 RuleBasedNumberFormat(const UnicodeString& rules, UParseError& perror, UErrorCode& status);
564 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
582 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale,
611 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
629 RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& locale, UErrorCode& status);
640 RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs);
647 RuleBasedNumberFormat& operator=(const RuleBasedNumberFormat& rhs);
653 virtual ~RuleBasedNumberFormat();
965 RuleBasedNumberFormat(); // default constructor not implemented
[all …]
/external/icu/icu4c/source/i18n/
Drbnf.cpp67 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RuleBasedNumberFormat)
654 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
676 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
698 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
719 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
740 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
762 RuleBasedNumberFormat::RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& alocale, UErrorCode… in RuleBasedNumberFormat() function in RuleBasedNumberFormat
825 RuleBasedNumberFormat::RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs) in RuleBasedNumberFormat() function in RuleBasedNumberFormat
847 RuleBasedNumberFormat&
848 RuleBasedNumberFormat::operator=(const RuleBasedNumberFormat& rhs) in operator =()
[all …]
Dnfrule.h29 class RuleBasedNumberFormat; variable
47 const RuleBasedNumberFormat* rbnf,
51 NFRule(const RuleBasedNumberFormat* rbnf);
105 const RuleBasedNumberFormat* formatter;
Dunum.cpp97 retVal = new RuleBasedNumberFormat(pat, Locale(locale), *parseErr, *status); in unum_open()
101 retVal = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale(locale), *status); in unum_open()
105 retVal = new RuleBasedNumberFormat(URBNF_ORDINAL, Locale(locale), *status); in unum_open()
109 retVal = new RuleBasedNumberFormat(URBNF_DURATION, Locale(locale), *status); in unum_open()
113 retVal = new RuleBasedNumberFormat(URBNF_NUMBERING_SYSTEM, Locale(locale), *status); in unum_open()
148 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone()
581 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute()
644 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute()
679 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_toPattern()
Dnfsubs.cpp51 const RuleBasedNumberFormat* formatter,
77 const RuleBasedNumberFormat* formatter, in MultiplierSubstitution()
136 const RuleBasedNumberFormat* formatter,
188 const RuleBasedNumberFormat* formatter, in IntegralPartSubstitution()
214 const RuleBasedNumberFormat* formatter,
248 const RuleBasedNumberFormat* formatter, in AbsoluteValueSubstitution()
282 const RuleBasedNumberFormat* formatter, in NumeratorSubstitution()
323 const RuleBasedNumberFormat* formatter, in NullSubstitution()
358 const RuleBasedNumberFormat* formatter, in makeSubstitution()
444 const RuleBasedNumberFormat* formatter, in NFSubstitution()
[all …]
Dnfsubs.h40 const RuleBasedNumberFormat* rbnf,
61 const RuleBasedNumberFormat* rbnf,
Dnfrs.h34 void parseRules(UnicodeString& rules, const RuleBasedNumberFormat* owner, UErrorCode& status);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFSubstitution.java46 final RuleBasedNumberFormat rbnf;
74 RuleBasedNumberFormat formatter, in makeSubstitution()
165 RuleBasedNumberFormat formatter, in NFSubstitution()
559 RuleBasedNumberFormat formatter, in SameValueSubstitution()
662 RuleBasedNumberFormat formatter, in MultiplierSubstitution()
824 RuleBasedNumberFormat formatter, in ModulusSubstitution()
1062 RuleBasedNumberFormat formatter, in IntegralPartSubstitution()
1167 RuleBasedNumberFormat formatter, in FractionalPartSubstitution()
1368 RuleBasedNumberFormat formatter, in AbsoluteValueSubstitution()
1471 RuleBasedNumberFormat formatter, in NumeratorSubstitution()
[all …]
DRuleBasedNumberFormat.java505 public class RuleBasedNumberFormat extends NumberFormat { class
648 public RuleBasedNumberFormat(String description) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
675 public RuleBasedNumberFormat(String description, String[][] localizations) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
693 public RuleBasedNumberFormat(String description, Locale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
710 public RuleBasedNumberFormat(String description, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
740 public RuleBasedNumberFormat(String description, String[][] localizations, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
757 public RuleBasedNumberFormat(Locale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
775 public RuleBasedNumberFormat(ULocale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
834 public RuleBasedNumberFormat(int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
863 if (!(that instanceof RuleBasedNumberFormat)) { in equals()
[all …]
DRBNFPostProcessor.java20 void init(RuleBasedNumberFormat formatter, String rules); in init()
DMessageFormat.java2253 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat()
2254 RuleBasedNumberFormat.SPELLOUT); in createAppropriateFormat()
2269 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat()
2270 RuleBasedNumberFormat.ORDINAL); in createAppropriateFormat()
2285 RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(ulocale, in createAppropriateFormat()
2286 RuleBasedNumberFormat.DURATION); in createAppropriateFormat()
DNumberFormat.java1367 int desiredRulesType = RuleBasedNumberFormat.NUMBERING_SYSTEM; in createInstance()
1380 desiredRulesType = RuleBasedNumberFormat.SPELLOUT; in createInstance()
1387 RuleBasedNumberFormat r = new RuleBasedNumberFormat(nsLoc,desiredRulesType); in createInstance()
DRBNFChinesePostProcessor.java26 public void init(RuleBasedNumberFormat formatter, String rules) { in init()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DElapsedTimer.java14 import com.ibm.icu.text.RuleBasedNumberFormat;
90 gFormat = new RuleBasedNumberFormat(Locale.US, in getFormat()
91 RuleBasedNumberFormat.DURATION); in getFormat()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DFormatTests.java35 import com.ibm.icu.text.RuleBasedNumberFormat;
1644 …int types[] = {RuleBasedNumberFormat.SPELLOUT, RuleBasedNumberFormat.ORDINAL, RuleBasedNumb…
1650RuleBasedNumberFormat formats[] = new RuleBasedNumberFormat[types.length * locales.length]; in getTestObjects()
1658 formats[i++] = new RuleBasedNumberFormat(cannedRules, locales[l]); in getTestObjects()
1660 formats[i++] = new RuleBasedNumberFormat(locales[l], types[t]); in getTestObjects()

12