/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | NumberFormatRegistrationTest.java | 18 import com.ibm.icu.text.NumberFormat; 19 import com.ibm.icu.text.NumberFormat.SimpleNumberFormatFactory; 30 NumberFormat currencyStyle; in TestRegistration() 38 currencyStyle = NumberFormat.getIntegerInstance(swapLoc); in TestRegistration() 42 public NumberFormat createFormat(ULocale loc, int formatType) { in TestRegistration() 54 NumberFormat.unregister(null); in TestRegistration() 62 NumberFormat.registerFactory(null); in TestRegistration() 74 if (NumberFormat.unregister("")) { in TestRegistration() 83 NumberFormat f0 = NumberFormat.getIntegerInstance(SWAP_LOC); in TestRegistration() 84 NumberFormat f1 = NumberFormat.getIntegerInstance(SRC_LOC); in TestRegistration() [all …]
|
D | IntlTestDecimalFormatAPIC.java | 34 import com.ibm.icu.text.NumberFormat; 78 … cust2 = new DecimalFormat(pattern, symbols, infoInput, NumberFormat.PLURALCURRENCYSTYLE); in TestAPI() 312 t_Format(1, number, NumberFormat.getNumberInstance(us), in testFormatToCharacterIterator() 316 t_Format(3, number, NumberFormat.getPercentInstance(us), in testFormatToCharacterIterator() 332 t_Format(7, number, NumberFormat.getCurrencyInstance(us), in testFormatToCharacterIterator() 336 t_Format(8, negativeNumber, NumberFormat.getCurrencyInstance(us), in testFormatToCharacterIterator() 341 t_Format(11, number, NumberFormat.getNumberInstance(us), in testFormatToCharacterIterator() 346 t_Format(12, number, NumberFormat.getNumberInstance(us), in testFormatToCharacterIterator() 352 v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); in getNumberVectorUS() 353 v.add(new FieldContainer(3, 4, NumberFormat.Field.DECIMAL_SEPARATOR)); in getNumberVectorUS() [all …]
|
D | IntlTestNumberFormatAPI.java | 31 import com.ibm.icu.text.NumberFormat; 48 NumberFormat def = NumberFormat.getInstance(); in TestAPI() 50 NumberFormat fr = NumberFormat.getInstance(Locale.FRENCH); in TestAPI() 52 NumberFormat cur = NumberFormat.getCurrencyInstance(); in TestAPI() 54 NumberFormat cur_fr = NumberFormat.getCurrencyInstance(Locale.FRENCH); in TestAPI() 56 NumberFormat per = NumberFormat.getPercentInstance(); in TestAPI() 58 NumberFormat per_fr = NumberFormat.getPercentInstance(Locale.FRENCH); in TestAPI() 60 NumberFormat integer = NumberFormat.getIntegerInstance(); in TestAPI() 62 NumberFormat int_fr = NumberFormat.getIntegerInstance(Locale.FRENCH); in TestAPI() 154 final Locale[] locales = NumberFormat.getAvailableLocales(); in TestAPI() [all …]
|
D | NumberFormatTest.java | 60 import com.ibm.icu.text.NumberFormat; 61 import com.ibm.icu.text.NumberFormat.NumberFormatFactory; 62 import com.ibm.icu.text.NumberFormat.SimpleNumberFormatFactory; 196 NumberFormat nff = NumberFormat.getNumberInstance(ULocale.ENGLISH); in Test10419RoundingWith0FractionDigits() 206 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("fa")); in TestParseNegativeWithFaLocale() 217 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("en")); in TestParseNegativeWithAlternativeMinusSign() 243 String s = ((NumberFormat)fmt).format(0); in TestPatterns() 251 s = ((NumberFormat)fmt).format(BigInteger.ZERO); in TestPatterns() 332 s = ((NumberFormat) fmt).format(val[v]); in TestExponential() 347 s = ((NumberFormat) fmt).format(lval[v]); in TestExponential() [all …]
|
D | NumberFormatRegressionTest.java | 33 import com.ibm.icu.text.NumberFormat; 47 NumberFormat nf = NumberFormat.getInstance(Locale.US); in Test4161100() 76 NumberFormat nf = NumberFormat.getInstance(loc); in TestJ691() 112 NumberFormat nf1 = NumberFormat.getIntegerInstance(); in Test4408066() 113 NumberFormat nf2 = NumberFormat.getIntegerInstance(Locale.CHINA); in Test4408066() 188 NumberFormat format = (NumberFormat) ois.readObject(); in TestSerialization() 283 NumberFormat nfmt = NumberFormat.getInstance(); in TestT5698() 312 NumberFormat nfmt = NumberFormat.getInstance(); in TestSurrogatesParsing() 327 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() 345 void checkNBSPPatternRT(String testcase, NumberFormat nf) { in checkNBSPPatternRT() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | NumberFormatRegistrationTest.java | 19 import android.icu.text.NumberFormat; 20 import android.icu.text.NumberFormat.SimpleNumberFormatFactory; 33 NumberFormat currencyStyle; in TestRegistration() 41 currencyStyle = NumberFormat.getIntegerInstance(swapLoc); in TestRegistration() 45 public NumberFormat createFormat(ULocale loc, int formatType) { in TestRegistration() 57 NumberFormat.unregister(null); in TestRegistration() 65 NumberFormat.registerFactory(null); in TestRegistration() 77 if (NumberFormat.unregister("")) { in TestRegistration() 86 NumberFormat f0 = NumberFormat.getIntegerInstance(SWAP_LOC); in TestRegistration() 87 NumberFormat f1 = NumberFormat.getIntegerInstance(SRC_LOC); in TestRegistration() [all …]
|
D | IntlTestDecimalFormatAPIC.java | 35 import android.icu.text.NumberFormat; 81 … cust2 = new DecimalFormat(pattern, symbols, infoInput, NumberFormat.PLURALCURRENCYSTYLE); in TestAPI() 315 t_Format(1, number, NumberFormat.getNumberInstance(us), in testFormatToCharacterIterator() 319 t_Format(3, number, NumberFormat.getPercentInstance(us), in testFormatToCharacterIterator() 335 t_Format(7, number, NumberFormat.getCurrencyInstance(us), in testFormatToCharacterIterator() 339 t_Format(8, negativeNumber, NumberFormat.getCurrencyInstance(us), in testFormatToCharacterIterator() 344 t_Format(11, number, NumberFormat.getNumberInstance(us), in testFormatToCharacterIterator() 349 t_Format(12, number, NumberFormat.getNumberInstance(us), in testFormatToCharacterIterator() 355 v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER)); in getNumberVectorUS() 356 v.add(new FieldContainer(3, 4, NumberFormat.Field.DECIMAL_SEPARATOR)); in getNumberVectorUS() [all …]
|
D | NumberFormatTest.java | 61 import android.icu.text.NumberFormat; 62 import android.icu.text.NumberFormat.NumberFormatFactory; 63 import android.icu.text.NumberFormat.SimpleNumberFormatFactory; 199 NumberFormat nff = NumberFormat.getNumberInstance(ULocale.ENGLISH); in Test10419RoundingWith0FractionDigits() 209 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("fa")); in TestParseNegativeWithFaLocale() 220 DecimalFormat parser = (DecimalFormat) NumberFormat.getInstance(new ULocale("en")); in TestParseNegativeWithAlternativeMinusSign() 246 String s = ((NumberFormat)fmt).format(0); in TestPatterns() 254 s = ((NumberFormat)fmt).format(BigInteger.ZERO); in TestPatterns() 335 s = ((NumberFormat) fmt).format(val[v]); in TestExponential() 350 s = ((NumberFormat) fmt).format(lval[v]); in TestExponential() [all …]
|
D | IntlTestNumberFormatAPI.java | 32 import android.icu.text.NumberFormat; 51 NumberFormat def = NumberFormat.getInstance(); in TestAPI() 53 NumberFormat fr = NumberFormat.getInstance(Locale.FRENCH); in TestAPI() 55 NumberFormat cur = NumberFormat.getCurrencyInstance(); in TestAPI() 57 NumberFormat cur_fr = NumberFormat.getCurrencyInstance(Locale.FRENCH); in TestAPI() 59 NumberFormat per = NumberFormat.getPercentInstance(); in TestAPI() 61 NumberFormat per_fr = NumberFormat.getPercentInstance(Locale.FRENCH); in TestAPI() 63 NumberFormat integer = NumberFormat.getIntegerInstance(); in TestAPI() 65 NumberFormat int_fr = NumberFormat.getIntegerInstance(Locale.FRENCH); in TestAPI() 157 final Locale[] locales = NumberFormat.getAvailableLocales(); in TestAPI() [all …]
|
D | NumberFormatRegressionTest.java | 34 import android.icu.text.NumberFormat; 50 NumberFormat nf = NumberFormat.getInstance(Locale.US); in Test4161100() 79 NumberFormat nf = NumberFormat.getInstance(loc); in TestJ691() 115 NumberFormat nf1 = NumberFormat.getIntegerInstance(); in Test4408066() 116 NumberFormat nf2 = NumberFormat.getIntegerInstance(Locale.CHINA); in Test4408066() 191 NumberFormat format = (NumberFormat) ois.readObject(); in TestSerialization() 286 NumberFormat nfmt = NumberFormat.getInstance(); in TestT5698() 315 NumberFormat nfmt = NumberFormat.getInstance(); in TestSurrogatesParsing() 330 void checkNBSPPatternRtNum(String testcase, NumberFormat nf, double myNumber) { in checkNBSPPatternRtNum() 348 void checkNBSPPatternRT(String testcase, NumberFormat nf) { in checkNBSPPatternRT() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | numfmt.cpp | 108 const int32_t icu::NumberFormat::gDefaultMaxIntegerDigits = 2000000000; 109 const int32_t icu::NumberFormat::gDefaultMinIntegerDigits = 127; 199 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 231 NumberFormat::NumberFormat() in NumberFormat() function in NumberFormat 246 NumberFormat::~NumberFormat() in ~NumberFormat() 257 NumberFormat::NumberFormat(const NumberFormat &source) in NumberFormat() function in NumberFormat 266 NumberFormat& 267 NumberFormat::operator=(const NumberFormat& rhs) in operator =() 289 NumberFormat::operator==(const Format& that) const in operator ==() 292 NumberFormat* other = (NumberFormat*)&that; in operator ==() [all …]
|
/external/cronet/third_party/icu/source/i18n/ |
D | numfmt.cpp | 108 const int32_t icu::NumberFormat::gDefaultMaxIntegerDigits = 2000000000; 109 const int32_t icu::NumberFormat::gDefaultMinIntegerDigits = 127; 199 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 231 NumberFormat::NumberFormat() in NumberFormat() function in NumberFormat 246 NumberFormat::~NumberFormat() in ~NumberFormat() 257 NumberFormat::NumberFormat(const NumberFormat &source) in NumberFormat() function in NumberFormat 266 NumberFormat& 267 NumberFormat::operator=(const NumberFormat& rhs) in operator =() 289 NumberFormat::operator==(const Format& that) const in operator ==() 292 NumberFormat* other = (NumberFormat*)&that; in operator ==() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
D | AbstractFormat.java | 22 import java.text.NumberFormat; 34 public abstract class AbstractFormat extends NumberFormat implements Serializable { 40 protected NumberFormat denominatorFormat; 43 protected NumberFormat numeratorFormat; 58 protected AbstractFormat(final NumberFormat format) { in AbstractFormat() 59 this(format, (NumberFormat) format.clone()); in AbstractFormat() 68 protected AbstractFormat(final NumberFormat numeratorFormat, in AbstractFormat() 69 final NumberFormat denominatorFormat) { in AbstractFormat() 80 protected static NumberFormat getDefaultNumberFormat() { in getDefaultNumberFormat() 91 protected static NumberFormat getDefaultNumberFormat(final Locale locale) { in getDefaultNumberFormat() [all …]
|
/external/cronet/third_party/icu/source/test/intltest/ |
D | nmfmapts.cpp | 71 NumberFormat *def = NumberFormat::createInstance(status); in testAPI() 77 NumberFormat *fr = NumberFormat::createInstance(Locale::getFrench(), status); in testAPI() 82 NumberFormat *cur = NumberFormat::createCurrencyInstance(status); in testAPI() 88 NumberFormat *cur_fr = NumberFormat::createCurrencyInstance(Locale::getFrench(), status); in testAPI() 93 NumberFormat *per = NumberFormat::createPercentInstance(status); in testAPI() 99 NumberFormat *per_fr = NumberFormat::createPercentInstance(Locale::getFrench(), status); in testAPI() 192 const Locale *locales = NumberFormat::getAvailableLocales(count); in testAPI() 235 NumberFormat *test = new DecimalFormat(status); in testAPI() 259 NumberFormat* currencyStyle; 266 currencyStyle = NumberFormat::createInstance(SWAP_LOC, status); in NFTestFactory() [all …]
|
D | numfmtst.h | 316 …void expectParseCurrency(const NumberFormat &fmt, const UChar* currency, double amount, const char… 326 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 328 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 330 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2() 334 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 336 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2() 340 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 342 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() 346 void expect(NumberFormat& fmt, const Formattable& n, 349 void expect(NumberFormat& fmt, const Formattable& n, [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | nmfmapts.cpp | 71 NumberFormat *def = NumberFormat::createInstance(status); in testAPI() 77 NumberFormat *fr = NumberFormat::createInstance(Locale::getFrench(), status); in testAPI() 82 NumberFormat *cur = NumberFormat::createCurrencyInstance(status); in testAPI() 88 NumberFormat *cur_fr = NumberFormat::createCurrencyInstance(Locale::getFrench(), status); in testAPI() 93 NumberFormat *per = NumberFormat::createPercentInstance(status); in testAPI() 99 NumberFormat *per_fr = NumberFormat::createPercentInstance(Locale::getFrench(), status); in testAPI() 192 const Locale *locales = NumberFormat::getAvailableLocales(count); in testAPI() 235 NumberFormat *test = new DecimalFormat(status); in testAPI() 259 NumberFormat* currencyStyle; 266 currencyStyle = NumberFormat::createInstance(SWAP_LOC, status); in NFTestFactory() [all …]
|
D | numfmtst.h | 316 …void expectParseCurrency(const NumberFormat &fmt, const UChar* currency, double amount, const char… 326 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 328 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 330 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2() 334 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 336 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2() 340 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 342 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() 346 void expect(NumberFormat& fmt, const Formattable& n, 349 void expect(NumberFormat& fmt, const Formattable& n, [all …]
|
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | NumberFormatTest.java | 13 import java.text.NumberFormat; 37 for (Locale loc : NumberFormat.getAvailableLocales()) { in TestGetInstance() 51 NumberFormat nf; in checkGetInstance() 64 NumberFormat nfIcu = null; in checkGetInstance() 73 private NumberFormat getJDKInstance(int type, Locale loc, String[] methodName) { in getJDKInstance() 74 NumberFormat nf = null; in getJDKInstance() 79 nf = NumberFormat.getInstance(loc); in getJDKInstance() 83 nf = NumberFormat.getNumberInstance(loc); in getJDKInstance() 87 nf = NumberFormat.getIntegerInstance(loc); in getJDKInstance() 91 nf = NumberFormat.getPercentInstance(loc); in getJDKInstance() [all …]
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
D | NumberFormatProviderICU.java | 11 import java.text.NumberFormat; 28 public NumberFormat getCurrencyInstance(Locale locale) { in getCurrencyInstance() 33 public NumberFormat getIntegerInstance(Locale locale) { in getIntegerInstance() 38 public NumberFormat getNumberInstance(Locale locale) { in getNumberInstance() 43 public NumberFormat getPercentInstance(Locale locale) { in getPercentInstance() 52 private NumberFormat getInstance(int type, Locale locale) { in getInstance() 53 com.ibm.icu.text.NumberFormat icuNfmt; in getInstance() 57 icuNfmt = com.ibm.icu.text.NumberFormat.getNumberInstance(actual); in getInstance() 60 icuNfmt = com.ibm.icu.text.NumberFormat.getIntegerInstance(actual); in getInstance() 63 icuNfmt = com.ibm.icu.text.NumberFormat.getCurrencyInstance(actual); in getInstance() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | numfmt.h | 175 class U_I18N_API NumberFormat : public Format { 261 virtual ~NumberFormat(); 269 virtual NumberFormat* clone() const override = 0; 731 static NumberFormat* U_EXPORT2 createInstance(UErrorCode&); 742 static NumberFormat* U_EXPORT2 createInstance(const Locale& inLocale, 756 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, 767 static NumberFormat* internalCreateInstance( 791 static NumberFormat* U_EXPORT2 createCurrencyInstance(UErrorCode&); 801 static NumberFormat* U_EXPORT2 createCurrencyInstance(const Locale& inLocale, 811 static NumberFormat* U_EXPORT2 createPercentInstance(UErrorCode&); [all …]
|
/external/cronet/third_party/icu/source/i18n/unicode/ |
D | numfmt.h | 175 class U_I18N_API NumberFormat : public Format { 261 virtual ~NumberFormat(); 269 virtual NumberFormat* clone() const override = 0; 731 static NumberFormat* U_EXPORT2 createInstance(UErrorCode&); 742 static NumberFormat* U_EXPORT2 createInstance(const Locale& inLocale, 756 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, 767 static NumberFormat* internalCreateInstance( 791 static NumberFormat* U_EXPORT2 createCurrencyInstance(UErrorCode&); 801 static NumberFormat* U_EXPORT2 createCurrencyInstance(const Locale& inLocale, 811 static NumberFormat* U_EXPORT2 createPercentInstance(UErrorCode&); [all …]
|
/external/icu/libicu/cts_headers/unicode/ |
D | numfmt.h | 175 class U_I18N_API NumberFormat : public Format { 261 virtual ~NumberFormat(); 269 virtual NumberFormat* clone() const override = 0; 731 static NumberFormat* U_EXPORT2 createInstance(UErrorCode&); 742 static NumberFormat* U_EXPORT2 createInstance(const Locale& inLocale, 756 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, 767 static NumberFormat* internalCreateInstance( 791 static NumberFormat* U_EXPORT2 createCurrencyInstance(UErrorCode&); 801 static NumberFormat* U_EXPORT2 createCurrencyInstance(const Locale& inLocale, 811 static NumberFormat* U_EXPORT2 createPercentInstance(UErrorCode&); [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NumberFormatServiceShim.java | 23 import com.ibm.icu.text.NumberFormat.NumberFormatFactory; 27 class NumberFormatServiceShim extends NumberFormat.NumberFormatShim { 78 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() 86 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance() 91 fmt = (NumberFormat)fmt.clone(); in createInstance() 95 if ( choice == NumberFormat.CURRENCYSTYLE || in createInstance() 96 choice == NumberFormat.ISOCURRENCYSTYLE || in createInstance() 97 choice == NumberFormat.PLURALCURRENCYSTYLE || in createInstance() 98 choice == NumberFormat.ACCOUNTINGCURRENCYSTYLE || in createInstance() 99 choice == NumberFormat.CASHCURRENCYSTYLE || in createInstance() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NumberFormatServiceShim.java | 24 import android.icu.text.NumberFormat.NumberFormatFactory; 28 class NumberFormatServiceShim extends NumberFormat.NumberFormatShim { 79 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() 87 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance() 92 fmt = (NumberFormat)fmt.clone(); in createInstance() 96 if ( choice == NumberFormat.CURRENCYSTYLE || in createInstance() 97 choice == NumberFormat.ISOCURRENCYSTYLE || in createInstance() 98 choice == NumberFormat.PLURALCURRENCYSTYLE || in createInstance() 99 choice == NumberFormat.ACCOUNTINGCURRENCYSTYLE || in createInstance() 100 choice == NumberFormat.CASHCURRENCYSTYLE || in createInstance() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
D | ComplexFormat.java | 21 import java.text.NumberFormat; 50 private NumberFormat imaginaryFormat; 53 private NumberFormat realFormat; 68 public ComplexFormat(NumberFormat format) { in ComplexFormat() 78 public ComplexFormat(NumberFormat realFormat, NumberFormat imaginaryFormat) { in ComplexFormat() 97 public ComplexFormat(String imaginaryCharacter, NumberFormat format) { in ComplexFormat() 98 this(imaginaryCharacter, format, (NumberFormat)format.clone()); in ComplexFormat() 109 public ComplexFormat(String imaginaryCharacter, NumberFormat realFormat, in ComplexFormat() 110 NumberFormat imaginaryFormat) { in ComplexFormat() 123 return NumberFormat.getAvailableLocales(); in getAvailableLocales() [all …]
|