Logo Search packages:      
Sourcecode: icu version File versions  Download package

CurrencyFormat Class Reference

#include <currfmt.h>

Inheritance diagram for CurrencyFormat:

MeasureFormat Format UObject UMemory

List of all members.


Detailed Description

Temporary internal concrete subclass of MeasureFormat implementing parsing and formatting of currency amount objects. This class is likely to be redesigned and rewritten in the near future.

This class currently delegates to DecimalFormat for parsing and formatting.

See also:
MeasureFormat
Author:
Alan Liu

For internal use only.

Definition at line 36 of file currfmt.h.


Public Member Functions

virtual Formatclone () const
 CurrencyFormat (const CurrencyFormat &other)
 CurrencyFormat (const Locale &locale, UErrorCode &ec)
virtual UnicodeStringformat (const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const
UnicodeStringformat (const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const
virtual UnicodeStringformat (const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &ec) const
virtual UClassID getDynamicClassID () const
Locale getLocale (ULocDataLocaleType type, UErrorCode &status) const
const char * getLocaleID (ULocDataLocaleType type, UErrorCode &status) const
UBool operator!= (const Format &other) const
virtual UBool operator== (const Format &other) const
void parseObject (const UnicodeString &source, Formattable &result, UErrorCode &status) const
virtual void parseObject (const UnicodeString &source, Formattable &result, ParsePosition &pos) const
virtual ~CurrencyFormat ()

Static Public Member Functions

static MeasureFormat *U_EXPORT2 createCurrencyFormat (UErrorCode &ec)
static MeasureFormat *U_EXPORT2 createCurrencyFormat (const Locale &locale, UErrorCode &ec)
static UClassID U_EXPORT2 getStaticClassID ()
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Protected Member Functions

void setLocaleIDs (const char *valid, const char *actual)

Static Protected Member Functions

static void syntaxError (const UnicodeString &pattern, int32_t pos, UParseError &parseError)

Private Attributes

NumberFormatfmt

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index