/external/icu/icu4c/source/i18n/ |
D | curramt.cpp | 22 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)
|
D | currfmt.cpp | 55 CurrencyAmount* currAmt = fmt->parseCurrency(source, pos); in parseObject()
|
D | numfmt.cpp | 511 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()
|
D | unum.cpp | 316 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/ |
D | CompactDecimalFormatTest.java | 38 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 …]
|
D | NumberFormatTest.java | 52 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/ |
D | CompactDecimalFormatTest.java | 39 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 …]
|
D | NumberFormatTest.java | 53 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/ |
D | curramt.h | 37 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()
|
D | compactdecimalformat.h | 369 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
|
D | numfmt.h | 632 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
|
D | decimfmt.h | 1218 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | CurrencyFormat.java | 20 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()
|
D | NumberFormat.java | 31 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()
|
D | CompactDecimalFormat.java | 33 import android.icu.util.CurrencyAmount; 301 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format()
|
D | MeasureFormat.java | 44 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/ |
D | CurrencyFormat.java | 19 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()
|
D | NumberFormat.java | 30 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()
|
D | CompactDecimalFormat.java | 32 import com.ibm.icu.util.CurrencyAmount; 313 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format()
|
D | MeasureFormat.java | 43 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/ |
D | CurrencyAmount.java | 25 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/ |
D | CurrencyAmount.java | 25 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/ |
D | NumberFormatJDK.java | 20 import com.ibm.icu.util.CurrencyAmount; 85 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) { in format()
|
/external/icu/icu4c/source/test/intltest/ |
D | numfmtst.cpp | 433 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 …]
|
D | uobjtest.cpp | 374 TESTCLASSID_CTOR(CurrencyAmount, (1.0, SMALL_STR, status)); in testIDs()
|