/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
D | Support_DecimalFormat.java | 21 import java.text.NumberFormat; 43 DecimalFormat format = (DecimalFormat) NumberFormat in t_format_with_FieldPosition() 48 t_FormatWithField(0, format, number, text, NumberFormat.Field.CURRENCY, in t_format_with_FieldPosition() 50 t_FormatWithField(1, format, number, text, NumberFormat.Field.INTEGER, in t_format_with_FieldPosition() 53 NumberFormat.Field.GROUPING_SEPARATOR, 3, 4); in t_format_with_FieldPosition() 55 NumberFormat.Field.DECIMAL_SEPARATOR, 11, 12); in t_format_with_FieldPosition() 56 t_FormatWithField(4, format, number, text, NumberFormat.Field.FRACTION, in t_format_with_FieldPosition() 60 t_FormatWithField(5, format, number, text, NumberFormat.Field.SIGN, 0, in t_format_with_FieldPosition() 62 t_FormatWithField(6, format, number, text, NumberFormat.Field.EXPONENT, in t_format_with_FieldPosition() 65 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition() [all …]
|
D | NumberFormatTest.java | 23 import java.text.NumberFormat; 38 DecimalFormat format = (DecimalFormat) NumberFormat in test_formatLjava_lang_ObjectLjava_lang_StringBufferLjava_text_FieldPosition() 125 DecimalFormat format = (DecimalFormat) NumberFormat in test_getIntegerInstance() 153 DecimalFormat format = (DecimalFormat) NumberFormat in test_getIntegerInstanceLjava_util_Locale() 174 format = (DecimalFormat) NumberFormat.getIntegerInstance(arLocale); in test_getIntegerInstanceLjava_util_Locale() 204 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); in test_getCurrency() 211 ((NumberFormat) cformat).getCurrency(); in test_getCurrency() 221 NumberFormat format = NumberFormat.getInstance(); in test_getMaximumIntegerDigits() 233 NumberFormat format = NumberFormat.getInstance(new Locale("hu", "HU")); in test_setCurrencyLjava_util_Currency() 241 ((NumberFormat) cformat).setCurrency(currA); in test_setCurrencyLjava_util_Currency() [all …]
|
D | MessageFormatTest.java | 30 import java.text.NumberFormat; 82 assertTrue("Wrong locale3", format.getFormats()[1].equals(NumberFormat in test_ConstructorLjava_lang_StringLjava_util_Locale() 84 assertTrue("Wrong locale4", format.getFormats()[2].equals(NumberFormat in test_ConstructorLjava_lang_StringLjava_util_Locale() 104 assertTrue("Wrong number format", formats[2].equals(NumberFormat in test_ConstructorLjava_lang_String() 122 buffer.append(NumberFormat.getInstance().format(new Double(7.2))); in test_ConstructorLjava_lang_String() 249 .equals(NumberFormat.getNumberInstance())); in test_applyPatternLjava_lang_String() 254 .equals(NumberFormat.getCurrencyInstance())); in test_applyPatternLjava_lang_String() 259 .equals(NumberFormat.getPercentInstance())); in test_applyPatternLjava_lang_String() 263 NumberFormat nf = NumberFormat.getInstance(); in test_applyPatternLjava_lang_String() 407 NumberFormat.getCurrencyInstance(), in test_getFormats() [all …]
|
D | Support_MessageFormat.java | 22 import java.text.NumberFormat; 65 NumberFormat.Field.FRACTION, 0, 0); in t_format_with_FieldPosition() 70 NumberFormat.Field.EXPONENT_SIGN, 0, 0); in t_format_with_FieldPosition() 108 v.add(new FieldContainer(38, 39, NumberFormat.Field.INTEGER)); in getMessageVector1() 111 v.add(new FieldContainer(61, 62, NumberFormat.Field.INTEGER)); in getMessageVector1() 113 v.add(new FieldContainer(62, 63, NumberFormat.Field.DECIMAL_SEPARATOR)); in getMessageVector1() 115 v.add(new FieldContainer(63, 64, NumberFormat.Field.FRACTION)); in getMessageVector1()
|
/external/icu4c/i18n/ |
D | numfmt.cpp | 180 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 212 NumberFormat::NumberFormat() in NumberFormat() function in NumberFormat 226 NumberFormat::~NumberFormat() in ~NumberFormat() 233 NumberFormat::NumberFormat(const NumberFormat &source) in NumberFormat() function in NumberFormat 242 NumberFormat& 243 NumberFormat::operator=(const NumberFormat& rhs) in operator =() 263 NumberFormat::operator==(const Format& that) const in operator ==() 266 NumberFormat* other = (NumberFormat*)&that; in operator ==() 322 NumberFormat::format(double /* unused number */, in format() 338 NumberFormat::format(int32_t /* unused number */, in format() [all …]
|
D | unum.cpp | 47 NumberFormat *retVal = NULL; in unum_open() 54 retVal = NumberFormat::createInstance(Locale(locale), style, *status); in unum_open() 127 delete (NumberFormat*) fmt; in unum_close() 138 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); in unum_clone() 190 ((const NumberFormat*)fmt)->format(number, res, fp, *status); in unum_formatInt64() 223 ((const NumberFormat*)fmt)->format(number, res, fp, *status); in unum_formatDouble() 267 ((const NumberFormat*)fmt)->format(numFmtbl, resultStr, fp, *status); in unum_formatDecimal() 306 ((const NumberFormat*)fmt)->format(n, res, fp, *status); in unum_formatDoubleCurrency() 333 ((const NumberFormat*)fmt)->parse(src, res, pp); in parseRes() 432 LocalPointer<CurrencyAmount> currAmt(((const NumberFormat*)fmt)->parseCurrency(src, pp)); in unum_parseDoubleCurrency() [all …]
|
D | winnmfmt.cpp | 140 : NumberFormat(), fCurrency(currency), fFractionDigitsSet(FALSE), fFormatInfo(NULL) in Win32NumberFormat() 156 : NumberFormat(other), fFormatInfo((FormatInfo*)uprv_malloc(sizeof(FormatInfo))) in Win32NumberFormat() 179 NumberFormat::operator=(other); in operator =() 221 …NumberFormat *nf = fCurrency? NumberFormat::createCurrencyInstance(loc, status) : NumberFormat::cr… in parse() 229 NumberFormat::setMaximumFractionDigits(newValue); in setMaximumFractionDigits() 235 NumberFormat::setMinimumFractionDigits(newValue); in setMinimumFractionDigits()
|
D | datefmt.cpp | 73 fNumberFormat = (NumberFormat*)other.fNumberFormat->clone(); in operator =() 435 DateFormat::adoptNumberFormat(NumberFormat* newNumberFormat) in adoptNumberFormat() 444 DateFormat::setNumberFormat(const NumberFormat& newNumberFormat) in setNumberFormat() 446 NumberFormat* newNumFmtClone = (NumberFormat*)newNumberFormat.clone(); in setNumberFormat() 454 const NumberFormat*
|
D | currfmt.h | 22 class NumberFormat; variable 95 NumberFormat* fmt;
|
/external/icu4c/test/intltest/ |
D | nmfmapts.cpp | 69 NumberFormat *def = NumberFormat::createInstance(status); in testAPI() 75 NumberFormat *fr = NumberFormat::createInstance(Locale::getFrench(), status); in testAPI() 80 NumberFormat *cur = NumberFormat::createCurrencyInstance(status); in testAPI() 86 NumberFormat *cur_fr = NumberFormat::createCurrencyInstance(Locale::getFrench(), status); in testAPI() 91 NumberFormat *per = NumberFormat::createPercentInstance(status); in testAPI() 97 NumberFormat *per_fr = NumberFormat::createPercentInstance(Locale::getFrench(), status); in testAPI() 190 const Locale *locales = NumberFormat::getAvailableLocales(count); in testAPI() 233 NumberFormat *test = new DecimalFormat(status); in testAPI() 257 NumberFormat* currencyStyle; 264 currencyStyle = NumberFormat::createInstance(SWAP_LOC, status); in NFTestFactory() [all …]
|
D | numfmtst.h | 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) { in expect2() 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) { in expect2() 189 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 191 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() 195 void expect(NumberFormat& fmt, const Formattable& n, 198 void expect(NumberFormat& fmt, const Formattable& n, 203 void expect(NumberFormat* fmt, const Formattable& n, [all …]
|
D | nmfmtrt.cpp | 92 NumberFormat *fmt = NULL; in start() 96 fmt = NumberFormat::createInstance(status); in start() 102 fmt = NumberFormat::createCurrencyInstance(status); in start() 108 fmt = NumberFormat::createPercentInstance(status); in start() 116 const Locale *loc = NumberFormat::getAvailableLocales(locCount); in start() 126 fmt = NumberFormat::createInstance(loc[i], status); in start() 131 fmt = NumberFormat::createCurrencyInstance(loc[i], status); in start() 136 fmt = NumberFormat::createPercentInstance(loc[i], status); in start() 147 NumberFormatRoundTripTest::test(NumberFormat *fmt) in test() 218 NumberFormatRoundTripTest::test(NumberFormat *fmt, double value) in test() [all …]
|
D | nmfmtrt.h | 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);
|
D | numfmtst.cpp | 137 NumberFormat *test = NumberFormat::createInstance("root", status); in TestAPI() 176 class StubNumberForamt :public NumberFormat{ 186 return NumberFormat::format(number, appendTo, pos); in format() 237 UnicodeString s; (*(NumberFormat*)&fmt).format((int32_t)0, s); in TestPatterns() 373 UnicodeString s; (*(NumberFormat*)&fmt).format(val[v], s); in TestExponential() 421 (*(NumberFormat*)&fmt).format(lval[v], s); in TestExponential() 456 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status); in TestScientific2() 601 ((NumberFormat*)fmt)->format((int32_t)123, s); in TestQuotes() 613 ((NumberFormat*)fmt)->format((int32_t)123, s); in TestQuotes() 642 UnicodeString s; ((NumberFormat*)fmt)->format(1234.56, s); in TestCurrencySign() [all …]
|
D | numrgts.cpp | 24 class MyNumberFormatTest : public NumberFormat 35 return NumberFormat::format(number, toAppendTo, posIter, status); in format() 44 return NumberFormat::format(obj, toAppendTo, pos, status); in format() 73 NumberFormat::parse(text, result, status); in parse() 402 NumberFormat *nfcommon = NumberFormat::createCurrencyInstance(Locale::getUS(), status); in assignFloatValue() 476 NumberFormat *nf = NumberFormat::createInstance(status); in Test4071492() 500 NumberFormat *nf1 = NumberFormat::createInstance(Locale::getFrance(), status); in Test4086575() 842 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); in Test4087244() 885 NumberFormat *formatter; in Test4070798() 909 formatter = NumberFormat::createInstance(Locale(loc), status); in Test4070798() [all …]
|
D | tsnmfmt.cpp | 47 fFormat = NumberFormat::createInstance(fStatus); in runIndexedTest() 83 fFormat = NumberFormat::createInstance(locale, fStatus); in testLocale() 89 fFormat = NumberFormat::createCurrencyInstance(locale, fStatus); in testLocale() 95 fFormat = NumberFormat::createPercentInstance(locale, fStatus); in testLocale() 102 fFormat = NumberFormat::createScientificInstance(locale, fStatus); in testLocale() 400 const Locale* locales = NumberFormat::getAvailableLocales(count); in testAvailableLocales() 422 const Locale* allLocales = NumberFormat::getAvailableLocales(count); in monsterTest()
|
D | winnmtst.cpp | 229 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() 295 NumberFormat *wnf = NumberFormat::createInstance(ulocale, status); in testLocales() 296 NumberFormat *wcf = NumberFormat::createCurrencyInstance(ulocale, status); in testLocales()
|
/external/icu4c/i18n/unicode/ |
D | numfmt.h | 166 class U_I18N_API NumberFormat : public Format { 221 virtual ~NumberFormat(); 695 static NumberFormat* U_EXPORT2 createInstance(UErrorCode&); 705 static NumberFormat* U_EXPORT2 createInstance(const Locale& inLocale, 716 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, 724 static NumberFormat* U_EXPORT2 createCurrencyInstance(UErrorCode&); 731 static NumberFormat* U_EXPORT2 createCurrencyInstance(const Locale& inLocale, 738 static NumberFormat* U_EXPORT2 createPercentInstance(UErrorCode&); 745 static NumberFormat* U_EXPORT2 createPercentInstance(const Locale& inLocale, 752 static NumberFormat* U_EXPORT2 createScientificInstance(UErrorCode&); [all …]
|
D | choicfmt.h | 171 class U_I18N_API ChoiceFormat: public NumberFormat { 358 using NumberFormat::format; 668 return NumberFormat::format(obj, appendTo, status); in format() 674 return NumberFormat::format(number, appendTo); in format() 680 return NumberFormat::format(number, appendTo); in format()
|
D | datefmt.h | 640 virtual const NumberFormat* getNumberFormat(void) const; 648 virtual void adoptNumberFormat(NumberFormat* formatToAdopt); 655 virtual void setNumberFormat(const NumberFormat& newNumberFormat); 714 NumberFormat* fNumberFormat;
|
/external/webkit/Source/WebCore/platform/text/ |
D | LocalizedNumberICU.cpp | 45 static PassOwnPtr<NumberFormat> createFormatterForCurrentLocale() in createFormatterForCurrentLocale() 48 OwnPtr<NumberFormat> formatter = adoptPtr(NumberFormat::createInstance(status)); in createFormatterForCurrentLocale() 53 static NumberFormat* numberFormatter() in numberFormatter() 56 static NumberFormat* formatter = createFormatterForCurrentLocale().leakPtr(); in numberFormatter() 64 NumberFormat* formatter = numberFormatter(); in parseLocalizedNumber() 80 NumberFormat* formatter = numberFormatter(); in formatLocalizedNumber()
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
D | Phonemetadata.java | 32 public static class NumberFormat implements Externalizable { class in Phonemetadata 34 public NumberFormat() {} in NumberFormat() method in Phonemetadata.NumberFormat 41 public static final class Builder extends NumberFormat { 42 public NumberFormat build() { in build() 56 public NumberFormat setPattern(String value) { in setPattern() 67 public NumberFormat setFormat(String value) { in setFormat() 82 public NumberFormat addLeadingDigitsPattern(String value) { in addLeadingDigitsPattern() 95 public NumberFormat setNationalPrefixFormattingRule(String value) { in setNationalPrefixFormattingRule() 100 public NumberFormat clearNationalPrefixFormattingRule() { in clearNationalPrefixFormattingRule() 113 public NumberFormat setNationalPrefixOptionalWhenFormatting(boolean value) { in setNationalPrefixOptionalWhenFormatting() [all …]
|
D | AsYouTypeFormatter.java | 19 import com.android.i18n.phonenumbers.Phonemetadata.NumberFormat; 116 private List<NumberFormat> possibleFormats = new ArrayList<NumberFormat>(); 151 Iterator<NumberFormat> it = possibleFormats.iterator(); in maybeCreateNewTemplate() 153 NumberFormat numberFormat = it.next(); in maybeCreateNewTemplate() 176 List<NumberFormat> formatList = in getAvailableFormats() 181 for (NumberFormat format : formatList) { in getAvailableFormats() 199 Iterator<NumberFormat> it = possibleFormats.iterator(); in narrowDownPossibleFormats() 201 NumberFormat format = it.next(); in narrowDownPossibleFormats() 215 private boolean createFormattingTemplate(NumberFormat format) { in createFormattingTemplate() 419 for (NumberFormat numberFormat : possibleFormats) { in attemptToFormatAccruedDigits()
|
/external/icu4c/samples/numfmt/ |
D | main.cpp | 53 NumberFormat *fmt = NumberFormat::createInstance(us, status); in cppapi() 103 setNumberFormatCurrency_2_4(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_4() 192 setNumberFormatCurrency_2_6(NumberFormat &nf, const char *currency, UErrorCode &errorCode) { in setNumberFormatCurrency_2_6() 228 NumberFormat *nf; in showCurrencyFormatting() 245 nf=NumberFormat::createCurrencyInstance(sampleLocaleIDs[i], errorCode); in showCurrencyFormatting()
|
/external/chromium/base/i18n/ |
D | number_formatting.cc | 27 number_format.reset(icu::NumberFormat::createInstance(status)); in NumberFormatWrapper() 31 scoped_ptr<icu::NumberFormat> number_format; 39 icu::NumberFormat* number_format = g_number_format.Get().number_format.get(); in FormatNumber()
|