From 9d7c846121211b5d623ba734cab4848124011854 Mon Sep 17 00:00:00 2001 From: Alan Liu Date: Thu, 21 Oct 1999 23:10:19 +0000 Subject: [PATCH] [ICU-25] Redeclarations of format/parse needed in Format hierarchy X-Commit-URL: https://ssl.icu-project.org/trac/changeset/88 --- icu4c/source/i18n/choicfmt.h | 39 ++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/icu4c/source/i18n/choicfmt.h b/icu4c/source/i18n/choicfmt.h index 7fb7e05f865..f19cfb529f9 100644 --- a/icu4c/source/i18n/choicfmt.h +++ b/icu4c/source/i18n/choicfmt.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. * @@ -261,6 +262,25 @@ public: FieldPosition& pos, UErrorCode& status) const; + /** + * Redeclared Format method. + */ + UnicodeString& format(const Formattable& obj, + UnicodeString& result, + UErrorCode& status) const; + + /** + * Redeclared NumberFormat method. + */ + UnicodeString& format( double number, + UnicodeString& output) const; + + /** + * Redeclared NumberFormat method. + */ + UnicodeString& format( int32_t number, + UnicodeString& output) const; + /** * Return a long if possible (e.g. within range LONG_MAX, * LONG_MAX], and with no decimals), otherwise a double. If @@ -385,5 +405,24 @@ inline double ChoiceFormat::previousDouble( double d ) return ChoiceFormat::nextDouble( d, FALSE ); } +inline UnicodeString& +ChoiceFormat::format(const Formattable& obj, + UnicodeString& result, + UErrorCode& status) const { + return Format::format(obj, result, status); +} + +inline UnicodeString& +ChoiceFormat::format(double number, + UnicodeString& output) const { + return NumberFormat::format(number, output); +} + +inline UnicodeString& +ChoiceFormat::format(int32_t number, + UnicodeString& output) const { + return NumberFormat::format(number, output); +} + #endif // _CHOICFMT //eof