Home
last modified time | relevance | path

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

123

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfRoundTripTest.java18 import com.ibm.icu.text.RuleBasedNumberFormat;
27 RuleBasedNumberFormat formatter in TestEnglishSpelloutRT()
28 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
29 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpelloutRT()
39 RuleBasedNumberFormat formatter in TestDurationsRT()
40 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
41 RuleBasedNumberFormat.DURATION); in TestDurationsRT()
51 RuleBasedNumberFormat formatter in TestSpanishSpelloutRT()
52 = new RuleBasedNumberFormat(new Locale("es", "es", in TestSpanishSpelloutRT()
53 ""), RuleBasedNumberFormat.SPELLOUT); in TestSpanishSpelloutRT()
[all …]
DRbnfTest.java26 import com.ibm.icu.text.RuleBasedNumberFormat;
115 RuleBasedNumberFormat fmt0 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
116 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage()
117 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
130 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage()
180 RuleBasedNumberFormat fmt4 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
181 RuleBasedNumberFormat fmt5 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
221 RuleBasedNumberFormat[] formatters = { in TestUndefinedSpellout()
222 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.SPELLOUT), in TestUndefinedSpellout()
223 new RuleBasedNumberFormat(greek, RuleBasedNumberFormat.ORDINAL), in TestUndefinedSpellout()
[all …]
DRBNFParseTest.java20 import com.ibm.icu.text.RuleBasedNumberFormat;
89 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); in TestParse()
109 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat()
119 …private void parseList(RuleBasedNumberFormat rbnf_en, RuleBasedNumberFormat rbnf_fr, String[][] li… in parseList()
134 RuleBasedNumberFormat rbnf_en, rbnf_fr; in TestLenientParse()
138 rbnf_en = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
140 rbnf_fr = new RuleBasedNumberFormat(Locale.FRENCH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
170RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(Locale.JAPAN, RuleBasedNumberFormat.SPELLOU… in TestBadParse()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfRoundTripTest.java19 import android.icu.text.RuleBasedNumberFormat;
30 RuleBasedNumberFormat formatter in TestEnglishSpelloutRT()
31 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpelloutRT()
32 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpelloutRT()
42 RuleBasedNumberFormat formatter in TestDurationsRT()
43 = new RuleBasedNumberFormat(Locale.US, in TestDurationsRT()
44 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.java27 import android.icu.text.RuleBasedNumberFormat;
118 RuleBasedNumberFormat fmt0 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
119 RuleBasedNumberFormat fmt1 = (RuleBasedNumberFormat)fmt0.clone(); in TestCoverage()
120 RuleBasedNumberFormat fmt2 = new RuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT); in TestCoverage()
133 RuleBasedNumberFormat fmt3 = new RuleBasedNumberFormat(durationInSecondsRules); in TestCoverage()
183 RuleBasedNumberFormat fmt4 = new RuleBasedNumberFormat(fracRules, Locale.ENGLISH); in TestCoverage()
184 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 …]
DRbnfLenientScannerTest.java24 import android.icu.text.RuleBasedNumberFormat;
39 RuleBasedNumberFormat formatter in TestDefaultProvider()
40 = new RuleBasedNumberFormat(Locale.US, in TestDefaultProvider()
41 RuleBasedNumberFormat.SPELLOUT); in TestDefaultProvider()
56 RuleBasedNumberFormat formatter in TestEnglishSpellout()
57 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpellout()
58 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpellout()
80 RuleBasedNumberFormat formatter in TestDurations()
81 = new RuleBasedNumberFormat(Locale.US, in TestDurations()
82 RuleBasedNumberFormat.DURATION); in TestDurations()
[all …]
DRBNFParseTest.java21 import android.icu.text.RuleBasedNumberFormat;
92 RuleBasedNumberFormat fmt = new RuleBasedNumberFormat(tests[i], Locale.US); in TestParse()
112 private void parseFormat(RuleBasedNumberFormat rbnf, String s, String target) { in parseFormat()
122 …private void parseList(RuleBasedNumberFormat rbnf_en, RuleBasedNumberFormat rbnf_fr, String[][] li… in parseList()
137 RuleBasedNumberFormat rbnf_en, rbnf_fr; in TestLenientParse()
141 rbnf_en = new RuleBasedNumberFormat(Locale.ENGLISH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
143 rbnf_fr = new RuleBasedNumberFormat(Locale.FRENCH, RuleBasedNumberFormat.SPELLOUT); in TestLenientParse()
173RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(Locale.JAPAN, RuleBasedNumberFormat.SPELLOU… in TestBadParse()
/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.cpp113 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(URBNF_SPELLOUT, "he_IL", status); in TestHebrewFraction()
157 RuleBasedNumberFormat* formatter in TestAPI()
158 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); in TestAPI()
169 RuleBasedNumberFormat* rbnfClone = (RuleBasedNumberFormat *)formatter->clone(); in TestAPI()
183 RuleBasedNumberFormat assignResult(URBNF_SPELLOUT, Locale("es", "ES", ""), status); in TestAPI()
214 RuleBasedNumberFormat ruleCtorResult(spelloutRules, Locale::getUS(), perror, status); in TestAPI()
220 RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); in TestAPI()
233 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status); in TestAPI()
243 RuleBasedNumberFormat copyCtorResult(*formatter); in TestAPI()
377 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.h154 …virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testP…
155 virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
/external/cldr/tools/java/org/unicode/cldr/icu/
DListNumbers.java14 import com.ibm.icu.text.RuleBasedNumberFormat;
113 private static String getDisplayName(RuleBasedNumberFormat spellout, String currRuleName) { in getDisplayName()
166 private static void printLine(RuleBasedNumberFormat[] rbnfs, double num, boolean isRTL) { in printLine()
180 for (RuleBasedNumberFormat rbnf : rbnfs) { in printLine()
188 private static void printSkipLine(RuleBasedNumberFormat[] rbnfs) { in printSkipLine()
191 for (RuleBasedNumberFormat rbnf : rbnfs) { in printSkipLine()
199 private static void printTable(ULocale loc, RuleBasedNumberFormat[] rbnfs) { in printTable()
204 for (RuleBasedNumberFormat rbnf : rbnfs) { in printTable()
214 for (RuleBasedNumberFormat rbnf : rbnfs) { in printTable()
250 RuleBasedNumberFormat[] rbnfs = new RuleBasedNumberFormat[] { in main()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/format/
DRbnfLenientScannerTest.java23 import com.ibm.icu.text.RuleBasedNumberFormat;
36 RuleBasedNumberFormat formatter in TestDefaultProvider()
37 = new RuleBasedNumberFormat(Locale.US, in TestDefaultProvider()
38 RuleBasedNumberFormat.SPELLOUT); in TestDefaultProvider()
53 RuleBasedNumberFormat formatter in TestEnglishSpellout()
54 = new RuleBasedNumberFormat(Locale.US, in TestEnglishSpellout()
55 RuleBasedNumberFormat.SPELLOUT); in TestEnglishSpellout()
77 RuleBasedNumberFormat formatter in TestDurations()
78 = new RuleBasedNumberFormat(Locale.US, in TestDurations()
79 RuleBasedNumberFormat.DURATION); in TestDurations()
[all …]
/external/icu/icu4c/source/i18n/
Drbnf.cpp73 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(RuleBasedNumberFormat)
680 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
705 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
730 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
754 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
778 RuleBasedNumberFormat::RuleBasedNumberFormat(const UnicodeString& description, in RuleBasedNumberFormat() function in RuleBasedNumberFormat
803 RuleBasedNumberFormat::RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& alocale, UErrorCode… in RuleBasedNumberFormat() function in RuleBasedNumberFormat
869 RuleBasedNumberFormat::RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs) in RuleBasedNumberFormat() function in RuleBasedNumberFormat
894 RuleBasedNumberFormat&
895 RuleBasedNumberFormat::operator=(const RuleBasedNumberFormat& rhs) in operator =()
[all …]
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()
667 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_getTextAttribute()
730 RuleBasedNumberFormat* rbnf = dynamic_cast<RuleBasedNumberFormat*>(nf); in unum_setTextAttribute()
765 const RuleBasedNumberFormat* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(nf); in unum_toPattern()
Dnfrule.h30 class RuleBasedNumberFormat; variable
50 const RuleBasedNumberFormat* rbnf,
54 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
115 const RuleBasedNumberFormat* formatter;
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/icu4c/source/i18n/unicode/
Drbnf.h560 class U_I18N_API RuleBasedNumberFormat : public NumberFormat {
577 RuleBasedNumberFormat(const UnicodeString& rules, UParseError& perror, UErrorCode& status);
602 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
620 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale,
649 RuleBasedNumberFormat(const UnicodeString& rules, const UnicodeString& localizations,
667 RuleBasedNumberFormat(URBNFRuleSetTag tag, const Locale& locale, UErrorCode& status);
678 RuleBasedNumberFormat(const RuleBasedNumberFormat& rhs);
685 RuleBasedNumberFormat& operator=(const RuleBasedNumberFormat& rhs);
691 virtual ~RuleBasedNumberFormat();
1063 RuleBasedNumberFormat(); // default constructor not implemented
[all …]
/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/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 …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DElapsedTimer.java17 import android.icu.text.RuleBasedNumberFormat;
97 gFormat = new RuleBasedNumberFormat(Locale.US, in getFormat()
98 RuleBasedNumberFormat.DURATION); in getFormat()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
DElapsedTimer.java16 import com.ibm.icu.text.RuleBasedNumberFormat;
94 gFormat = new RuleBasedNumberFormat(Locale.US, in getFormat()
95 RuleBasedNumberFormat.DURATION); in getFormat()
/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