]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/curramt.cpp
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 **********************************************************************
5 * Copyright (c) 2004, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
9 * Created: April 26, 2004
11 **********************************************************************
13 #include "unicode/utypes.h"
15 #if !UCONFIG_NO_FORMATTING
17 #include "unicode/curramt.h"
18 #include "unicode/currunit.h"
22 CurrencyAmount::CurrencyAmount(const Formattable
& amount
, ConstChar16Ptr isoCode
,
24 Measure(amount
, new CurrencyUnit(isoCode
, ec
), ec
) {
27 CurrencyAmount::CurrencyAmount(double amount
, ConstChar16Ptr isoCode
,
29 Measure(Formattable(amount
), new CurrencyUnit(isoCode
, ec
), ec
) {
32 CurrencyAmount::CurrencyAmount(const CurrencyAmount
& other
) :
36 CurrencyAmount
& CurrencyAmount::operator=(const CurrencyAmount
& other
) {
37 Measure::operator=(other
);
41 UObject
* CurrencyAmount::clone() const {
42 return new CurrencyAmount(*this);
45 CurrencyAmount::~CurrencyAmount() {
48 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyAmount
)
52 #endif // !UCONFIG_NO_FORMATTING