Home
last modified time | relevance | path

Searched refs:NumberFormat (Results 1 – 25 of 54) sorted by relevance

123

/external/icu4c/i18n/
Dnumfmt.cpp96 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(NumberFormat) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument
128 NumberFormat::NumberFormat() in NumberFormat() function in NumberFormat
141 NumberFormat::~NumberFormat() in ~NumberFormat()
148 NumberFormat::NumberFormat(const NumberFormat &source) in NumberFormat() function in NumberFormat
157 NumberFormat&
158 NumberFormat::operator=(const NumberFormat& rhs) in operator =()
176 NumberFormat::operator==(const Format& that) const in operator ==()
179 NumberFormat* other = (NumberFormat*)&that; in operator ==()
230 NumberFormat::format(const Formattable& obj, in format()
237 NumberFormat* nonconst = (NumberFormat*) this; in format()
[all …]
Dunum.cpp53 retVal = (UNumberFormat*)NumberFormat::createInstance(*status); in unum_open()
55 retVal = (UNumberFormat*)NumberFormat::createInstance(Locale(locale), in unum_open()
61 retVal = (UNumberFormat*)NumberFormat::createCurrencyInstance(*status); in unum_open()
63 retVal = (UNumberFormat*)NumberFormat::createCurrencyInstance(Locale(locale), in unum_open()
69 retVal = (UNumberFormat*)NumberFormat::createPercentInstance(*status); in unum_open()
71 retVal = (UNumberFormat*)NumberFormat::createPercentInstance(Locale(locale), in unum_open()
77 retVal = (UNumberFormat*)NumberFormat::createScientificInstance(*status); in unum_open()
79 retVal = (UNumberFormat*)NumberFormat::createScientificInstance(Locale(locale), in unum_open()
150 delete (NumberFormat*) fmt; in unum_close()
161 if (((const NumberFormat*)fmt)->getDynamicClassID() == DecimalFormat::getStaticClassID()) { in unum_clone()
[all …]
Dwinnmfmt.cpp140 : 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 =()
221NumberFormat *nf = fCurrency? NumberFormat::createCurrencyInstance(loc, status) : NumberFormat::cr… in parse()
229 NumberFormat::setMaximumFractionDigits(newValue); in setMaximumFractionDigits()
235 NumberFormat::setMinimumFractionDigits(newValue); in setMinimumFractionDigits()
Dmsgfmt.cpp634 NumberFormat& formatAlias = *(NumberFormat*)fmt; in toPattern()
635 NumberFormat *defaultTemplate = NumberFormat::createInstance(fLocale, ec); in toPattern()
636 NumberFormat *currencyTemplate = NumberFormat::createCurrencyInstance(fLocale, ec); in toPattern()
637 NumberFormat *percentTemplate = NumberFormat::createPercentInstance(fLocale, ec); in toPattern()
638 NumberFormat *integerTemplate = createIntegerFormat(fLocale, ec); in toPattern()
1003 const NumberFormat* nf = getDefaultNumberFormat(success); in format()
1252 fmt = NumberFormat::createInstance(fLocale, ec); in makeFormat()
1255 fmt = NumberFormat::createCurrencyInstance(fLocale, ec); in makeFormat()
1258 fmt = NumberFormat::createPercentInstance(fLocale, ec); in makeFormat()
1265 fmt = NumberFormat::createInstance(fLocale, ec); in makeFormat()
[all …]
Ddatefmt.cpp72 fNumberFormat = (NumberFormat*)other.fNumberFormat->clone(); in operator =()
363 DateFormat::adoptNumberFormat(NumberFormat* newNumberFormat) in adoptNumberFormat()
372 DateFormat::setNumberFormat(const NumberFormat& newNumberFormat) in setNumberFormat()
374 adoptNumberFormat((NumberFormat*)newNumberFormat.clone()); in setNumberFormat()
379 const NumberFormat*
Dcurrfmt.h22 class NumberFormat; variable
92 NumberFormat* fmt;
Dcurrfmt.cpp22 fmt = NumberFormat::createCurrencyInstance(locale, ec); in CurrencyFormat()
27 fmt = (NumberFormat*) other.fmt->clone(); in CurrencyFormat()
Ddecimfmt.cpp131 : NumberFormat(), in DecimalFormat()
159 : NumberFormat(), in DecimalFormat()
189 : NumberFormat(), in DecimalFormat()
217 : NumberFormat(), in DecimalFormat()
247 : NumberFormat(), in DecimalFormat()
365 : NumberFormat(source), in DecimalFormat()
398 NumberFormat::operator=(rhs); in operator =()
470 if (!NumberFormat::operator==(that)) { in operator ==()
572 return (NumberFormat::operator==(that) && in operator ==()
706 if (fieldPosition.getField() == NumberFormat::kIntegerField) in format()
[all …]
/external/icu4c/test/intltest/
Dnmfmapts.cpp69 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 …]
Dnumfmtst.h136 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
138 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2()
142 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec);
144 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2()
148 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n);
150 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect()
154 void expect(NumberFormat& fmt, const Formattable& n,
157 void expect(NumberFormat& fmt, const Formattable& n,
162 void expect(NumberFormat* fmt, const Formattable& n,
165 void expect(NumberFormat* fmt, const Formattable& n, in expect()
[all …]
Dnmfmtrt.cpp88 NumberFormat *fmt = NULL; in start()
92 fmt = NumberFormat::createInstance(status); in start()
98 fmt = NumberFormat::createCurrencyInstance(status); in start()
104 fmt = NumberFormat::createPercentInstance(status); in start()
112 const Locale *loc = NumberFormat::getAvailableLocales(locCount); in start()
122 fmt = NumberFormat::createInstance(loc[i], status); in start()
127 fmt = NumberFormat::createCurrencyInstance(loc[i], status); in start()
132 fmt = NumberFormat::createPercentInstance(loc[i], status); in start()
143 NumberFormatRoundTripTest::test(NumberFormat *fmt) in test()
213 NumberFormatRoundTripTest::test(NumberFormat *fmt, double value) in test()
[all …]
Dnumrgts.cpp24 class MyNumberFormatTest : public NumberFormat
35 return NumberFormat::format(number, toAppendTo, pos, status); in format()
44 return NumberFormat::format(obj, toAppendTo, pos, status); in format()
73 NumberFormat::parse(text, result, status); in parse()
382 NumberFormat *nfcommon = NumberFormat::createCurrencyInstance(Locale::getUS(), status); in assignFloatValue()
456 NumberFormat *nf = NumberFormat::createInstance(status); in Test4071492()
480 NumberFormat *nf1 = NumberFormat::createInstance(Locale::getFrance(), status); in Test4086575()
823 NumberFormat *nf = NumberFormat::createCurrencyInstance(*de, status); in Test4087244()
866 NumberFormat *formatter; in Test4070798()
890 formatter = NumberFormat::createInstance(Locale(loc), status); in Test4070798()
[all …]
Dnumfmtst.cpp100 NumberFormat *test = NumberFormat::createInstance("root", status); in TestAPI()
132 class StubNumberForamt :public NumberFormat{
142 return NumberFormat::format(number, appendTo, pos); in format()
193 UnicodeString s; (*(NumberFormat*)&fmt).format((int32_t)0, s); in TestPatterns()
329 UnicodeString s; (*(NumberFormat*)&fmt).format(val[v], s); in TestExponential()
377 (*(NumberFormat*)&fmt).format(lval[v], s); in TestExponential()
412 DecimalFormat* fmt = (DecimalFormat*)NumberFormat::createCurrencyInstance("en_US", status); in TestScientific2()
552 ((NumberFormat*)fmt)->format((int32_t)123, s); in TestQuotes()
564 ((NumberFormat*)fmt)->format((int32_t)123, s); in TestQuotes()
588 UnicodeString s; ((NumberFormat*)fmt)->format(1234.56, s); in TestCurrencySign()
[all …]
Dnmfmtrt.h38 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);
Dwinnmtst.cpp229 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()
Dtsnmfmt.cpp46 fFormat = NumberFormat::createInstance(fStatus); in runIndexedTest()
82 fFormat = NumberFormat::createInstance(locale, fStatus); in testLocale()
88 fFormat = NumberFormat::createCurrencyInstance(locale, fStatus); in testLocale()
94 fFormat = NumberFormat::createPercentInstance(locale, fStatus); in testLocale()
389 const Locale* locales = NumberFormat::getAvailableLocales(count); in testAvailableLocales()
411 const Locale* allLocales = NumberFormat::getAvailableLocales(count); in monsterTest()
Ddtfmapts.cpp205 const NumberFormat *nf = def->getNumberFormat(); in testAPI()
206 NumberFormat *newNf = (NumberFormat*) nf->clone(); in testAPI()
293 NumberFormat *fmt = NumberFormat::createInstance(status); in TestNameHiding()
Dpptest.cpp175 NumberFormat *nf = NumberFormat::createInstance(status); in TestFieldPosition_example()
195 FieldPosition pos(NumberFormat::INTEGER_FIELD); in TestFieldPosition_example()
/external/icu4c/i18n/unicode/
Dnumfmt.h146 class U_I18N_API NumberFormat : public Format {
175 virtual ~NumberFormat();
434 static NumberFormat* U_EXPORT2 createInstance(UErrorCode&);
444 static NumberFormat* U_EXPORT2 createInstance(const Locale& inLocale,
451 static NumberFormat* U_EXPORT2 createCurrencyInstance(UErrorCode&);
458 static NumberFormat* U_EXPORT2 createCurrencyInstance(const Locale& inLocale,
465 static NumberFormat* U_EXPORT2 createPercentInstance(UErrorCode&);
472 static NumberFormat* U_EXPORT2 createPercentInstance(const Locale& inLocale,
479 static NumberFormat* U_EXPORT2 createScientificInstance(UErrorCode&);
486 static NumberFormat* U_EXPORT2 createScientificInstance(const Locale& inLocale,
[all …]
Dchoicfmt.h259 class U_I18N_API ChoiceFormat: public NumberFormat {
761 return NumberFormat::format(obj, appendTo, status); in format()
767 return NumberFormat::format(number, appendTo); in format()
773 return NumberFormat::format(number, appendTo); in format()
Ddatefmt.h519 virtual const NumberFormat* getNumberFormat(void) const;
527 virtual void adoptNumberFormat(NumberFormat* formatToAdopt);
534 virtual void setNumberFormat(const NumberFormat& newNumberFormat);
593 NumberFormat* fNumberFormat;
Dmsgfmt.h35 class NumberFormat; variable
738 NumberFormat* defaultNumberFormat;
745 const NumberFormat* getDefaultNumberFormat(UErrorCode&) const;
788 NumberFormat* createIntegerFormat(const Locale& locale, UErrorCode& status) const;
Drbnf.h502 class U_I18N_API RuleBasedNumberFormat : public NumberFormat {
1008 return NumberFormat::format(obj, result, status); in format()
1026 NumberFormat::parse(text, result, status); in parse()
/external/icu4c/samples/numfmt/
Dmain.cpp53 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/emma/core/java12/com/vladium/emma/report/
DIItemAttribute.java13 import java.text.NumberFormat;
204 m_format = (DecimalFormat) NumberFormat.getPercentInstance (); // TODO: locale in FractionAttribute()
212 m_nFormat = (DecimalFormat) NumberFormat.getInstance (); // TODO: locale in FractionAttribute()

123