Redeclarations of format/parse needed in Format hierarchy

X-Trac-URL: https://ssl.icu-project.org/trac/ticket/25



git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@92 0a8b766c-62c9-45f9-954d-7f2943c9ead0
This commit is contained in:
Alan Liu 1999-10-21 23:31:14 +00:00
parent 5b3904ef14
commit e341029257

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. *
@ -232,6 +233,13 @@ public:
UnicodeString& toAppendTo,
FieldPosition& pos) const = 0;
/**
* Redeclared Format method.
*/
UnicodeString& format(const Formattable& obj,
UnicodeString& result,
UErrorCode& status) const;
/**
* Return a long if possible (e.g. within range LONG_MAX,
* LONG_MAX], and with no decimals), otherwise a double. If
@ -509,6 +517,13 @@ NumberFormat::isParseIntegerOnly() const
{
return fParseIntegerOnly;
}
inline UnicodeString&
NumberFormat::format(const Formattable& obj,
UnicodeString& result,
UErrorCode& status) const {
return Format::format(obj, result, status);
}
#endif // _NUMFMT
//eof