Commit Graph

1161 Commits

Author SHA1 Message Date
Travis Keep
b5a7244a29 ICU-10640 Fix broken build. Fix MeasureFormat.format() to give correct begin and end index in FieldPosition even if the StringBuffer was initially non-empty.
X-SVN-Rev: 35035
2014-01-30 07:07:11 +00:00
Travis Keep
0f59bff9aa ICU-10646 Change SimplePatternFormatter.format() method to take String... instead of Object. replace formatValues() with format method that takes a StringBuilder and an int[].
X-SVN-Rev: 35034
2014-01-30 07:00:03 +00:00
Travis Keep
b50eda3341 ICU-10640 Change MeasureFormat to use QuantityFormatter.
X-SVN-Rev: 35030
2014-01-30 01:16:05 +00:00
Travis Keep
55e2a4a900 ICU-10640 Remove Appendable from JAVA MeasureFormat API.
X-SVN-Rev: 35029
2014-01-29 23:46:51 +00:00
Travis Keep
6f61caff18 ICU-10646 Template -> SimplePatternFormatter. evaluate -> format.
X-SVN-Rev: 35026
2014-01-29 21:42:17 +00:00
Travis Keep
1cf0f06b01 ICU-10646 Introduce Template class. Change ListFormatter and RelativeDateTimeFormatter to use the Template class instead of ad hoc replacement of placeholders.
X-SVN-Rev: 35014
2014-01-29 00:09:46 +00:00
Yoshito Umaoka
855434f737 ICU-10577 Changed Calendar not to use ICULocaleService which depends on language fallback. The new implementation uses calendar type/weekdata cache purely based on locale's region. Also update EhiopicCalendar's constructor to select proper subtype like Islamic calendar. This change also resolves unnecessary cyclic dependency between weekdata and calendar type (See #10425).
X-SVN-Rev: 35003
2014-01-27 22:15:02 +00:00
Yoshito Umaoka
86ae277276 ICU-10653 Fixed a thread safety problem in SimpleDateFormat.
X-SVN-Rev: 34993
2014-01-27 14:57:00 +00:00
Yoshito Umaoka
1f070a89af ICU-10632 DateFormat factory methods taking Calendar instance to handle relative styles properly.
X-SVN-Rev: 34988
2014-01-24 22:47:23 +00:00
Matitiahu Allouche
021f31f4b5 ICU-10647 fixes to UBA implementation to make it behave exactly like the reference implementations even for all the known weird cases.
X-SVN-Rev: 34935
2014-01-19 22:12:25 +00:00
Travis Keep
fa4c8fd936 ICU-10268 deprecate TimeUnitFormat. Add tests from TimeUnitFormat for MeasureFormat. Add test for doc examples. Fix list formatting for narrow form.
X-SVN-Rev: 34920
2014-01-17 01:20:13 +00:00
Yoshito Umaoka
ebb804aaeb ICU-10484 Fixed a bunch of API doc problems.
X-SVN-Rev: 34912
2014-01-16 17:38:13 +00:00
Yoshito Umaoka
97db2a2aa3 ICU-10484 Clean up import statements.
X-SVN-Rev: 34910
2014-01-16 16:05:50 +00:00
Yoshito Umaoka
e492bb6e02 ICU-10484 Fixed JDK javac compiler warnings.
X-SVN-Rev: 34909
2014-01-16 15:59:03 +00:00
Peter Edberg
d894ab3a4f ICU-10574 Add API (getter/setter) to set capitalization context for NumberFormat, J
X-SVN-Rev: 34899
2014-01-15 09:13:26 +00:00
Peter Edberg
d6eb092438 ICU-10591 Fix capitalizationSetting initialization & comment about serialization
X-SVN-Rev: 34898
2014-01-15 09:10:22 +00:00
Peter Edberg
fce9b6ba8c ICU-10553 Implement context-sensitive capitalization for relative dates (J)
X-SVN-Rev: 34896
2014-01-15 08:12:16 +00:00
Peter Edberg
f12f43b80e ICU-10591 Hoist set/GetContext from SimpleDateFormat to DateFormat (J)
X-SVN-Rev: 34895
2014-01-15 03:40:46 +00:00
Andy Heninger
a82255096c ICU-10592 ICU4J BreakIterator, hoist rule status constants to base BreakIterator class
X-SVN-Rev: 34890
2014-01-14 22:27:51 +00:00
Yoshito Umaoka
77c39a1091 ICU-10606 Corrected the copyright year.
X-SVN-Rev: 34889
2014-01-14 20:35:14 +00:00
Scott Russell
8a3afd3cb5 ICU-10619 Improve usability of DateFormat's leniency control & promote BooleanAttribute control to draft for v53
X-SVN-Rev: 34887
2014-01-14 14:13:48 +00:00
Yoshito Umaoka
c25116c2c8 ICU-10615 Updated the fix by adding an intenal API Calendar.haveDefaultCentury() like ICU4C, to exclude Chiense/Japanese/Dangi calendar to skip the default century parsing.
X-SVN-Rev: 34868
2014-01-10 21:45:57 +00:00
George Rhoten
a94152774c ICU-8699 Never print stack trace in production code
X-SVN-Rev: 34864
2014-01-10 19:52:56 +00:00
Travis Keep
b2f94a75a8 ICU-10268 MeasureFormat to format currencies correctly.
X-SVN-Rev: 34860
2014-01-10 18:53:53 +00:00
Travis Keep
1ebcd33989 ICU-10268 Serialize FormatWidth enums by their ordinal values.
X-SVN-Rev: 34858
2014-01-10 16:55:55 +00:00
Yoshito Umaoka
a50418ca17 ICU-10583 Fixed a minor problem in illegal lead bye handling in the UTF-8 charset recognizer.
X-SVN-Rev: 34857
2014-01-10 16:12:09 +00:00
Travis Keep
c06fef03ed ICU-10268 Mark Davis' review.
X-SVN-Rev: 34841
2014-01-08 21:07:37 +00:00
Yoshito Umaoka
e73ea7ab14 ICU-10390 Implemented Comparable interface in ULocale class.
X-SVN-Rev: 34840
2014-01-08 21:07:09 +00:00
Scott Russell
d72df4a157 ICU-10576 fix suboptimal if statement code in setBooleanAttribute
X-SVN-Rev: 34831
2014-01-06 21:23:13 +00:00
Yoshito Umaoka
b40d690f2a ICU-10615 A quick fix for 2-digit year parsing problem with Japanese calendar. Need more investigation.
X-SVN-Rev: 34830
2014-01-06 15:31:22 +00:00
Travis Keep
564948ef67 ICU-10268 Remove unused import.
X-SVN-Rev: 34803
2013-12-18 23:26:46 +00:00
Travis Keep
6f82c4b2d3 ICU-10606 Introduce DontCareFieldPosition.
X-SVN-Rev: 34799
2013-12-18 23:05:12 +00:00
Travis Keep
652d2952a2 ICU-10603 Add NUMERIC to MeasureFormat.FormatWidth.
X-SVN-Rev: 34797
2013-12-18 22:32:17 +00:00
Travis Keep
ef9fbd093c ICU-10268 Implement final comments from ICU meeting.
X-SVN-Rev: 34795
2013-12-18 21:55:57 +00:00
Travis Keep
905fd2dbc6 ICU-10268 Create private ImmutableNumberFormat wrapper so that developers don't have to remember to synchronize every use of NumberFormat.
X-SVN-Rev: 34794
2013-12-18 21:17:08 +00:00
Scott Russell
59dde192b7 ICU-10334 C vs. J differences when in lenient mode
X-SVN-Rev: 34791
2013-12-18 19:47:13 +00:00
Travis Keep
876d3ee9a9 ICU-10268 fix spelling and punctuation.
X-SVN-Rev: 34787
2013-12-17 23:20:58 +00:00
Travis Keep
e79533c9ad ICU-10268 Fix equals() / hashCode() according to effective JAVA in MeasureFormat. Take out synchronized blocks in CurrencyFormat as this class will remain thread unsafe.
X-SVN-Rev: 34786
2013-12-17 23:16:55 +00:00
Travis Keep
ddeb54ee63 ICU-10268 Make formatMeasures methods be together.
X-SVN-Rev: 34782
2013-12-17 01:23:49 +00:00
Travis Keep
3ef485dccf ICU-10268 Be sure that MeasureFormat and sub classes correctly implement clone() and getLocale(ULocale.VALID_LOCALE)
X-SVN-Rev: 34780
2013-12-17 01:09:02 +00:00
Travis Keep
a53682a55e ICU-10268 Fix serialization so that forward compatibility won't break when we add values to the FormatWidth enum.
X-SVN-Rev: 34775
2013-12-16 18:22:04 +00:00
Travis Keep
75d2b6eb2f ICU-10268 Incorporte Suggestions from Markus
X-SVN-Rev: 34766
2013-12-13 21:18:00 +00:00
Travis Keep
afa4315082 ICU-10268 Take Measurement API out of technology preview and have it match the current API proposal.
X-SVN-Rev: 34765
2013-12-13 18:26:18 +00:00
Travis Keep
3fa5329e97 ICU-8464 Update Java RelativeDateTimeFormatter with latest API proposal.
X-SVN-Rev: 34709
2013-12-04 21:19:34 +00:00
Yoshito Umaoka
132f872930 ICU-10566 Fixed HTML syntax problems in the API doc.
X-SVN-Rev: 34706
2013-12-03 20:02:45 +00:00
Andy Heninger
7c5ff0aad6 ICU-10532 Charset Detect of plain ASCII, boost UTF-8 likelyhood.
X-SVN-Rev: 34694
2013-11-26 01:26:58 +00:00
Travis Keep
2601495ccd ICU-8464 Fix so that calendar used in RelativeDateTimeFormatter is the default calendar for locale which may not be the gregorian calendar.
X-SVN-Rev: 34682
2013-11-21 23:30:27 +00:00
Travis Keep
b90cbad09c ICU-8464 Add Relative Date Formatting for JAVA.
X-SVN-Rev: 34663
2013-11-14 19:50:19 +00:00
Travis Keep
7db028c450 ICU-10542 Add more tests. Use Math.log10() instead of multiplying by 0.1 in a for loop.
X-SVN-Rev: 34656
2013-11-12 01:38:45 +00:00
Travis Keep
42dee8ca3b ICU-10542 Fix rounding for scientific notation.
X-SVN-Rev: 34654
2013-11-11 23:52:59 +00:00