| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
* java/text/SimpleDateFormat.java (SimpleDateFormat): Added
numberFormat.setParseIntegerOnly(true).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(SimpleDateFormat(String,DateFormatSymbols)): Call
computeCenturyStart().
* gnu/java/locale/LocaleInformation_de.java (word_breaks,
sentence_breaks, line_breaks): Removed.
(collation_rules): Use `k,K', not `j,K'. Don't using leading
`-'. Use `0<1', not `0,1'. Use `9<A', not `9A'.
* gnu/java/locale/LocaleInformation_nl.java: Likewise.
* gnu/java/locale/LocaleInformation_en.java: Likewise.
* java/text/DateFormatSymbols.java: Merged with libgcj.
* java/text/StringCharacterIterator.java: Reindented and merged
with libgcj.
(StringCharacterIterator(String,int,int,int)): Simplified.
(current): Likewise.
(next): Likewise.
(previous): Likewise.
(last): Likewise.
(equals): Likewise.
(setText): Now public. Also sets all fields.
* java/text/RuleBasedCollator.java (clone): Rewrote.
* java/text/Collator.java: Mostly merged with libgcj.
* java/text/MessageFormat.java: Merged with libgcj.
* java/text/FieldPosition.java: Reindented. Merged with libgcj.
* java/text/ParsePosition.java: Reindented. Merged with libgcj.
* java/text/Format.java: Reindented. Merged with libgcj.
(parseObject): Doesn't throw exception on error.
* java/text/CharacterIterator.java: Reindented.
* java/text/ChoiceFormat.java: Merged with libgcj.
* gnu/java/text/Makefile.am: New file.
* gnu/java/Makefile.am (SUBDIRS): Added text.
* configure.in (AC_OUTPUT): Added gnu/java/text/Makefile.
* gnu/java/text/BaseBreakIterator.java: New file from libgcj.
* gnu/java/text/CharacterBreakIterator.java: Likewise.
* gnu/java/text/LineBreakIterator.java: Likewise.
* gnu/java/text/SentenceBreakIterator.java: Likewise.
* gnu/java/text/WordBreakIterator.java: Likewise.
* java/text/BreakIterator.java: Merged with libgcj.
* java/text/DefaultBreakIterator.java: Removed.
* java/text/DecimalFormatSymbols.java: Merged with libgcj.
* java/text/DateFormat.java: Merged with libgcj.
* gnu/java/locale/Makefile.am (EXTRA_DIST): Added new file.
* gnu/java/locale/LocaleInformation_en.java: Removed US-specific
entries.
(collation_rules): Use `k,K', not `j,K'.
* gnu/java/locale/LocaleInformation_en_US.java: New file.
* java/text/NumberFormat.java: Merged with libgcj.
* java/text/DecimalFormat.java: Merged with libgcj.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
will already be set if someone set time explicitly, and it can cause
problems to do so. Don't invalidate AM_PM setting if HOUR is set.
* java/util/GregorianCalendar.java (computeTime): Don't ignore an
HOUR setting if AM_PM is set. Don't try to ensure the HOUR value is
sane.
* java/text/SimpleDateFormat.java (defaultCentury): New field.
(readObject): Call set2DigitYearStart if appropriate so that
defaultCentury is calculated.
(SimpleDateFormat): Don't bother clearing calendar here. Call
computeCenturyStart().
(set2DigitYearStart): Calculate and set defaultCentury.
(format): Don't clone the calendar. Use "calendar" not "theCalendar"
everywhere.
(parse): Likewise. If the pattern is "y" or "yy" and it found exactly
2 numeric digits, use the 80-20 heuristic to parse the value into a
default century based on defaultCenturyStart.
(computeCenturyStart): Rewritten. Call set2DigitYearStart().
|
|
|
|
| |
zones.
|
|
|
|
| |
ZONE_OFFSET just before computing the time.
|
|
|
|
|
|
|
|
|
|
| |
method.
(defaultCenturyStart): Use it.
(readObject): Likewise.
(SimpleDateFormat): Clear the calendar. Set the grouping on the
number format.
(parse): Copy the calendar before modifying it. Correctly handle
the time zone.
|
|
|
|
|
|
|
|
|
|
| |
(indexInArray): Removed private method.
(processYear): Removed private method.
(parseLenient): Removed private method.
(parseLeadingZeros): Removed private method.
(parseStrict): Removed private method.
(expect): Added new private method from libgcj.
(parse): Merge with libgcj version with minor fixes.
|
|
|
|
|
|
|
| |
HOUR_OF_DAY1_FIELD (1-24), HOUR1_FIELD (1-12), and HOUR0_FIELD (0-11)
correctly. Adjust properly from 0-23 clock hour.
Fixes failure in Mauve test java.text.SimpleDateFormat.Test (format).
|
|
|
|
|
| |
* java/text/SimpleDateFormat.java (format): Added case for
TIMEZONE_FIELD.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Letters 'k' and 'h' were reversed from the spec.
* java/text/DateFormat.java: Minor formatting fixes.
(DEFAULT): Added comment to note discrepancy against JCL.
(equals): Check that numberFormat is equals (per JCL).
* java/text/SimpleDateFormat.java (tokens): Made transient.
(serialVersionUID): Added new field.
(readObject): Added serialization method.
(standardChars): Added new private field.
(SimpleDateFormat): Rewrote constructors to match JCL. Merged
from libgcj.
(toLocalizedPattern): Merged from libgcj.
(applyLocalizedPattern): Merged from libgcj.
(format): Merged from libgcj; now handles pos.
(parseLenient): Made private.
(parseStrict): Made private.
* java/util/TimeZone.java: Use user.timezone property if set.
(setRawOffset): Added abstract method per spec.
(getTimeZone): Changed comment to reflect that GMT is the default.
|
|
|
|
| |
Fix copyright years.
|
| |
|
| |
|
|
|