Searched refs:CurrencyAmount (Results 1 - 25 of 30) sorted by relevance

12

/external/icu/icu4c/source/i18n/
H A Dcurramt.cpp20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode, function in class:CurrencyAmount
25 CurrencyAmount::CurrencyAmount(double amount, const UChar* isoCode, function in class:CurrencyAmount
30 CurrencyAmount::CurrencyAmount(const CurrencyAmount& other) : function in class:CurrencyAmount
34 CurrencyAmount& CurrencyAmount::operator=(const CurrencyAmount
[all...]
H A Dcurrfmt.cpp53 CurrencyAmount* currAmt = fmt->parseCurrency(source, pos);
H A Dnumfmt.cpp508 const CurrencyAmount* amt;
509 if (o != NULL && (amt = dynamic_cast<const CurrencyAmount*>(o)) != NULL) {
729 CurrencyAmount* NumberFormat::parseCurrency(const UnicodeString& text,
740 LocalPointer<CurrencyAmount> currAmt(new CurrencyAmount(parseResult, curr, ec), ec);
H A Dunum.cpp314 CurrencyAmount *tempCurrAmnt = new CurrencyAmount(number, currency, *status);
447 LocalPointer<CurrencyAmount> currAmt(((const NumberFormat*)fmt)->parseCurrency(src, pp));
H A Ddecimfmt.cpp889 CurrencyAmount* DecimalFormat::parseCurrency(const UnicodeString& text,
897 LocalPointer<CurrencyAmount> currAmt(new CurrencyAmount(parseResult, curbuf, ec), ec);
/external/icu/icu4c/source/i18n/unicode/
H A Dcurramt.h35 class U_I18N_API CurrencyAmount: public Measure { class in inherits:Measure
47 CurrencyAmount(const Formattable& amount, const UChar* isoCode,
60 CurrencyAmount(double amount, const UChar* isoCode,
67 CurrencyAmount(const CurrencyAmount& other);
73 CurrencyAmount& operator=(const CurrencyAmount& other);
86 virtual ~CurrencyAmount();
119 inline const CurrencyUnit& CurrencyAmount::getCurrency() const {
123 inline const UChar* CurrencyAmount
[all...]
H A Dcompactdecimalformat.h362 * @return if parse succeeds, a pointer to a newly-created CurrencyAmount
367 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
H A Dnumfmt.h629 * @return if parse succeeds, a pointer to a newly-created CurrencyAmount
634 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
H A Ddecimfmt.h1212 * @return if parse succeeds, a pointer to a newly-created CurrencyAmount
1217 virtual CurrencyAmount* parseCurrency(const UnicodeString& text,
/external/icu/android_icu4j/src/main/java/android/icu/util/
H A DCurrencyAmount.java17 * CurrencyAmount objects are immutable.
23 public class CurrencyAmount extends Measure { class in inherits:Measure
30 public CurrencyAmount(Number number, Currency currency) { method in class:CurrencyAmount
39 public CurrencyAmount(double number, Currency currency) { method in class:CurrencyAmount
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DCurrencyAmount.java16 * CurrencyAmount objects are immutable.
23 public class CurrencyAmount extends Measure { class in inherits:Measure
31 public CurrencyAmount(Number number, Currency currency) { method in class:CurrencyAmount
41 public CurrencyAmount(double number, Currency currency) { method in class:CurrencyAmount
/external/icu/android_icu4j/src/main/java/android/icu/text/
H A DCurrencyFormat.java18 import android.icu.util.CurrencyAmount;
24 * parsing and formatting of CurrencyAmount objects. This class is
63 if (!(obj instanceof CurrencyAmount)) {
66 CurrencyAmount currency = (CurrencyAmount) obj;
77 public CurrencyAmount parseObject(String source, ParsePosition pos) {
H A DNumberFormat.java28 import android.icu.util.CurrencyAmount;
258 } else if (number instanceof CurrencyAmount) {
259 return format((CurrencyAmount)number, toAppendTo, pos);
325 * <strong>[icu]</strong> Convenience method to format a CurrencyAmount.
327 public final String format(CurrencyAmount currAmt) {
369 * <strong>[icu]</strong> Formats a CurrencyAmount. Specialization of format.
372 public StringBuffer format(CurrencyAmount currAmt,
419 * Parses text from the given string as a CurrencyAmount. Unlike
432 * @return a CurrencyAmount, or null upon failure
434 public CurrencyAmount parseCurrenc
[all...]
H A DMeasureFormat.java42 import android.icu.util.CurrencyAmount;
426 // CurrencyAmount currencyLow = (CurrencyAmount) lowValue;
427 // CurrencyAmount currencyHigh = (CurrencyAmount) highValue;
601 * Return a formatter for CurrencyAmount objects in the given
611 * Return a formatter for CurrencyAmount objects in the given
621 * Return a formatter for CurrencyAmount objects in the default
1001 new CurrencyAmount(n, (Currency) unit),
1061 CurrencyAmount
[all...]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DCurrencyFormat.java17 import com.ibm.icu.util.CurrencyAmount;
23 * parsing and formatting of CurrencyAmount objects. This class is
62 if (!(obj instanceof CurrencyAmount)) {
65 CurrencyAmount currency = (CurrencyAmount) obj;
76 public CurrencyAmount parseObject(String source, ParsePosition pos) {
H A DNumberFormat.java27 import com.ibm.icu.util.CurrencyAmount;
271 } else if (number instanceof CurrencyAmount) {
272 return format((CurrencyAmount)number, toAppendTo, pos);
344 * {@icu} Convenience method to format a CurrencyAmount.
347 public final String format(CurrencyAmount currAmt) {
394 * {@icu} Formats a CurrencyAmount. Specialization of format.
398 public StringBuffer format(CurrencyAmount currAmt,
447 * Parses text from the given string as a CurrencyAmount. Unlike
460 * @return a CurrencyAmount, or null upon failure
463 public CurrencyAmount parseCurrenc
[all...]
H A DMeasureFormat.java41 import com.ibm.icu.util.CurrencyAmount;
443 // CurrencyAmount currencyLow = (CurrencyAmount) lowValue;
444 // CurrencyAmount currencyHigh = (CurrencyAmount) highValue;
625 * Return a formatter for CurrencyAmount objects in the given
636 * Return a formatter for CurrencyAmount objects in the given
647 * Return a formatter for CurrencyAmount objects in the default
1028 new CurrencyAmount(n, (Currency) unit),
1088 CurrencyAmount
[all...]
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/icuadapter/
H A DNumberFormatJDK.java18 import com.ibm.icu.util.CurrencyAmount;
80 //String format(CurrencyAmount currAmt)
83 public StringBuffer format(CurrencyAmount currAmt, StringBuffer toAppendTo, FieldPosition pos) {
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
H A DNumberFormatTest.java46 import android.icu.util.CurrencyAmount;
131 CurrencyAmount currAmt = fmt.parseCurrency(tuple.parse, ppos);
917 CurrencyAmount parsedVal = (CurrencyAmount)curFmt.parseObject(stringToBeParsed);
987 // format currency with CurrencyAmount
993 CurrencyAmount cAmt = new CurrencyAmount(1.5, curr);
994 logln("CurrencyAmount object's hashCode is: " + cAmt.hashCode()); //cover hashCode
1010 String strBuf = curFmt.format(new CurrencyAmount(new Float(1234.56), Currency.getInstance("USD")));
1013 CurrencyAmount parsedVa
[all...]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DNumberFormatTest.java45 import com.ibm.icu.util.CurrencyAmount;
127 CurrencyAmount currAmt = fmt.parseCurrency(tuple.parse, ppos);
913 CurrencyAmount parsedVal = (CurrencyAmount)curFmt.parseObject(stringToBeParsed);
983 // format currency with CurrencyAmount
989 CurrencyAmount cAmt = new CurrencyAmount(1.5, curr);
990 logln("CurrencyAmount object's hashCode is: " + cAmt.hashCode()); //cover hashCode
1006 String strBuf = curFmt.format(new CurrencyAmount(new Float(1234.56), Currency.getInstance("USD")));
1009 CurrencyAmount parsedVa
[all...]
/external/icu/icu4c/source/test/intltest/
H A Duobjtest.cpp372 TESTCLASSID_CTOR(CurrencyAmount, (1.0, SMALL_STR, status));
H A Dnumfmtst.cpp430 LocalPointer<CurrencyAmount> currAmt(
621 LocalPointer<CurrencyAmount> currAmt(test->parseCurrency("",ppos));
2390 CurrencyAmount ca(9, USD, ec);
2391 assertSuccess("CurrencyAmount", ec);
2393 CurrencyAmount ca2(ca);
2395 errln("CurrencyAmount copy constructed object should be same");
2400 errln("CurrencyAmount assigned object should be same");
2403 CurrencyAmount *ca3 = (CurrencyAmount *)ca.clone();
2405 errln("CurrencyAmount clone
[all...]
H A Dtsmthred.cpp504 fYDDThing.adoptObject(new CurrencyAmount(123.456, kYDD, status));
505 fBBDThing.adoptObject(new CurrencyAmount(987.654, kBBD, status));
H A Dmeasfmttest.cpp1346 CurrencyAmount USD_1(1.0, USD, status);
1347 CurrencyAmount USD_2(2.0, USD, status);
1348 CurrencyAmount USD_NEG_1(-1.0, USD, status);
H A Dintltest.cpp185 const CurrencyAmount* c = dynamic_cast<const CurrencyAmount*>(f.getObject());

Completed in 406 milliseconds

12