From 968aedb1803c079058f2b2764be043e8f5bb8a1e Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Mon, 12 Oct 2009 14:11:57 -0700 Subject: Bug fixing for NumberFormat and BigDecimal bug on ICU side. 1. Fixed the bug that DecimalFormat does not handle multiplier. 2. Fixed the bug that DecimalFormat does not handle precision. Bug: 1897917. --- i18n/digitlst.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/i18n/digitlst.h b/i18n/digitlst.h index 653bfe68..01b81738 100644 --- a/i18n/digitlst.h +++ b/i18n/digitlst.h @@ -205,6 +205,17 @@ public: // This code is unused. //UBool isLONG_MIN(void) const; + // BEGIN android-changed + // Public round() method for BigDecimal format. + // Revert this change after ICU4C supports BigDecimal. + /** + * Round the representation to the given number of digits. + * @param maximumDigits The maximum number of digits to be shown. + * Upon return, count will be less than or equal to maximumDigits. + */ + void round(int32_t maximumDigits); + // END android-changed + public: /** * These data members are intentionally public and can be set directly. @@ -244,13 +255,6 @@ private: int fBufferSize; // END android-changed - /** - * Round the representation to the given number of digits. - * @param maximumDigits The maximum number of digits to be shown. - * Upon return, count will be less than or equal to maximumDigits. - */ - void round(int32_t maximumDigits); - UBool shouldRoundUp(int32_t maximumDigits) const; }; -- cgit v1.2.3