From 92e266279c01942b835b873c6001048c21de5c5d Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Thu, 21 Oct 1999 23:15:44 +0000 Subject: [PATCH] [ICU-25] Redeclarations of format/parse needed in Format hierarchy X-Commit-URL: https://ssl.icu-project.org/trac/changeset/89 --- icu4c/source/i18n/datefmt.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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