~ubuntu-branches/ubuntu/natty/libjoda-time-java/natty

« back to all changes in this revision

Viewing changes to src/java/org/joda/time/format/DateTimeFormatterBuilder.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2008-02-22 00:37:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080222003748-hbelrqlvxqlq8oic
Tags: 1.5.2-1
* New upstream release
* Add myself to Uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
1710
1710
                    for (int i = min; i <= max; i++) {
1711
1711
                        property.set(i);
1712
1712
                        validValues.add(property.getAsShortText(locale));
 
1713
                        validValues.add(property.getAsShortText(locale).toLowerCase(locale));
 
1714
                        validValues.add(property.getAsShortText(locale).toUpperCase(locale));
1713
1715
                        validValues.add(property.getAsText(locale));
 
1716
                        validValues.add(property.getAsText(locale).toLowerCase(locale));
 
1717
                        validValues.add(property.getAsText(locale).toUpperCase(locale));
1714
1718
                    }
1715
1719
                    if ("en".equals(locale.getLanguage()) && iFieldType == DateTimeFieldType.era()) {
1716
1720
                        // hack to support for parsing "BCE" and "CE" if the language is English
1717
1721
                        validValues.add("BCE");
 
1722
                        validValues.add("bce");
1718
1723
                        validValues.add("CE");
 
1724
                        validValues.add("ce");
1719
1725
                        maxLength = 3;
1720
1726
                    }
1721
1727
                    array = new Object[] {validValues, new Integer(maxLength)};