2004-05-05 Guilhem Lavaux <guilhem@kaffe.org>
authorGuilhem Lavaux <guilhem@kaffe.org>
Tue, 4 May 2004 22:00:30 +0000 (22:00 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Tue, 4 May 2004 22:00:30 +0000 (22:00 +0000)
commit8cf1edb30c2c3803a6439afde8bcb5c8f01b5959
treedefe099ae4d498f26593658eecf72a09b38fb5a2
parentaff9d141f673a525df45b21a687efe624d30d642
2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>

* java/text/DecimalFormat.java
(MAXIMUM_INTEGER_DIGITS): New constant to keep the numeric value 309.
(applyPatternWithSymbols): Use MAXIMUM_INTEGER_DIGITS.
(parse): Fixed handling of exponentiation notation and grouping.

2004-05-05  Guilhem Lavaux <guilhem@kaffe.org>

* java/text/DecimalFormat.java
(scanFix): Build attribute array. Fixed error reporting.
(applyPatternWithSymbols): Store attributes for the prefix and
suffix.
(formatInternal): New method. Changed the way the string is
computed. Implemented attributes. Cleant up rounding in
exponential notation.
(format): Use formatInternal.
(formatToCharacterIterator): New method.
(exponentRound, negativePrefixRanges, positivePrefixRanges,
negativePrefixAttrs, positivePrefixAttrs, negativeSuffixRanges,
positiveSuffixRanges, negativeSuffixAttrs, positiveSuffixAttrs):
New fields.

From-SVN: r81491
libjava/ChangeLog
libjava/java/text/DecimalFormat.java