From 5b3904ef14f9fad8dbeec06fa8a80ca9bb10d674 Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Thu, 21 Oct 1999 23:23:59 +0000 Subject: [PATCH] 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@91 0a8b766c-62c9-45f9-954d-7f2943c9ead0 --- source/i18n/smpdtfmt.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/source/i18n/smpdtfmt.h b/source/i18n/smpdtfmt.h index 03fa03fd781..2e37afb5163 100644 --- a/source/i18n/smpdtfmt.h +++ b/source/i18n/smpdtfmt.h @@ -288,6 +288,18 @@ public: FieldPosition& pos, UErrorCode& status) const; + /** + * Redeclared DateFormat method. + */ + UnicodeString& format(const Formattable& obj, + UnicodeString& result, + UErrorCode& status) const; + + /** + * Redeclared DateFormat method. + */ + UnicodeString& format(UDate date, UnicodeString& result) const; + /** * Parse a date/time string starting at the given parse position. For * example, a time text "07/10/96 4:5 PM, PDT" will be parsed into a Date @@ -709,5 +721,17 @@ SimpleDateFormat::get2DigitYearStart(UErrorCode& status) const return fDefaultCenturyStart; } +inline UnicodeString& +SimpleDateFormat::format(const Formattable& obj, + UnicodeString& result, + UErrorCode& status) const { + return DateFormat::format(obj, result, status); +} + +inline UnicodeString& +SimpleDateFormat::format(UDate date, UnicodeString& result) const { + return DateFormat::format(date, result); +} + #endif // _SMPDTFMT //eof