]>
git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/unicode/measfmt.h
2 **********************************************************************
3 * Copyright (c) 2004, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
7 * Created: April 20, 2004
9 **********************************************************************
11 #ifndef MEASUREFORMAT_H
12 #define MEASUREFORMAT_H
14 #include "unicode/utypes.h"
16 #if !UCONFIG_NO_FORMATTING
18 #include "unicode/format.h"
23 * A formatter for measure objects. This is an abstract base class.
25 * <p>To format or parse a measure object, first create a formatter
26 * object using a MeasureFormat factory method. Then use that
27 * object's format and parse methods.
29 * <p>This is an abstract class.
35 class U_I18N_API MeasureFormat
: public Format
{
40 * Return a formatter for CurrencyAmount objects in the given
42 * @param locale desired locale
43 * @param ec input-output error code
44 * @return a formatter object, or NULL upon error
47 static MeasureFormat
* U_EXPORT2
createCurrencyFormat(const Locale
& locale
,
51 * Return a formatter for CurrencyAmount objects in the default
53 * @param ec input-output error code
54 * @return a formatter object, or NULL upon error
57 static MeasureFormat
* U_EXPORT2
createCurrencyFormat(UErrorCode
& ec
);
62 * Default constructor.
70 #endif // #if !UCONFIG_NO_FORMATTING
71 #endif // #ifndef MEASUREFORMAT_H