HomeSort by relevance Sort by last modified time
    Searched full:numberformat (Results 1 - 25 of 318) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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 {
  /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...]
plurfmts.h 36 NumberFormat *numFmt,
41 UBool overwrite, // overwrite the numberFormat.format result
  /external/chromium_org/third_party/libphonenumber/src/resources/
PhoneNumberAlternateFormats.xml 45 <!ELEMENT numberFormat (leadingDigits*, format, intlFormat*)>
51 <!ATTLIST numberFormat pattern CDATA #REQUIRED>
59 <numberFormat pattern="(1[389]\d{2})(\d{2})(\d{2})(\d{2})">
67 </numberFormat>
68 <numberFormat pattern="(1[389]\d{2})(\d{6})">
76 </numberFormat>
77 <numberFormat pattern="([2378])(\d{8})">
80 </numberFormat>
87 <numberFormat pattern="(5)(\d{3,12})">
90 </numberFormat>
    [all...]
PhoneNumberMetaDataForTesting.xml 47 <numberFormat pattern="(\d{3})(\d{3})(\d{3})">
49 </numberFormat>
75 <numberFormat pattern="(\d{2})(\d{4})(\d{4})">
78 </numberFormat>
79 <numberFormat pattern="(\d{4})(\d{2})(\d{4})">
82 </numberFormat>
83 <numberFormat pattern="(9)(11)(\d{4})(\d{4})">
87 </numberFormat>
88 <numberFormat pattern="(9)(\d{4})(\d{2})(\d{4})"
93 </numberFormat>
    [all...]
  /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...]
  /external/chromium_org/v8/src/extensions/i18n/
number-format.js 64 * Initializes the given object so it's a valid NumberFormat instance.
67 function initializeNumberFormat(numberFormat, locales, options) {
68 if (numberFormat.hasOwnProperty('__initializedIntlObject')) {
69 throw new TypeError('Trying to re-initialize NumberFormat object.');
76 var getOption = getGetOption(options, 'numberformat');
78 var locale = resolveLocale('numberformat', locales, options);
160 Object.defineProperty(numberFormat, 'formatter', {value: formatter});
161 Object.defineProperty(numberFormat, 'resolved', {value: resolved});
162 Object.defineProperty(numberFormat, '__initializedIntlObject',
163 {value: 'numberformat'});
    [all...]
  /external/chromium_org/v8/test/intl/general/
mapped-locale.js 30 var nf = Intl.NumberFormat(['zh-TW'], {localeMatcher: 'lookup'});
33 var nf = Intl.NumberFormat(['zh-Hant-TW'], {localeMatcher: 'lookup'});
36 var nf = Intl.NumberFormat(['zh-Hant'], {localeMatcher: 'lookup'});
39 nf = Intl.NumberFormat(['zh'], {localeMatcher: 'lookup'});
42 nf = Intl.NumberFormat(['zh-CN'], {localeMatcher: 'lookup'});
45 nf = Intl.NumberFormat(['zh-Hans-CN'], {localeMatcher: 'lookup'});
48 nf = Intl.NumberFormat(['zh-Hans'], {localeMatcher: 'lookup'});
51 nf = Intl.NumberFormat(['en-US'], {localeMatcher: 'lookup'});
  /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/
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...]
plurfmt.cpp 38 numberFormat(NULL),
46 numberFormat(NULL),
54 numberFormat(NULL),
64 numberFormat(NULL),
74 numberFormat(NULL),
83 numberFormat(NULL),
94 numberFormat(NULL),
105 numberFormat(NULL),
117 numberFormat(NULL),
129 numberFormat(NULL)
    [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...]
  /external/icu4c/samples/numfmt/
main.cpp 46 * Sample code for the C++ API to NumberFormat.
53 NumberFormat *fmt = NumberFormat::createInstance(us, status);
54 check(status, "NumberFormat::createInstance");
61 check(status, "NumberFormat::parse");
63 printf("NumberFormat::parse(\""); // Display the result
73 check(status, "NumberFormat::format");
75 printf("NumberFormat::format("); // Display the result
88 * Set a currency on a NumberFormat with pre-ICU 2.6 APIs.
92 * @param nf The NumberFormat on which to set the currency; takes effect o
    [all...]
  /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 =

Completed in 1088 milliseconds

1 2 3 4 5 6 7 8 91011>>