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

MeasureFormat Class Reference

#include <measfmt.h>

Inheritance diagram for MeasureFormat:

Format UObject UMemory CurrencyFormat TimeUnitFormat

List of all members.


Detailed Description

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.

See also:
Format
Author:
Alan Liu ICU 3.0

Definition at line 41 of file measfmt.h.


Public Member Functions

virtual Formatclone () const =0
virtual UnicodeStringformat (const Formattable &obj, UnicodeString &appendTo, FieldPositionIterator *posIter, UErrorCode &status) const
virtual UnicodeStringformat (const Formattable &obj, UnicodeString &appendTo, FieldPosition &pos, UErrorCode &status) const =0
UnicodeStringformat (const Formattable &obj, UnicodeString &appendTo, UErrorCode &status) const
virtual UClassID getDynamicClassID () const =0
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 =0
void parseObject (const UnicodeString &source, Formattable &result, UErrorCode &status) const
virtual void parseObject (const UnicodeString &source, Formattable &result, ParsePosition &parse_pos) const =0

Static Public Member Functions

static MeasureFormat *U_EXPORT2 createCurrencyFormat (UErrorCode &ec)
static MeasureFormat *U_EXPORT2 createCurrencyFormat (const Locale &locale, UErrorCode &ec)
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

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

Static Protected Member Functions

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

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

Generated by  Doxygen 1.6.0   Back to index