/external/chromium_org/third_party/icu/source/i18n/ |
D | numfmt.cpp | 99 const int32_t icu::NumberFormat::gDefaultMaxIntegerDigits = 2000000000; 100 const int32_t icu::NumberFormat::gDefaultMinIntegerDigits = 127; 185 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 217 NumberFormat::NumberFormat() in NumberFormat() function in NumberFormat 231 NumberFormat::~NumberFormat() in ~NumberFormat() 238 NumberFormat::NumberFormat(const NumberFormat &source) in NumberFormat() function in NumberFormat 247 NumberFormat& 248 NumberFormat::operator=(const NumberFormat& rhs) in operator =() 268 NumberFormat::operator==(const Format& that) const in operator ==() 271 NumberFormat* other = (NumberFormat*)&that; in operator ==() [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 …]
|
/external/icu/icu4c/source/i18n/ |
D | numfmt.cpp | 105 const int32_t icu::NumberFormat::gDefaultMaxIntegerDigits = 2000000000; 106 const int32_t icu::NumberFormat::gDefaultMinIntegerDigits = 127; 201 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 233 NumberFormat::NumberFormat() in NumberFormat() function in NumberFormat 248 NumberFormat::~NumberFormat() in ~NumberFormat() 259 NumberFormat::NumberFormat(const NumberFormat &source) in NumberFormat() function in NumberFormat 268 NumberFormat& 269 NumberFormat::operator=(const NumberFormat& rhs) in operator =() 290 NumberFormat::operator==(const Format& that) const in operator ==() 293 NumberFormat* other = (NumberFormat*)&that; in operator ==() [all …]
|
D | sharednumberformat.h | 18 class NumberFormat; variable 22 SharedNumberFormat(NumberFormat *nfToAdopt) : ptr(nfToAdopt) { } in SharedNumberFormat() 24 const NumberFormat *get() const { return ptr; } in get() 25 const NumberFormat *operator->() const { return ptr; } 26 const NumberFormat &operator*() const { return *ptr; } 28 NumberFormat *ptr;
|
D | unum.cpp | 48 NumberFormat *retVal = NULL; in unum_open() 58 retVal = NumberFormat::createInstance(Locale(locale), style, *status); in unum_open() 131 delete (NumberFormat*) fmt; in unum_close() 142 const NumberFormat* nf = reinterpret_cast<const NumberFormat*>(fmt); in unum_clone() 194 ((const NumberFormat*)fmt)->format(number, res, fp, *status); in unum_formatInt64() 227 ((const NumberFormat*)fmt)->format(number, res, fp, *status); in unum_formatDouble() 271 ((const NumberFormat*)fmt)->format(numFmtbl, resultStr, fp, *status); in unum_formatDecimal() 310 ((const NumberFormat*)fmt)->format(n, res, fp, *status); in unum_formatDoubleCurrency() 337 ((const NumberFormat*)fmt)->parse(src, res, pp); in parseRes() 436 LocalPointer<CurrencyAmount> currAmt(((const NumberFormat*)fmt)->parseCurrency(src, pp)); in unum_parseDoubleCurrency() [all …]
|
/external/icu/icu4c/source/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 | 188 …void expectParseCurrency(const NumberFormat &fmt, const UChar* currency, double amount, const char… 198 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 200 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 202 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2() 206 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 208 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2() 212 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 214 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() 218 void expect(NumberFormat& fmt, const Formattable& n, 221 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 | 148 NumberFormat *test = NumberFormat::createInstance("root", status); in TestAPI() 187 class StubNumberFormat :public NumberFormat{ 197 return NumberFormat::format(number, appendTo, pos); in format() 248 UnicodeString s; (*(NumberFormat*)&fmt).format((int32_t)0, s); in TestPatterns() 384 UnicodeString s; (*(NumberFormat*)&fmt).format(val[v], s); in TestExponential() 432 (*(NumberFormat*)&fmt).format(lval[v], s); in TestExponential() 467 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status); in TestScientific2() 612 ((NumberFormat*)fmt)->format((int32_t)123, s); in TestQuotes() 624 ((NumberFormat*)fmt)->format((int32_t)123, s); in TestQuotes() 653 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() 403 NumberFormat *nfcommon = NumberFormat::createCurrencyInstance(Locale::getUS(), status); in assignFloatValue() 477 NumberFormat *nf = NumberFormat::createInstance(status); in Test4071492() 501 NumberFormat *nf1 = NumberFormat::createInstance(Locale::getFrance(), status); in Test4086575() 843 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); in Test4087244() 886 NumberFormat *formatter; in Test4070798() 911 formatter = NumberFormat::createInstance(Locale(loc), status); in Test4070798() [all …]
|
D | measfmttest.cpp | 84 NumberFormat::EAlignmentFields field, 430 LocalPointer<NumberFormat> nf(NumberFormat::createInstance(en, status)); in TestFormatPeriodEn() 436 MeasureFormat mf(en, UMEASFMT_WIDTH_WIDE, (NumberFormat *) nf->clone(), status); in TestFormatPeriodEn() 453 mf = MeasureFormat(en, UMEASFMT_WIDTH_SHORT, (NumberFormat *) nf->clone(), status); in TestFormatPeriodEn() 458 mf = MeasureFormat(en, UMEASFMT_WIDTH_NARROW, (NumberFormat *) nf->clone(), status); in TestFormatPeriodEn() 463 mf = MeasureFormat(en, UMEASFMT_WIDTH_NUMERIC, (NumberFormat *) nf->clone(), status); in TestFormatPeriodEn() 470 nf.adoptInstead(NumberFormat::createInstance(de, status)); in TestFormatPeriodEn() 475 mf = MeasureFormat(de, UMEASFMT_WIDTH_WIDE, (NumberFormat *) nf->clone(), status); in TestFormatPeriodEn() 480 mf = MeasureFormat(de, UMEASFMT_WIDTH_NUMERIC, (NumberFormat *) nf->clone(), status); in TestFormatPeriodEn() 498 (DecimalFormat *) NumberFormat::createInstance(en, status); in Test10219FractionalPlurals() [all …]
|
/external/chromium_org/third_party/icu/source/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 | 182 …void expectParseCurrency(const NumberFormat &fmt, const UChar* currency, double amount, const char… 192 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 194 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 196 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2() 200 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 202 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2() 206 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 208 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() 212 void expect(NumberFormat& fmt, const Formattable& n, 215 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 | 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() 403 NumberFormat *nfcommon = NumberFormat::createCurrencyInstance(Locale::getUS(), status); in assignFloatValue() 477 NumberFormat *nf = NumberFormat::createInstance(status); in Test4071492() 501 NumberFormat *nf1 = NumberFormat::createInstance(Locale::getFrance(), status); in Test4086575() 843 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); in Test4087244() 886 NumberFormat *formatter; in Test4070798() 911 formatter = NumberFormat::createInstance(Locale(loc), status); in Test4070798() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | numfmt.h | 172 class U_I18N_API NumberFormat : public Format { 227 virtual ~NumberFormat(); 686 static NumberFormat* U_EXPORT2 createInstance(UErrorCode&); 696 static NumberFormat* U_EXPORT2 createInstance(const Locale& inLocale, 707 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, 718 static NumberFormat* internalCreateInstance( 739 static NumberFormat* U_EXPORT2 createCurrencyInstance(UErrorCode&); 746 static NumberFormat* U_EXPORT2 createCurrencyInstance(const Locale& inLocale, 753 static NumberFormat* U_EXPORT2 createPercentInstance(UErrorCode&); 760 static NumberFormat* U_EXPORT2 createPercentInstance(const Locale& inLocale, [all …]
|
D | measfmt.h | 75 class NumberFormat; variable 112 NumberFormat *nfToAdopt, 257 NumberFormat *nfToAdopt, 274 void adoptNumberFormat(NumberFormat *nfToAdopt, UErrorCode &status); 280 const NumberFormat &getNumberFormat() const; 322 const NumberFormat &nf,
|
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
D | numfmt.h | 169 class U_I18N_API NumberFormat : public Format { 224 virtual ~NumberFormat(); 683 static NumberFormat* U_EXPORT2 createInstance(UErrorCode&); 693 static NumberFormat* U_EXPORT2 createInstance(const Locale& inLocale, 704 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, 712 static NumberFormat* U_EXPORT2 createCurrencyInstance(UErrorCode&); 719 static NumberFormat* U_EXPORT2 createCurrencyInstance(const Locale& inLocale, 726 static NumberFormat* U_EXPORT2 createPercentInstance(UErrorCode&); 733 static NumberFormat* U_EXPORT2 createPercentInstance(const Locale& inLocale, 740 static NumberFormat* U_EXPORT2 createScientificInstance(UErrorCode&); [all …]
|
/external/chromium_org/v8/test/intl/general/ |
D | 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/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 …]
|
/external/chromium_org/third_party/icu/source/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/icu/icu4c/source/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_org/base/i18n/ |
D | number_formatting.cc | 34 number_format.reset(icu::NumberFormat::createInstance(status)); in Reset() 38 scoped_ptr<icu::NumberFormat> number_format; 49 icu::NumberFormat* number_format = in FormatNumber() 63 icu::NumberFormat* number_format = in FormatDouble()
|