Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: icu46/source/i18n/curramt.cpp

Issue 5516007: Check in the pristine copy of ICU 4.6... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu46/source/i18n/csrutf8.cpp ('k') | icu46/source/i18n/currfmt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
2 **********************************************************************
3 * Copyright (c) 2004, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 * Author: Alan Liu
7 * Created: April 26, 2004
8 * Since: ICU 3.0
9 **********************************************************************
10 */
11 #include "unicode/utypes.h"
12
13 #if !UCONFIG_NO_FORMATTING
14
15 #include "unicode/curramt.h"
16 #include "unicode/currunit.h"
17
18 U_NAMESPACE_BEGIN
19
20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode,
21 UErrorCode& ec) :
22 Measure(amount, new CurrencyUnit(isoCode, ec), ec) {
23 }
24
25 CurrencyAmount::CurrencyAmount(double amount, const UChar* isoCode,
26 UErrorCode& ec) :
27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
28 }
29
30 CurrencyAmount::CurrencyAmount(const CurrencyAmount& other) :
31 Measure(other) {
32 }
33
34 CurrencyAmount& CurrencyAmount::operator=(const CurrencyAmount& other) {
35 Measure::operator=(other);
36 return *this;
37 }
38
39 UObject* CurrencyAmount::clone() const {
40 return new CurrencyAmount(*this);
41 }
42
43 CurrencyAmount::~CurrencyAmount() {
44 }
45
46 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CurrencyAmount)
47
48 U_NAMESPACE_END
49
50 #endif // !UCONFIG_NO_FORMATTING
OLDNEW
« no previous file with comments | « icu46/source/i18n/csrutf8.cpp ('k') | icu46/source/i18n/currfmt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698