[ICU-25] Redeclarations of format/parse needed in Format hierarchy

X-Commit-URL: https://ssl.icu-project.org/trac/changeset/88
This commit is contained in:
Alan Liu 1999-10-21 23:10:19 +00:00
parent 49c1d71f8b
commit 9d7c846121

View file

@ -4,6 +4,7 @@
* COPYRIGHT: *
* (C) Copyright Taligent, Inc., 1997 *
* (C) Copyright International Business Machines Corporation, 1997-1999 *
* Copyright (C) 1999 Alan Liu and others. All rights reserved. *
* Licensed Material - Program-Property of IBM - All Rights Reserved. *
* US Government Users Restricted Rights - Use, duplication, or disclosure *
* restricted by GSA ADP Schedule Contract with IBM Corp. *
@ -261,6 +262,25 @@ public:
FieldPosition& pos,
UErrorCode& status) const;
/**
* Redeclared Format method.
*/
UnicodeString& format(const Formattable& obj,
UnicodeString& result,
UErrorCode& status) const;
/**
* Redeclared NumberFormat method.
*/
UnicodeString& format( double number,
UnicodeString& output) const;
/**
* Redeclared NumberFormat method.
*/
UnicodeString& format( int32_t number,
UnicodeString& output) const;
/**
* Return a long if possible (e.g. within range LONG_MAX,
* LONG_MAX], and with no decimals), otherwise a double. If
@ -385,5 +405,24 @@ inline double ChoiceFormat::previousDouble( double d )
return ChoiceFormat::nextDouble( d, FALSE );
}
inline UnicodeString&
ChoiceFormat::format(const Formattable& obj,
UnicodeString& result,
UErrorCode& status) const {
return Format::format(obj, result, status);
}
inline UnicodeString&
ChoiceFormat::format(double number,
UnicodeString& output) const {
return NumberFormat::format(number, output);
}
inline UnicodeString&
ChoiceFormat::format(int32_t number,
UnicodeString& output) const {
return NumberFormat::format(number, output);
}
#endif // _CHOICFMT
//eof