]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/currfmt.h
2 **********************************************************************
3 * Copyright (c) 2004-2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
7 * Created: April 20, 2004
9 **********************************************************************
11 #ifndef CURRENCYFORMAT_H
12 #define CURRENCYFORMAT_H
14 #include "unicode/utypes.h"
16 #if !UCONFIG_NO_FORMATTING
18 #include "unicode/measfmt.h"
25 * Temporary internal concrete subclass of MeasureFormat implementing
26 * parsing and formatting of currency amount objects. This class is
27 * likely to be redesigned and rewritten in the near future.
29 * <p>This class currently delegates to DecimalFormat for parsing and
36 class CurrencyFormat
: public MeasureFormat
{
41 * Construct a CurrencyFormat for the given locale.
43 CurrencyFormat(const Locale
& locale
, UErrorCode
& ec
);
48 CurrencyFormat(const CurrencyFormat
& other
);
53 virtual ~CurrencyFormat();
56 * Override Format API.
58 virtual Format
* clone() const;
61 using MeasureFormat::format
;
64 * Override Format API.
66 virtual UnicodeString
& format(const Formattable
& obj
,
67 UnicodeString
& appendTo
,
69 UErrorCode
& ec
) const;
72 * Override Format API.
74 virtual void parseObject(const UnicodeString
& source
,
76 ParsePosition
& pos
) const;
79 * Override Format API.
81 virtual UClassID
getDynamicClassID() const;
84 * Returns the class ID for this class.
86 static UClassID U_EXPORT2
getStaticClassID();
95 #endif // #if !UCONFIG_NO_FORMATTING
96 #endif // #ifndef CURRENCYFORMAT_H