/libcore/luni/src/main/java/java/text/spi/ |
NumberFormatProvider.java | 20 import java.text.NumberFormat; 26 * {@code NumberFormat} instances. 40 * Returns an instance of {@code NumberFormat} that formats 44 * @return an instance of {@code NumberFormat} 50 public abstract NumberFormat getCurrencyInstance(Locale locale); 53 * Returns an instance of {@code NumberFormat} that formats 54 * integer values for the given locale. The returned {@code NumberFormat} 60 * @return an instance of {@code NumberFormat} 66 public abstract NumberFormat getIntegerInstance(Locale locale); 69 * Returns an instance of {@code NumberFormat} class for genera [all...] |
/libcore/support/src/test/java/tests/support/ |
Support_DecimalFormat.java | 21 import java.text.NumberFormat; 42 DecimalFormat format = (DecimalFormat) NumberFormat 47 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, 49 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, 52 NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); 54 NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); 55 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, 59 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, 61 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, 64 NumberFormat.Field.EXPONENT_SIGN, 0, 0) [all...] |
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
Support_DecimalFormat.java | 21 import java.text.NumberFormat; 43 DecimalFormat format = (DecimalFormat) NumberFormat 48 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, 50 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, 53 NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); 55 NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); 56 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, 60 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, 62 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, 65 NumberFormat.Field.EXPONENT_SIGN, 0, 0) [all...] |
NumberFormatTest.java | 23 import java.text.NumberFormat; 32 * @tests java.text.NumberFormat#format(java.lang.Object, 38 DecimalFormat format = (DecimalFormat) NumberFormat 118 * @tests java.text.NumberFormat#getIntegerInstance() 121 // Test for method java.text.NumberFormat getIntegerInstance() 125 DecimalFormat format = (DecimalFormat) NumberFormat 129 "Test1: NumberFormat.getIntegerInstance().toPattern() returned wrong pattern", 132 "Test2: NumberFormat.getIntegerInstance().format(35.76) returned wrong value", 135 "Test3: NumberFormat.getIntegerInstance().parse(\"35.76\") returned wrong number", 138 "Test4: NumberFormat.getIntegerInstance().parseObject(\"35.76\") returned wrong number" [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
OldNumberFormatTest.java | 23 import java.text.NumberFormat; 33 DecimalFormat format = (DecimalFormat) NumberFormat.getIntegerInstance(Locale.US); 43 format = (DecimalFormat) NumberFormat.getIntegerInstance(chLocale); 52 format = (DecimalFormat) NumberFormat.getIntegerInstance(arLocale); 62 NumberFormat format = NumberFormat.getInstance(); 74 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); 82 ((NumberFormat) cformat).setCurrency(currA); 88 NumberFormat.getInstance().setCurrency(null) [all...] |
NumberFormatTest.java | 23 import java.text.NumberFormat; 28 // NumberFormat.format(Object, StringBuffer, FieldPosition) guarantees it calls doubleValue for 40 NumberFormat nf = NumberFormat.getNumberInstance(Locale.US); 44 // NumberFormat.format(Object, StringBuffer, FieldPosition) guarantees it calls longValue for 47 class MyNumberFormat extends NumberFormat { 60 NumberFormat nf = new MyNumberFormat(); 68 NumberFormat numberFormat = NumberFormat.getNumberInstance(new Locale("ar")) [all...] |
OldNumberFormatFieldTest.java | 25 import java.text.NumberFormat; 50 NumberFormat.Field nfield = NumberFormat.Field.CURRENCY; 58 NumberFormat.Field nfield2 = (NumberFormat.Field) in.readObject(); 71 static class MyNumberFormat extends NumberFormat.Field {
|
AttributedCharacterIteratorAttributeTest.java | 23 import java.text.NumberFormat; 37 assertSameReserialized(NumberFormat.Field.INTEGER);
|
/external/chromium/base/i18n/ |
number_formatting.cc | 22 // There's no ICU call to destroy a NumberFormat object other than 27 number_format.reset(icu::NumberFormat::createInstance(status)); 31 scoped_ptr<icu::NumberFormat> number_format; 39 icu::NumberFormat* number_format = g_number_format.Get().number_format.get();
|
/external/icu4c/i18n/unicode/ |
numfmt.h | 57 * NumberFormat helps you to format and parse numbers for any locale. 69 * NumberFormat* nf = NumberFormat::createInstance(success) 75 * NumberFormat. 85 * nf = NumberFormat::createInstance( success ); 100 * nf = NumberFormat::createInstance( Locale::FRENCH, success ); 103 * You can use a NumberFormat to parse also. 136 * try casting the NumberFormat you get from the factory methods to a 169 class U_I18N_API NumberFormat : public Format { 224 virtual ~NumberFormat(); [all...] |
/external/icu4c/i18n/ |
numfmt.cpp | 139 // Static hashtable cache of NumberingSystem objects used by NumberFormat 175 // class NumberFormat 180 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) 212 NumberFormat::NumberFormat() 226 NumberFormat::~NumberFormat() 233 NumberFormat::NumberFormat(const NumberFormat &source [all...] |
currfmt.h | 22 class NumberFormat; 95 NumberFormat* fmt;
|
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
numfmt.h | 54 * NumberFormat helps you to format and parse numbers for any locale. 66 * NumberFormat* nf = NumberFormat::createInstance(success) 79 * nf = NumberFormat::createInstance( success ); 94 * nf = NumberFormat::createInstance( Locale::FRENCH, success ); 97 * You can use a NumberFormat to parse also. 130 * try casting the NumberFormat you get from the factory methods to a 163 class U_I18N_API NumberFormat : public Format { 227 virtual ~NumberFormat(); 314 * Format a double number. These methods call the NumberFormat [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
numfmt.cpp | 114 // Static hashtable cache of NumberingSystem objects used by NumberFormat 150 // class NumberFormat 155 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) 187 NumberFormat::NumberFormat() 200 NumberFormat::~NumberFormat() 207 NumberFormat::NumberFormat(const NumberFormat &source [all...] |
currfmt.h | 22 class NumberFormat; 95 NumberFormat* fmt;
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
nmfmapts.cpp | 27 case 0: name = "NumberFormat API test"; 29 logln("NumberFormat API test---"); logln(""); 42 logln("NumberFormat Registration test---"); logln(""); 59 * NumberFormat. 67 logln("Testing NumberFormat constructors"); 69 NumberFormat *def = NumberFormat::createInstance(status); 71 dataerrln("ERROR: Could not create NumberFormat (default) - %s", u_errorName(status)); 75 NumberFormat *fr = NumberFormat::createInstance(Locale::getFrench(), status) [all...] |
nmfmtrt.h | 19 * Performs round-trip tests for NumberFormat 38 void test(NumberFormat *fmt); 39 void test(NumberFormat *fmt, double value); 40 void test(NumberFormat *fmt, int32_t value); 41 void test(NumberFormat *fmt, const Formattable& value);
|
numfmtst.h | 19 * Performs various in-depth test on NumberFormat 163 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 165 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 167 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { 171 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 173 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { 177 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 179 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { 183 void expect(NumberFormat& fmt, const Formattable& n, 186 void expect(NumberFormat& fmt, const Formattable& n [all...] |
plurfmts.h | 33 NumberFormat *numFmt, 38 UBool overwrite, // overwrite the numberFormat.format result
|
/external/icu4c/test/intltest/ |
nmfmapts.cpp | 27 case 0: name = "NumberFormat API test"; 29 logln("NumberFormat API test---"); logln(""); 42 logln("NumberFormat Registration test---"); logln(""); 59 * NumberFormat. 67 logln("Testing NumberFormat constructors"); 69 NumberFormat *def = NumberFormat::createInstance(status); 71 dataerrln("ERROR: Could not create NumberFormat (default) - %s", u_errorName(status)); 75 NumberFormat *fr = NumberFormat::createInstance(Locale::getFrench(), status) [all...] |
nmfmtrt.h | 19 * Performs round-trip tests for NumberFormat 38 void test(NumberFormat *fmt); 39 void test(NumberFormat *fmt, double value); 40 void test(NumberFormat *fmt, int32_t value); 41 void test(NumberFormat *fmt, const Formattable& value);
|
numfmtst.h | 19 * Performs various in-depth test on NumberFormat 175 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 177 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 179 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { 183 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 185 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { 189 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 191 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { 195 void expect(NumberFormat& fmt, const Formattable& n, 198 void expect(NumberFormat& fmt, const Formattable& n [all...] |
/sdk/hierarchyviewer/src/com/android/hierarchyviewer/ui/model/ |
ProfilesTableModel.java | 20 import java.text.NumberFormat; 26 private final NumberFormat formatter; 30 formatter = NumberFormat.getNumberInstance();
|
/external/chromium_org/base/i18n/ |
number_formatting.cc | 21 // A simple wrapper around icu::NumberFormat that allows for resetting it 29 // There's no ICU call to destroy a NumberFormat object other than 34 number_format.reset(icu::NumberFormat::createInstance(status)); 38 scoped_ptr<icu::NumberFormat> number_format; 49 icu::NumberFormat* number_format = 63 icu::NumberFormat* number_format =
|
/libcore/luni/src/main/java/java/text/ |
NumberFormat.java | 34 * interface for formatting and parsing numbers. {@code NumberFormat} also 38 * {@code NumberFormat} helps you to format and parse numbers for any locale. 48 * myString = NumberFormat.getInstance().format(myNumber); 59 * NumberFormat nf = NumberFormat.getInstance(); 72 * NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH); 77 * You can also use a {@code NumberFormat} to parse numbers: 94 * casting the {@code NumberFormat} you get from the factory methods to a 99 * {@code NumberFormat} is designed such that some controls work for formattin [all...] |