diff --git a/icu4c/source/i18n/datefmt.h b/icu4c/source/i18n/datefmt.h index d77fd804c89..8d43d49d26a 100644 --- a/icu4c/source/i18n/datefmt.h +++ b/icu4c/source/i18n/datefmt.h @@ -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