intl/icu/source/i18n/curramt.cpp

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /*
michael@0 2 **********************************************************************
michael@0 3 * Copyright (c) 2004, International Business Machines
michael@0 4 * Corporation and others. All Rights Reserved.
michael@0 5 **********************************************************************
michael@0 6 * Author: Alan Liu
michael@0 7 * Created: April 26, 2004
michael@0 8 * Since: ICU 3.0
michael@0 9 **********************************************************************
michael@0 10 */
michael@0 11 #include "unicode/utypes.h"
michael@0 12
michael@0 13 #if !UCONFIG_NO_FORMATTING
michael@0 14
michael@0 15 #include "unicode/curramt.h"
michael@0 16 #include "unicode/currunit.h"
michael@0 17
michael@0 18 U_NAMESPACE_BEGIN
michael@0 19
michael@0 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode,
michael@0 21 UErrorCode& ec) :
michael@0 22 Measure(amount, new CurrencyUnit(isoCode, ec), ec) {
michael@0 23 }
michael@0 24
michael@0 25 CurrencyAmount::CurrencyAmount(double amount, const UChar* isoCode,
michael@0 26 UErrorCode& ec) :
michael@0 27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
michael@0 28 }
michael@0 29
michael@0 30 CurrencyAmount::CurrencyAmount(const CurrencyAmount& other) :
michael@0 31 Measure(other) {
michael@0 32 }
michael@0 33
michael@0 34 CurrencyAmount& CurrencyAmount::operator=(const CurrencyAmount& other) {
michael@0 35 Measure::operator=(other);
michael@0 36 return *this;
michael@0 37 }
michael@0 38
michael@0 39 UObject* CurrencyAmount::clone() const {
michael@0 40 return new CurrencyAmount(*this);
michael@0 41 }
michael@0 42
michael@0 43 CurrencyAmount::~CurrencyAmount() {
michael@0 44 }
michael@0 45
michael@0 46 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyAmount)
michael@0 47
michael@0 48 U_NAMESPACE_END
michael@0 49
michael@0 50 #endif // !UCONFIG_NO_FORMATTING

mercurial