A formatter for measure objects. More...
#include <measfmt.h>
Static Public Member Functions | |
static MeasureFormat * | createCurrencyFormat (const Locale &locale, UErrorCode &ec) |
Return a formatter for CurrencyAmount objects in the given locale. | |
static MeasureFormat * | createCurrencyFormat (UErrorCode &ec) |
Return a formatter for CurrencyAmount objects in the default locale. | |
Protected Member Functions | |
MeasureFormat () | |
Default constructor. |
A formatter for measure objects.
This is an abstract base class.
To format or parse a measure object, first create a formatter object using a MeasureFormat factory method. Then use that object's format and parse methods.
This is an abstract class.
Definition at line 41 of file measfmt.h.
MeasureFormat::MeasureFormat | ( | ) | [protected] |
Default constructor.
static MeasureFormat* MeasureFormat::createCurrencyFormat | ( | UErrorCode & | ec | ) | [static] |
Return a formatter for CurrencyAmount objects in the default locale.
ec | input-output error code |
static MeasureFormat* MeasureFormat::createCurrencyFormat | ( | const Locale & | locale, | |
UErrorCode & | ec | |||
) | [static] |
Return a formatter for CurrencyAmount objects in the given locale.
locale | desired locale | |
ec | input-output error code |