mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 18:25:57 +00:00
ICU-2825 tag as draft ICU 3.0
X-SVN-Rev: 15066
This commit is contained in:
parent
fbfff82c1a
commit
a34d7e2697
4 changed files with 34 additions and 33 deletions
|
@ -24,7 +24,7 @@ U_NAMESPACE_BEGIN
|
|||
* A currency together with a numeric amount, such as 200 USD.
|
||||
*
|
||||
* @author Alan Liu
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
class U_I18N_API CurrencyAmount: public Measure {
|
||||
public:
|
||||
|
@ -36,7 +36,7 @@ class U_I18N_API CurrencyAmount: public Measure {
|
|||
* NULL and must have length 3
|
||||
* @param ec input-output error code. If the amount or the isoCode
|
||||
* is invalid, then this will be set to a failing value.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
CurrencyAmount(const Formattable& amount, const UChar* isoCode,
|
||||
UErrorCode &ec);
|
||||
|
@ -49,33 +49,33 @@ class U_I18N_API CurrencyAmount: public Measure {
|
|||
* NULL and must have length 3
|
||||
* @param ec input-output error code. If the isoCode is invalid,
|
||||
* then this will be set to a failing value.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
CurrencyAmount(double amount, const UChar* isoCode,
|
||||
UErrorCode &ec);
|
||||
|
||||
/**
|
||||
* Copy constructor
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
CurrencyAmount(const CurrencyAmount& other);
|
||||
|
||||
/**
|
||||
* Assignment operator
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
CurrencyAmount& operator=(const CurrencyAmount& other);
|
||||
|
||||
/**
|
||||
* Return a polymorphic clone of this object. The result will
|
||||
* have the same class as returned by getDynamicClassID().
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual UObject* clone() const;
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual ~CurrencyAmount();
|
||||
|
||||
|
@ -85,7 +85,7 @@ class U_I18N_API CurrencyAmount: public Measure {
|
|||
* @return The class ID for this object. All objects of a given
|
||||
* class have the same class ID. Objects of other classes have
|
||||
* different class IDs.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual UClassID getDynamicClassID() const;
|
||||
|
||||
|
@ -93,19 +93,19 @@ class U_I18N_API CurrencyAmount: public Measure {
|
|||
* Returns the class ID for this class. This is used to compare to
|
||||
* the return value of getDynamicClassID().
|
||||
* @return The class ID for all objects of this class.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
static UClassID getStaticClassID();
|
||||
|
||||
/**
|
||||
* Return the currency unit object of this object.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
inline const CurrencyUnit& getCurrency() const;
|
||||
|
||||
/**
|
||||
* Return the ISO currency code of this object.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
inline const UChar* getISOCurrency() const;
|
||||
};
|
||||
|
|
|
@ -25,7 +25,7 @@ U_NAMESPACE_BEGIN
|
|||
* subclasses MeasureUnit, for use with Measure and MeasureFormat.
|
||||
*
|
||||
* @author Alan Liu
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
class U_I18N_API CurrencyUnit: public MeasureUnit {
|
||||
public:
|
||||
|
@ -35,39 +35,39 @@ class U_I18N_API CurrencyUnit: public MeasureUnit {
|
|||
* NULL and must have length 3
|
||||
* @param ec input-output error code. If the isoCode is invalid,
|
||||
* then this will be set to a failing value.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
CurrencyUnit(const UChar* isoCode, UErrorCode &ec);
|
||||
|
||||
/**
|
||||
* Copy constructor
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
CurrencyUnit(const CurrencyUnit& other);
|
||||
|
||||
/**
|
||||
* Assignment operator
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
CurrencyUnit& operator=(const CurrencyUnit& other);
|
||||
|
||||
/**
|
||||
* Return a polymorphic clone of this object. The result will
|
||||
* have the same class as returned by getDynamicClassID().
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual UObject* clone() const;
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual ~CurrencyUnit();
|
||||
|
||||
/**
|
||||
* Equality operator. Return true if this object is equal
|
||||
* to the given object.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
UBool operator==(const UObject& other) const;
|
||||
|
||||
|
@ -77,7 +77,7 @@ class U_I18N_API CurrencyUnit: public MeasureUnit {
|
|||
* @return The class ID for this object. All objects of a given
|
||||
* class have the same class ID. Objects of other classes have
|
||||
* different class IDs.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual UClassID getDynamicClassID() const;
|
||||
|
||||
|
@ -85,13 +85,13 @@ class U_I18N_API CurrencyUnit: public MeasureUnit {
|
|||
* Returns the class ID for this class. This is used to compare to
|
||||
* the return value of getDynamicClassID().
|
||||
* @return The class ID for all objects of this class.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
static UClassID getStaticClassID();
|
||||
|
||||
/**
|
||||
* Return the ISO currency code of this object.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
inline const UChar* getISOCurrency() const;
|
||||
|
||||
|
|
|
@ -26,33 +26,34 @@ U_NAMESPACE_BEGIN
|
|||
* <p>This is an abstract class.
|
||||
*
|
||||
* @author Alan Liu
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
class U_I18N_API MeasureUnit: public UObject {
|
||||
public:
|
||||
/**
|
||||
* Return a polymorphic clone of this object. The result will
|
||||
* have the same class as returned by getDynamicClassID().
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual UObject* clone() const = 0;
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual ~MeasureUnit();
|
||||
|
||||
/**
|
||||
* Equality operator. Return true if this object is equal
|
||||
* to the given object.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual UBool operator==(const UObject& other) const = 0;
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Default constructor.
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
MeasureUnit();
|
||||
};
|
||||
|
|
|
@ -47,40 +47,40 @@ class U_I18N_API Measure: public UObject {
|
|||
* @param adpoptedUnit the unit object, which must not be NULL
|
||||
* @param ec input-output error code. If the amount or the unit
|
||||
* is invalid, then this will be set to a failing value.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
Measure(const Formattable& number, MeasureUnit* adoptedUnit,
|
||||
UErrorCode& ec);
|
||||
|
||||
/**
|
||||
* Copy constructor
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
Measure(const Measure& other);
|
||||
|
||||
/**
|
||||
* Assignment operator
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
Measure& operator=(const Measure& other);
|
||||
|
||||
/**
|
||||
* Return a polymorphic clone of this object. The result will
|
||||
* have the same class as returned by getDynamicClassID().
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual UObject* clone() const = 0;
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
virtual ~Measure();
|
||||
|
||||
/**
|
||||
* Equality operator. Return true if this object is equal
|
||||
* to the given object.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
UBool operator==(const UObject& other) const;
|
||||
|
||||
|
@ -88,13 +88,13 @@ class U_I18N_API Measure: public UObject {
|
|||
* Return a reference to the numeric value of this object. The
|
||||
* numeric value may be of any numeric type supported by
|
||||
* Formattable.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
inline const Formattable& getNumber() const;
|
||||
|
||||
/**
|
||||
* Return a reference to the unit of this object.
|
||||
* @internal
|
||||
* @draft ICU 3.0
|
||||
*/
|
||||
inline const MeasureUnit& getUnit() const;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue