Home
last modified time | relevance | path

Searched refs:CurrencyAmount (Results 1 – 25 of 45) sorted by relevance

12

/external/icu/icu4c/source/i18n/
Dcurramt.cpp22 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode, in CurrencyAmount() function in CurrencyAmount
27 CurrencyAmount::CurrencyAmount(double amount, const UChar* isoCode, in CurrencyAmount() function in CurrencyAmount
32 CurrencyAmount::CurrencyAmount(const CurrencyAmount& other) : in CurrencyAmount() function in CurrencyAmount
36 CurrencyAmount& CurrencyAmount::operator=(const CurrencyAmount& other) { in operator =()
41 UObject* CurrencyAmount::clone() const { in clone()
42 return new CurrencyAmount(*this); in clone()
45 CurrencyAmount::~CurrencyAmount() { in ~CurrencyAmount()
48 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyAmount)
Dcurrfmt.cpp55 CurrencyAmount* currAmt = fmt->parseCurrency(source, pos); in parseObject()
Dnumfmt.cpp511 const CurrencyAmount* amt; in ArgExtractor()
512 if (o != NULL && (amt = dynamic_cast<const CurrencyAmount*>(o)) != NULL) { in ArgExtractor()
732 CurrencyAmount* NumberFormat::parseCurrency(const UnicodeString& text, in parseCurrency()
743 LocalPointer<CurrencyAmount> currAmt(new CurrencyAmount(parseResult, curr, ec), ec); in parseCurrency()
Dunum.cpp316 CurrencyAmount *tempCurrAmnt = new CurrencyAmount(number, currency, *status); in unum_formatDoubleCurrency()
449 LocalPointer<CurrencyAmount> currAmt(((const NumberFormat*)fmt)->parseCurrency(src, pp)); in unum_parseDoubleCurrency()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DCompactDecimalFormatTest.java38 import com.ibm.icu.util.CurrencyAmount;
143 {new CurrencyAmount(1234f, Currency.getInstance("CNY")), "¥1.2千"},
144 {new CurrencyAmount(12345f, Currency.getInstance("CNY")), "¥1.2万"},
145 {new CurrencyAmount(123456f, Currency.getInstance("CNY")), "¥12万"},
146 {new CurrencyAmount(1234567f, Currency.getInstance("CNY")), "¥120万"},
147 {new CurrencyAmount(12345678f, Currency.getInstance("CNY")), "¥1200万"},
148 {new CurrencyAmount(123456789f, Currency.getInstance("CNY")), "¥1.2亿"},
149 {new CurrencyAmount(1234567890f, Currency.getInstance("CNY")), "¥12亿"},
150 {new CurrencyAmount(12345678901f, Currency.getInstance("CNY")), "¥120亿"},
151 {new CurrencyAmount(123456789012f, Currency.getInstance("CNY")), "¥1200亿"},
[all …]
DNumberFormatTest.java52 import com.ibm.icu.util.CurrencyAmount;
134 CurrencyAmount currAmt = fmt.parseCurrency(tuple.parse, ppos);
928 CurrencyAmount parsedVal = (CurrencyAmount)curFmt.parseObject(stringToBeParsed); in TestCurrencyFormatForMixParsing()
1006 CurrencyAmount cAmt = new CurrencyAmount(1.5, curr); in TestCurrency()
1023 …String strBuf = curFmt.format(new CurrencyAmount(new Float(1234.56), Currency.getInstance("USD"))); in TestCurrency()
1026 CurrencyAmount parsedVal = (CurrencyAmount)curFmt.parseObject(strBuf); in TestCurrency()
1231 CurrencyAmount currAmt = fmt.parseCurrency(currStr, parsePos); in TestParseCurrency()
2182 private static CurrencyAmount parseCurrencyAmount(String str, NumberFormat fmt, in parseCurrencyAmount()
2186 return new CurrencyAmount(fmt.parse(str.substring(0,i)), in parseCurrencyAmount()
2372 CurrencyAmount target = parseCurrencyAmount(currAmt, ref, '/'); in TestCases()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DCompactDecimalFormatTest.java39 import android.icu.util.CurrencyAmount;
144 {new CurrencyAmount(1234f, Currency.getInstance("CNY")), "¥1.2千"},
145 {new CurrencyAmount(12345f, Currency.getInstance("CNY")), "¥1.2万"},
146 {new CurrencyAmount(123456f, Currency.getInstance("CNY")), "¥12万"},
147 {new CurrencyAmount(1234567f, Currency.getInstance("CNY")), "¥120万"},
148 {new CurrencyAmount(12345678f, Currency.getInstance("CNY")), "¥1200万"},
149 {new CurrencyAmount(123456789f, Currency.getInstance("CNY")), "¥1.2亿"},
150 {new CurrencyAmount(1234567890f, Currency.getInstance("CNY")), "¥12亿"},
151 {new CurrencyAmount(12345678901f, Currency.getInstance("CNY")), "¥120亿"},
152 {new CurrencyAmount(123456789012f, Currency.getInstance("CNY")), "¥1200亿"},
[all …]
DNumberFormatTest.java53 import android.icu.util.CurrencyAmount;
135 CurrencyAmount currAmt = fmt.parseCurrency(tuple.parse, ppos);
929 CurrencyAmount parsedVal = (CurrencyAmount)curFmt.parseObject(stringToBeParsed); in TestCurrencyFormatForMixParsing()
1007 CurrencyAmount cAmt = new CurrencyAmount(1.5, curr); in TestCurrency()
1024 …String strBuf = curFmt.format(new CurrencyAmount(new Float(1234.56), Currency.getInstance("USD"))); in TestCurrency()
1027 CurrencyAmount parsedVal = (CurrencyAmount)curFmt.parseObject(strBuf); in TestCurrency()
1232 CurrencyAmount currAmt = fmt.parseCurrency(currStr, parsePos); in TestParseCurrency()
2183 private static CurrencyAmount parseCurrencyAmount(String str, NumberFormat fmt, in parseCurrencyAmount()
2187 return new CurrencyAmount(fmt.parse(str.substring(0,i)), in parseCurrencyAmount()
2373 CurrencyAmount target = parseCurrencyAmount(currAmt, ref, '/'); in TestCases()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dcurramt.h37 class U_I18N_API CurrencyAmount: public Measure {
49 CurrencyAmount(const Formattable& amount, const UChar* isoCode,
62 CurrencyAmount(double amount, const UChar* isoCode,
69 CurrencyAmount(const CurrencyAmount& other);
75 CurrencyAmount& operator=(const CurrencyAmount& other);
88 virtual ~CurrencyAmount();
121 inline const CurrencyUnit& CurrencyAmount::getCurrency() const { in getCurrency()
125 inline const UChar* CurrencyAmount::getISOCurrency() const { in getISOCurrency()
Dcompactdecimalformat.h369 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
Dnumfmt.h632 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
Ddecimfmt.h1218 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCurrencyFormat.java20 import android.icu.util.CurrencyAmount;
65 if (!(obj instanceof CurrencyAmount)) { in format()
68 CurrencyAmount currency = (CurrencyAmount) obj; in format()
79 public CurrencyAmount parseObject(String source, ParsePosition pos) { in parseObject()
DNumberFormat.java31 import android.icu.util.CurrencyAmount;
260 } else if (number instanceof CurrencyAmount) { in format()
261 return format((CurrencyAmount)number, toAppendTo, pos); in format()
329 public final String format(CurrencyAmount currAmt) { in format()
374 public StringBuffer format(CurrencyAmount currAmt, in format()
438 public CurrencyAmount parseCurrency(CharSequence text, ParsePosition pos) { in parseCurrency()
442 return n == null ? null : new CurrencyAmount(n, getEffectiveCurrency()); in parseCurrency()
DCompactDecimalFormat.java33 import android.icu.util.CurrencyAmount;
301 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format()
DMeasureFormat.java44 import android.icu.util.CurrencyAmount;
1054 new CurrencyAmount(n, (Currency) unit), in formatMeasure()
1116 CurrencyAmount n, StringBuffer buffer, FieldPosition pos) { in format()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCurrencyFormat.java19 import com.ibm.icu.util.CurrencyAmount;
64 if (!(obj instanceof CurrencyAmount)) { in format()
67 CurrencyAmount currency = (CurrencyAmount) obj; in format()
78 public CurrencyAmount parseObject(String source, ParsePosition pos) { in parseObject()
DNumberFormat.java30 import com.ibm.icu.util.CurrencyAmount;
273 } else if (number instanceof CurrencyAmount) { in format()
274 return format((CurrencyAmount)number, toAppendTo, pos); in format()
349 public final String format(CurrencyAmount currAmt) { in format()
400 public StringBuffer format(CurrencyAmount currAmt, in format()
467 public CurrencyAmount parseCurrency(CharSequence text, ParsePosition pos) { in parseCurrency()
471 return n == null ? null : new CurrencyAmount(n, getEffectiveCurrency()); in parseCurrency()
DCompactDecimalFormat.java32 import com.ibm.icu.util.CurrencyAmount;
313 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format()
DMeasureFormat.java43 import com.ibm.icu.util.CurrencyAmount;
1082 new CurrencyAmount(n, (Currency) unit), in formatMeasure()
1144 CurrencyAmount n, StringBuffer buffer, FieldPosition pos) { in format()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCurrencyAmount.java25 public class CurrencyAmount extends Measure { class
32 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() method in CurrencyAmount
41 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() method in CurrencyAmount
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCurrencyAmount.java25 public class CurrencyAmount extends Measure { class
33 public CurrencyAmount(Number number, Currency currency) { in CurrencyAmount() method in CurrencyAmount
43 public CurrencyAmount(double number, Currency currency) { in CurrencyAmount() method in CurrencyAmount
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
DNumberFormatJDK.java20 import com.ibm.icu.util.CurrencyAmount;
85 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format()
/external/icu/icu4c/source/test/intltest/
Dnumfmtst.cpp433 LocalPointer<CurrencyAmount> currAmt( in isParseCurrencyPass()
624 LocalPointer<CurrencyAmount> currAmt(test->parseCurrency("",ppos)); in TestAPI()
2391 CurrencyAmount ca(9, USD, ec); in TestCurrencyAmount()
2394 CurrencyAmount ca2(ca); in TestCurrencyAmount()
2404 CurrencyAmount *ca3 = (CurrencyAmount *)ca.clone(); in TestCurrencyAmount()
2627 result.adoptObject(new CurrencyAmount(n, cur.getTerminatedBuffer(), ec)); in parseCurrencyAmount()
3149 LocalPointer<CurrencyAmount> currencyAmount(fmt.parseCurrency(utext, ppos)); in expectParseCurrency()
3294 toFormat.adoptObject(new CurrencyAmount(1234.56, ISO_CODE, status)); in TestCurrencyFormat()
3753 const CurrencyAmount* curramt = NULL; in TestCurrencyFormatForMixParsing()
3763 (curramt = dynamic_cast<const CurrencyAmount*>(result.getObject())) == NULL || in TestCurrencyFormatForMixParsing()
[all …]
Duobjtest.cpp374 TESTCLASSID_CTOR(CurrencyAmount, (1.0, SMALL_STR, status)); in testIDs()

12