Patch: java.text.DecimalFormat

Michael Koch konqueror@gmx.de
Tue May 4 22:09:00 GMT 2004


Hi list,


I merged the attached patch from GNU classpath.


Michael


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: decimal.diff
Type: text/x-diff
Size: 13929 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040504/eb6494d5/attachment.bin>


More information about the Java-patches mailing list