Home
last modified time | relevance | path

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

123

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfRoundTripTest.java13 import android.icu.text.RuleBasedNumberFormat;
36 RuleBasedNumberFormat formatter in TestEnglishSpelloutRT()
37 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
38 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpelloutRT()
47 RuleBasedNumberFormat formatter in TestDurationsRT()
48 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
49 RuleBasedNumberFormat.DURATION); in TestDurationsRT()
58 RuleBasedNumberFormat formatter in TestSpanishSpelloutRT()
59 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
60 ""), RuleBasedNumberFormat.SPELLOUT); in TestSpanishSpelloutRT()
[all …]
DRbnfTest.java21 import android.icu.text.RuleBasedNumberFormat;
124 RuleBasedNumberFormat fmt0 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
125 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage()
126 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
139 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage()
189 RuleBasedNumberFormat fmt4 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
190 RuleBasedNumberFormat fmt5 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
229 RuleBasedNumberFormat[] formatters = { in TestUndefinedSpellout()
230 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.SPELLOUT), in TestUndefinedSpellout()
231 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.ORDINAL), in TestUndefinedSpellout()
[all …]
DRbnfLenientScannerTest.java18 import android.icu.text.RuleBasedNumberFormat;
43 RuleBasedNumberFormat formatter in TestDefaultProvider()
44 = new RuleBasedNumberFormat(Locale.US, in TestDefaultProvider()
45 RuleBasedNumberFormat.SPELLOUT); in TestDefaultProvider()
63 RuleBasedNumberFormat formatter in TestEnglishSpellout()
64 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpellout()
65 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpellout()
90 RuleBasedNumberFormat formatter in TestDurations()
91 = new RuleBasedNumberFormat(Locale.US, in TestDurations()
92 RuleBasedNumberFormat.DURATION); in TestDurations()
[all …]
DRBNFParseTest.java13 import android.icu.text.RuleBasedNumberFormat;
87 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); in TestParse()
107 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat()
117 …private void parseList(RuleBasedNumberFormat rbnf_en, RuleBasedNumberFormat rbnf_fr, String[][] li… in parseList()
130 RuleBasedNumberFormat rbnf_en, rbnf_fr; in TestLenientParse()
134 rbnf_en = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
136 rbnf_fr = new RuleBasedNumberFormat(Locale.FRENCH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
/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.java20 import com.ibm.icu.text.RuleBasedNumberFormat;
120 RuleBasedNumberFormat fmt0 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
121 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage()
122 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
135 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage()
185 RuleBasedNumberFormat fmt4 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
186 RuleBasedNumberFormat fmt5 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
225 RuleBasedNumberFormat[] formatters = { in TestUndefinedSpellout()
226 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.SPELLOUT), in TestUndefinedSpellout()
227 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.cpp106 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); in TestHebrewFraction()
150 RuleBasedNumberFormat* formatter in TestAPI()
151 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestAPI()
162 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI()
176 RuleBasedNumberFormat assignResult(URBNF_SPELLOUT, Locale("es", "ES", ""), status); in TestAPI()
207 RuleBasedNumberFormat ruleCtorResult(spelloutRules, Locale::getUS(), perror, status); in TestAPI()
213 RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); in TestAPI()
226 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status); in TestAPI()
236 RuleBasedNumberFormat copyCtorResult(*formatter); in TestAPI()
370 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.h148 …virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testP…
149 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
/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.h553 class U_I18N_API RuleBasedNumberFormat : public NumberFormat {
570 RuleBasedNumberFormat(const UnicodeString& rules, UParseError& perror, UErrorCode& status);
595 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
613 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale,
642 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
660 RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& locale, UErrorCode& status);
671 RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs);
678 RuleBasedNumberFormat& operator=(const RuleBasedNumberFormat& rhs);
684 virtual ~RuleBasedNumberFormat();
996 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
678 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
702 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
725 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
748 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
772 RuleBasedNumberFormat::RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& alocale, UErrorCode… in RuleBasedNumberFormat() function in RuleBasedNumberFormat
837 RuleBasedNumberFormat::RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs) in RuleBasedNumberFormat() function in RuleBasedNumberFormat
861 RuleBasedNumberFormat&
862 RuleBasedNumberFormat::operator=(const RuleBasedNumberFormat& rhs) in operator =()
[all …]
Dunum.cpp99 retVal = new RuleBasedNumberFormat(pat, Locale(locale), *parseErr, *status); in unum_open()
103 retVal = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale(locale), *status); in unum_open()
107 retVal = new RuleBasedNumberFormat(URBNF_ORDINAL, Locale(locale), *status); in unum_open()
111 retVal = new RuleBasedNumberFormat(URBNF_DURATION, Locale(locale), *status); in unum_open()
115 retVal = new RuleBasedNumberFormat(URBNF_NUMBERING_SYSTEM, Locale(locale), *status); in unum_open()
158 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone()
591 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute()
654 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute()
689 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_toPattern()
Dnfrule.h29 class RuleBasedNumberFormat; variable
49 const RuleBasedNumberFormat* rbnf,
53 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
112 const RuleBasedNumberFormat* formatter;
Dnfrs.h33 …NFRuleSet(RuleBasedNumberFormat *owner, UnicodeString* descriptions, int32_t index, UErrorCode& st…
62 const RuleBasedNumberFormat *getOwner() const { return owner; } in getOwner()
74 RuleBasedNumberFormat *owner;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRuleBasedNumberFormat.java537 public class RuleBasedNumberFormat extends NumberFormat { class
698 public RuleBasedNumberFormat(String description) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
725 public RuleBasedNumberFormat(String description, String[][] localizations) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
743 public RuleBasedNumberFormat(String description, Locale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
760 public RuleBasedNumberFormat(String description, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
790 public RuleBasedNumberFormat(String description, String[][] localizations, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
807 public RuleBasedNumberFormat(Locale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
825 public RuleBasedNumberFormat(ULocale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
883 public RuleBasedNumberFormat(int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
912 if (!(that instanceof RuleBasedNumberFormat)) { in equals()
[all …]
DRBNFPostProcessor.java20 void init(RuleBasedNumberFormat formatter, String rules); in init()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedNumberFormat.java538 public class RuleBasedNumberFormat extends NumberFormat { class
694 public RuleBasedNumberFormat(String description) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
720 public RuleBasedNumberFormat(String description, String[][] localizations) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
737 public RuleBasedNumberFormat(String description, Locale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
753 public RuleBasedNumberFormat(String description, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
782 public RuleBasedNumberFormat(String description, String[][] localizations, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
798 public RuleBasedNumberFormat(Locale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
815 public RuleBasedNumberFormat(ULocale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
872 public RuleBasedNumberFormat(int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
899 if (!(that instanceof RuleBasedNumberFormat)) { in equals()
[all …]
DRBNFPostProcessor.java21 void init(RuleBasedNumberFormat formatter, String rules); in init()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DElapsedTimer.java15 import android.icu.text.RuleBasedNumberFormat;
91 gFormat = new RuleBasedNumberFormat(Locale.US, in getFormat()
92 RuleBasedNumberFormat.DURATION); in getFormat()
/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/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfDemo.java46 import com.ibm.icu.text.RuleBasedNumberFormat;
85 spelloutFormatter = new RuleBasedNumberFormat(RbnfSampleRuleSets.usEnglish, Locale.US); in createDemoFrame()
181 RuleBasedNumberFormat temp = new RuleBasedNumberFormat(fieldText); in createDemoFrame()
207 RuleBasedNumberFormat temp = new RuleBasedNumberFormat(fieldText); in createDemoFrame()
399 spelloutFormatter = new RuleBasedNumberFormat(customRuleSet); in makeNewSpelloutFormatter()
408 spelloutFormatter = new RuleBasedNumberFormat(RbnfSampleRuleSets. in makeNewSpelloutFormatter()
439 private RuleBasedNumberFormat spelloutFormatter;

123