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

X-Commit-URL: https://ssl.icu-project.org/trac/changeset/89
This commit is contained in:
Alan Liu 1999-10-21 23:15:44 +00:00
parent 9d7c846121
commit 92e266279c

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. *
@ -273,6 +274,13 @@ public:
*/
UnicodeString& format(UDate date, UnicodeString& result) const;
/**
* Redeclared Format method.
*/
UnicodeString& format(const Formattable& obj,
UnicodeString& result,
UErrorCode& status) const;
/**
* Parse a date/time string.
*
@ -520,5 +528,12 @@ private:
static const Locale* fgLocales;
};
inline UnicodeString&
DateFormat::format(const Formattable& obj,
UnicodeString& result,
UErrorCode& status) const {
return Format::format(obj, result, status);
}
#endif // _DATEFMT
//eof