Home
last modified time | relevance | path

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

123

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfRoundTripTest.java17 import android.icu.text.RuleBasedNumberFormat;
25 RuleBasedNumberFormat formatter in TestEnglishSpelloutRT()
26 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
27 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpelloutRT()
37 RuleBasedNumberFormat formatter in TestDurationsRT()
38 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
39 RuleBasedNumberFormat.DURATION); in TestDurationsRT()
49 RuleBasedNumberFormat formatter in TestSpanishSpelloutRT()
50 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
51 ""), RuleBasedNumberFormat.SPELLOUT); in TestSpanishSpelloutRT()
[all …]
DRbnfTest.java25 import android.icu.text.RuleBasedNumberFormat;
113 RuleBasedNumberFormat fmt0 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
114 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage()
115 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
128 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage()
178 RuleBasedNumberFormat fmt4 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
179 RuleBasedNumberFormat fmt5 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
219 RuleBasedNumberFormat[] formatters = { in TestUndefinedSpellout()
220 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.SPELLOUT), in TestUndefinedSpellout()
221 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.ORDINAL), in TestUndefinedSpellout()
[all …]
DRbnfLenientScannerTest.java22 import android.icu.text.RuleBasedNumberFormat;
34 RuleBasedNumberFormat formatter in TestDefaultProvider()
35 = new RuleBasedNumberFormat(Locale.US, in TestDefaultProvider()
36 RuleBasedNumberFormat.SPELLOUT); in TestDefaultProvider()
51 RuleBasedNumberFormat formatter in TestEnglishSpellout()
52 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpellout()
53 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpellout()
75 RuleBasedNumberFormat formatter in TestDurations()
76 = new RuleBasedNumberFormat(Locale.US, in TestDurations()
77 RuleBasedNumberFormat.DURATION); in TestDurations()
[all …]
DRBNFParseTest.java17 import android.icu.text.RuleBasedNumberFormat;
85 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); in TestParse()
105 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat()
115 …private void parseList(RuleBasedNumberFormat rbnf_en, RuleBasedNumberFormat rbnf_fr, String[][] li… in parseList()
129 RuleBasedNumberFormat rbnf_en, rbnf_fr; in TestLenientParse()
133 rbnf_en = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
135 rbnf_fr = new RuleBasedNumberFormat(Locale.FRENCH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfRoundTripTest.java16 import com.ibm.icu.text.RuleBasedNumberFormat;
24 RuleBasedNumberFormat formatter in TestEnglishSpelloutRT()
25 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
26 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpelloutRT()
36 RuleBasedNumberFormat formatter in TestDurationsRT()
37 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
38 RuleBasedNumberFormat.DURATION); in TestDurationsRT()
48 RuleBasedNumberFormat formatter in TestSpanishSpelloutRT()
49 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
50 ""), RuleBasedNumberFormat.SPELLOUT); in TestSpanishSpelloutRT()
[all …]
DRbnfTest.java24 import com.ibm.icu.text.RuleBasedNumberFormat;
112 RuleBasedNumberFormat fmt0 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
113 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage()
114 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
127 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage()
177 RuleBasedNumberFormat fmt4 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
178 RuleBasedNumberFormat fmt5 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
218 RuleBasedNumberFormat[] formatters = { in TestUndefinedSpellout()
219 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.SPELLOUT), in TestUndefinedSpellout()
220 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.ORDINAL), in TestUndefinedSpellout()
[all …]
DRBNFParseTest.java16 import com.ibm.icu.text.RuleBasedNumberFormat;
84 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); in TestParse()
104 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat()
114 …private void parseList(RuleBasedNumberFormat rbnf_en, RuleBasedNumberFormat rbnf_fr, String[][] li… in parseList()
128 RuleBasedNumberFormat rbnf_en, rbnf_fr; in TestLenientParse()
132 rbnf_en = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
134 rbnf_fr = new RuleBasedNumberFormat(Locale.FRENCH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
/external/icu/icu4c/source/test/intltest/
Ditrbnfrt.cpp66 RuleBasedNumberFormat* formatter in TestEnglishSpelloutRT()
67 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestEnglishSpelloutRT()
84 RuleBasedNumberFormat* formatter in TestDurationsRT()
85 = new RuleBasedNumberFormat(URBNF_DURATION, Locale::getUS(), status); in TestDurationsRT()
102 RuleBasedNumberFormat* formatter in TestSpanishSpelloutRT()
103 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("es", "es"), status); in TestSpanishSpelloutRT()
120 RuleBasedNumberFormat* formatter in TestFrenchSpelloutRT()
121 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getFrance(), status); in TestFrenchSpelloutRT()
138 RuleBasedNumberFormat* formatter in TestSwissFrenchSpelloutRT()
139 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale("fr", "CH"), status); in TestSwissFrenchSpelloutRT()
[all …]
Ditrbnf.cpp109 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); in TestHebrewFraction()
153 RuleBasedNumberFormat* formatter in TestAPI()
154 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestAPI()
165 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI()
179 RuleBasedNumberFormat assignResult(URBNF_SPELLOUT, Locale("es", "ES", ""), status); in TestAPI()
210 RuleBasedNumberFormat ruleCtorResult(spelloutRules, Locale::getUS(), perror, status); in TestAPI()
216 RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); in TestAPI()
229 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status); in TestAPI()
239 RuleBasedNumberFormat copyCtorResult(*formatter); in TestAPI()
373 RuleBasedNumberFormat formatter(rules, Locale("ru"), pError, status); in TestMultiplePluralRules()
[all …]
Ditrbnfp.cpp127RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(rule, Locale::getUS(), perr, status); in TestParse()
148 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status) { in testfmt()
161 IntlTestRBNFParse::testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status) { in testfmt()
Ditrbnfp.h33 void testfmt(RuleBasedNumberFormat* formatter, double val, UErrorCode& status);
34 void testfmt(RuleBasedNumberFormat* formatter, int val, UErrorCode& status);
Ditrbnf.h150 …virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testP…
151 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DRbnfLenientScannerTest.java21 import com.ibm.icu.text.RuleBasedNumberFormat;
33 RuleBasedNumberFormat formatter in TestDefaultProvider()
34 = new RuleBasedNumberFormat(Locale.US, in TestDefaultProvider()
35 RuleBasedNumberFormat.SPELLOUT); in TestDefaultProvider()
50 RuleBasedNumberFormat formatter in TestEnglishSpellout()
51 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpellout()
52 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpellout()
74 RuleBasedNumberFormat formatter in TestDurations()
75 = new RuleBasedNumberFormat(Locale.US, in TestDurations()
76 RuleBasedNumberFormat.DURATION); in TestDurations()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h561 class U_I18N_API RuleBasedNumberFormat : public NumberFormat {
578 RuleBasedNumberFormat(const UnicodeString& rules, UParseError& perror, UErrorCode& status);
603 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
621 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale,
650 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
668 RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& locale, UErrorCode& status);
679 RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs);
686 RuleBasedNumberFormat& operator=(const RuleBasedNumberFormat& rhs);
692 virtual ~RuleBasedNumberFormat();
1004 RuleBasedNumberFormat(); // default constructor not implemented
[all …]
/external/icu/icu4c/source/i18n/
Drbnf.cpp69 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RuleBasedNumberFormat)
656 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
680 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
704 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
727 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
750 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
774 RuleBasedNumberFormat::RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& alocale, UErrorCode… in RuleBasedNumberFormat() function in RuleBasedNumberFormat
839 RuleBasedNumberFormat::RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs) in RuleBasedNumberFormat() function in RuleBasedNumberFormat
863 RuleBasedNumberFormat&
864 RuleBasedNumberFormat::operator=(const RuleBasedNumberFormat& rhs) in operator =()
[all …]
Dnfrule.h31 class RuleBasedNumberFormat; variable
51 const RuleBasedNumberFormat* rbnf,
55 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
114 const RuleBasedNumberFormat* formatter;
Dunum.cpp101 retVal = new RuleBasedNumberFormat(pat, Locale(locale), *parseErr, *status); in unum_open()
105 retVal = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale(locale), *status); in unum_open()
109 retVal = new RuleBasedNumberFormat(URBNF_ORDINAL, Locale(locale), *status); in unum_open()
113 retVal = new RuleBasedNumberFormat(URBNF_DURATION, Locale(locale), *status); in unum_open()
117 retVal = new RuleBasedNumberFormat(URBNF_NUMBERING_SYSTEM, Locale(locale), *status); in unum_open()
160 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_clone()
593 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute()
656 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute()
691 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_toPattern()
Dnfrs.h35 …NFRuleSet(RuleBasedNumberFormat *owner, UnicodeString* descriptions, int32_t index, UErrorCode& st…
64 const RuleBasedNumberFormat *getOwner() const { return owner; } in getOwner()
76 RuleBasedNumberFormat *owner;
/external/icu/android_icu4j/src/main/java/android/icu/text/
DRuleBasedNumberFormat.java541 public class RuleBasedNumberFormat extends NumberFormat { class
697 public RuleBasedNumberFormat(String description) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
723 public RuleBasedNumberFormat(String description, String[][] localizations) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
740 public RuleBasedNumberFormat(String description, Locale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
756 public RuleBasedNumberFormat(String description, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
785 public RuleBasedNumberFormat(String description, String[][] localizations, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
801 public RuleBasedNumberFormat(Locale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
818 public RuleBasedNumberFormat(ULocale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
875 public RuleBasedNumberFormat(int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
904 if (!(that instanceof RuleBasedNumberFormat)) { in equals()
[all …]
DRBNFPostProcessor.java23 void init(RuleBasedNumberFormat formatter, String rules); in init()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DElapsedTimer.java17 import android.icu.text.RuleBasedNumberFormat;
93 gFormat = new RuleBasedNumberFormat(Locale.US, in getFormat()
94 RuleBasedNumberFormat.DURATION); in getFormat()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DElapsedTimer.java16 import com.ibm.icu.text.RuleBasedNumberFormat;
92 gFormat = new RuleBasedNumberFormat(Locale.US, in getFormat()
93 RuleBasedNumberFormat.DURATION); in getFormat()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DRuleBasedNumberFormat.java540 public class RuleBasedNumberFormat extends NumberFormat { class
701 public RuleBasedNumberFormat(String description) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
728 public RuleBasedNumberFormat(String description, String[][] localizations) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
746 public RuleBasedNumberFormat(String description, Locale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
763 public RuleBasedNumberFormat(String description, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
793 public RuleBasedNumberFormat(String description, String[][] localizations, ULocale locale) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
810 public RuleBasedNumberFormat(Locale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
828 public RuleBasedNumberFormat(ULocale locale, int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
886 public RuleBasedNumberFormat(int format) { in RuleBasedNumberFormat() method in RuleBasedNumberFormat
917 if (!(that instanceof RuleBasedNumberFormat)) { in equals()
[all …]
DRBNFPostProcessor.java22 void init(RuleBasedNumberFormat formatter, String rules); in init()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/rbnf/
DRbnfDemo.java48 import com.ibm.icu.text.RuleBasedNumberFormat;
87 spelloutFormatter = new RuleBasedNumberFormat(RbnfSampleRuleSets.usEnglish, Locale.US); in createDemoFrame()
183 RuleBasedNumberFormat temp = new RuleBasedNumberFormat(fieldText); in createDemoFrame()
209 RuleBasedNumberFormat temp = new RuleBasedNumberFormat(fieldText); in createDemoFrame()
401 spelloutFormatter = new RuleBasedNumberFormat(customRuleSet); in makeNewSpelloutFormatter()
410 spelloutFormatter = new RuleBasedNumberFormat(RbnfSampleRuleSets. in makeNewSpelloutFormatter()
441 private RuleBasedNumberFormat spelloutFormatter;

123