]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/curramt.cpp
2 **********************************************************************
3 * Copyright (c) 2004, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
7 * Created: April 26, 2004
9 **********************************************************************
11 #include "unicode/utypes.h"
13 #if !UCONFIG_NO_FORMATTING
15 #include "unicode/curramt.h"
16 #include "unicode/currunit.h"
20 CurrencyAmount::CurrencyAmount(const Formattable
& amount
, const UChar
* isoCode
,
22 Measure(amount
, new CurrencyUnit(isoCode
, ec
), ec
) {
25 CurrencyAmount::CurrencyAmount(double amount
, const UChar
* isoCode
,
27 Measure(Formattable(amount
), new CurrencyUnit(isoCode
, ec
), ec
) {
30 CurrencyAmount::CurrencyAmount(const CurrencyAmount
& other
) :
34 CurrencyAmount
& CurrencyAmount::operator=(const CurrencyAmount
& other
) {
35 Measure::operator=(other
);
39 UObject
* CurrencyAmount::clone() const {
40 return new CurrencyAmount(*this);
43 CurrencyAmount::~CurrencyAmount() {
46 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyAmount
)
50 #endif // !UCONFIG_NO_FORMATTING