Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /* |
michael@0 | 2 | ********************************************************************** |
michael@0 | 3 | * Copyright (c) 2004-2011, International Business Machines |
michael@0 | 4 | * Corporation and others. All Rights Reserved. |
michael@0 | 5 | ********************************************************************** |
michael@0 | 6 | * Author: Alan Liu |
michael@0 | 7 | * Created: April 20, 2004 |
michael@0 | 8 | * Since: ICU 3.0 |
michael@0 | 9 | ********************************************************************** |
michael@0 | 10 | */ |
michael@0 | 11 | #ifndef MEASUREFORMAT_H |
michael@0 | 12 | #define MEASUREFORMAT_H |
michael@0 | 13 | |
michael@0 | 14 | #include "unicode/utypes.h" |
michael@0 | 15 | |
michael@0 | 16 | #if !UCONFIG_NO_FORMATTING |
michael@0 | 17 | |
michael@0 | 18 | #include "unicode/format.h" |
michael@0 | 19 | |
michael@0 | 20 | /** |
michael@0 | 21 | * \file |
michael@0 | 22 | * \brief C++ API: Formatter for measure objects. |
michael@0 | 23 | */ |
michael@0 | 24 | |
michael@0 | 25 | U_NAMESPACE_BEGIN |
michael@0 | 26 | |
michael@0 | 27 | /** |
michael@0 | 28 | * |
michael@0 | 29 | * A formatter for measure objects. This is an abstract base class. |
michael@0 | 30 | * |
michael@0 | 31 | * <p>To format or parse a measure object, first create a formatter |
michael@0 | 32 | * object using a MeasureFormat factory method. Then use that |
michael@0 | 33 | * object's format and parse methods. |
michael@0 | 34 | * |
michael@0 | 35 | * <p>This is an abstract class. |
michael@0 | 36 | * |
michael@0 | 37 | * @see Format |
michael@0 | 38 | * @author Alan Liu |
michael@0 | 39 | * @stable ICU 3.0 |
michael@0 | 40 | */ |
michael@0 | 41 | class U_I18N_API MeasureFormat : public Format { |
michael@0 | 42 | public: |
michael@0 | 43 | /** |
michael@0 | 44 | * Destructor. |
michael@0 | 45 | * @stable ICU 3.0 |
michael@0 | 46 | */ |
michael@0 | 47 | virtual ~MeasureFormat(); |
michael@0 | 48 | |
michael@0 | 49 | /** |
michael@0 | 50 | * Return a formatter for CurrencyAmount objects in the given |
michael@0 | 51 | * locale. |
michael@0 | 52 | * @param locale desired locale |
michael@0 | 53 | * @param ec input-output error code |
michael@0 | 54 | * @return a formatter object, or NULL upon error |
michael@0 | 55 | * @stable ICU 3.0 |
michael@0 | 56 | */ |
michael@0 | 57 | static MeasureFormat* U_EXPORT2 createCurrencyFormat(const Locale& locale, |
michael@0 | 58 | UErrorCode& ec); |
michael@0 | 59 | |
michael@0 | 60 | /** |
michael@0 | 61 | * Return a formatter for CurrencyAmount objects in the default |
michael@0 | 62 | * locale. |
michael@0 | 63 | * @param ec input-output error code |
michael@0 | 64 | * @return a formatter object, or NULL upon error |
michael@0 | 65 | * @stable ICU 3.0 |
michael@0 | 66 | */ |
michael@0 | 67 | static MeasureFormat* U_EXPORT2 createCurrencyFormat(UErrorCode& ec); |
michael@0 | 68 | |
michael@0 | 69 | protected: |
michael@0 | 70 | |
michael@0 | 71 | /** |
michael@0 | 72 | * Default constructor. |
michael@0 | 73 | * @stable ICU 3.0 |
michael@0 | 74 | */ |
michael@0 | 75 | MeasureFormat(); |
michael@0 | 76 | }; |
michael@0 | 77 | |
michael@0 | 78 | U_NAMESPACE_END |
michael@0 | 79 | |
michael@0 | 80 | #endif // #if !UCONFIG_NO_FORMATTING |
michael@0 | 81 | #endif // #ifndef MEASUREFORMAT_H |