]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/currfmt.h
2 **********************************************************************
3 * Copyright (c) 2004-2010, 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 UBool
operator==(const Format
& other
) const;
61 * Override Format API.
63 virtual Format
* clone() const;
66 using MeasureFormat::format
;
69 * Override Format API.
71 virtual UnicodeString
& format(const Formattable
& obj
,
72 UnicodeString
& appendTo
,
74 UErrorCode
& ec
) const;
77 * Override Format API.
79 virtual void parseObject(const UnicodeString
& source
,
81 ParsePosition
& pos
) const;
84 * Override Format API.
86 virtual UClassID
getDynamicClassID() const;
89 * Returns the class ID for this class.
91 static UClassID U_EXPORT2
getStaticClassID();
100 #endif // #if !UCONFIG_NO_FORMATTING
101 #endif // #ifndef CURRENCYFORMAT_H