]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/currfmt.h
69a031957bcea9110299e022f715eb1144aa9739
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
4 **********************************************************************
5 * Copyright (c) 2004-2014, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
9 * Created: April 20, 2004
11 **********************************************************************
13 #ifndef CURRENCYFORMAT_H
14 #define CURRENCYFORMAT_H
16 #include "unicode/utypes.h"
18 #if !UCONFIG_NO_FORMATTING
20 #include "unicode/measfmt.h"
27 * Temporary internal concrete subclass of MeasureFormat implementing
28 * parsing and formatting of currency amount objects. This class is
29 * likely to be redesigned and rewritten in the near future.
31 * <p>This class currently delegates to DecimalFormat for parsing and
38 class CurrencyFormat
: public MeasureFormat
{
43 * Construct a CurrencyFormat for the given locale.
45 CurrencyFormat(const Locale
& locale
, UErrorCode
& ec
);
50 CurrencyFormat(const CurrencyFormat
& other
);
55 virtual ~CurrencyFormat();
58 * Override Format API.
60 virtual CurrencyFormat
* clone() const;
63 using MeasureFormat::format
;
66 * Override Format API.
68 virtual UnicodeString
& format(const Formattable
& obj
,
69 UnicodeString
& appendTo
,
71 UErrorCode
& ec
) const;
74 * Override Format API.
76 virtual void parseObject(const UnicodeString
& source
,
78 ParsePosition
& pos
) const;
81 * Override Format API.
83 virtual UClassID
getDynamicClassID() const;
86 * Returns the class ID for this class.
88 static UClassID U_EXPORT2
getStaticClassID();
93 #endif // #if !UCONFIG_NO_FORMATTING
94 #endif // #ifndef CURRENCYFORMAT_H