Commit Graph

56 Commits

Author SHA1 Message Date
Shane Carr
33709da06a ICU-13606 Fixing race condition in MeasureFormat.
X-SVN-Rev: 41025
2018-03-01 00:58:47 +00:00
Shane Carr
4d10bf03f5 ICU-13520 Adds compound unit support to NumberFormatter.
X-SVN-Rev: 40747
2017-12-22 00:02:01 +00:00
Shane Carr
a5b3c2a9d6 ICU-13093 For AIX compatibility, replacing inline initializers with memset in MeasureFormatCacheData constructor.
X-SVN-Rev: 40559
2017-10-05 00:47:08 +00:00
Shane Carr
9fbda43d48 ICU-13380 Fixing memory overflow in MeasureFormat data loading.
X-SVN-Rev: 40516
2017-09-29 23:04:34 +00:00
Markus Scherer
4c2fad3e36 ICU-12410 class Edits, class CaseMap with new low-level functions that work with Edits, simpler case properties code, some cleanup
X-SVN-Rev: 39684
2017-02-17 21:03:35 +00:00
Markus Scherer
5da94f206a ICU-12410 move new code into new files, split ucasemap_imp.h from ustr_imp.h
X-SVN-Rev: 39655
2017-02-09 21:15:34 +00:00
Peter Edberg
e0f3d87e99 ICU-12948 First-pass preliminary integration of CLDR 31 @13174
X-SVN-Rev: 39601
2017-01-24 08:22:23 +00:00
Peter Edberg
7b33e586f5 ICU-12937 Withdraw MeasureUnit interfaces for coordinate units, and related data loading
X-SVN-Rev: 39599
2017-01-23 16:20:59 +00:00
Andy Heninger
242e02c388 ICU-12764 icu4c utf-8 source files, update Copyright notices.
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Peter Edberg
e6fdb36045 ICU-12738 ICU4C, update measurement unit constants & code
X-SVN-Rev: 39298
2016-09-20 21:15:22 +00:00
Shane Carr
5b9fc6fc70 ICU-12029 Measure unit display names, C++ version.
X-SVN-Rev: 39243
2016-09-15 08:37:56 +00:00
Shane Carr
a40cf4b3a0 ICU-12579 MeasureFormat data sink update, C++ version.
X-SVN-Rev: 38858
2016-06-17 19:16:15 +00:00
Michael Ow
61607c2773 ICU-12564 Update copyright notice in trunk
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126 ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f ICU-12564 Update copyright notice in ICU4C
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Markus Scherer
f292628ed7 ICU-12446 Resource sink size: move into new enter(size) method
X-SVN-Rev: 38606
2016-04-07 00:18:33 +00:00
Peter Edberg
d63bc540ec ICU-12133 (C) Change proportion-karat to concentr-karat, add 5 new units in CLDR 29
X-SVN-Rev: 38249
2016-02-02 00:38:16 +00:00
Markus Scherer
57f01a8756 ICU-10896 turn SimplePatternFormatter into public SimpleFormatter
X-SVN-Rev: 38195
2016-01-23 05:20:23 +00:00
Markus Scherer
9eb5fc1b11 ICU-12032 rewrite SimplePatternFormatter: quoting like MessageFormat, shorter, create fewer objects
X-SVN-Rev: 38155
2016-01-07 00:20:53 +00:00
Michael Ow
a9395a0af8 ICU-12030 Update destructor to delete all patterns
X-SVN-Rev: 38148
2015-12-31 21:12:07 +00:00
Markus Scherer
b24d71cf90 ICU-12041 check that per-unit patterns have one placeholder, fix patterns
X-SVN-Rev: 38139
2015-12-16 22:29:21 +00:00
Markus Scherer
758b66dbca ICU-12030 MeasureFormat handle by-plural-form sideways-aliasing, by not bundling plural forms into a QuantityFormatter, port from Java
X-SVN-Rev: 38136
2015-12-16 04:41:33 +00:00
Markus Scherer
5a7ff3049b ICU-11986 MeasureFormat unit display patterns need to fall back to the parent locales per plural form, not as a set; add MeasureFormatTest::TestIndividualPluralFallback(); fix RelativeDateTimeFormatterTest::TestSerbianFallback() test data
X-SVN-Rev: 38103
2015-12-02 22:54:54 +00:00
Markus Scherer
724f7b5c10 ICU-11986 const ResourceValue references, sink.leave(), some more specific types in MeasureFormat code
X-SVN-Rev: 38094
2015-11-19 22:33:25 +00:00
Markus Scherer
d5877ebe4e ICU-11986 use prefix Resource for C++ classes, prefix UResource for C types
X-SVN-Rev: 38087
2015-11-18 00:18:28 +00:00
Markus Scherer
7c7b8ee870 ICU-11986 more compact MeasureFormat data sink declaration+defition, add comments
X-SVN-Rev: 38084
2015-11-16 23:50:58 +00:00
Markus Scherer
2810d28dd7 ICU-11986 do not duplicate MeasureFormat data for sideways-fallback aliases
X-SVN-Rev: 38083
2015-11-14 00:31:21 +00:00
Markus Scherer
147ca53163 ICU-11986 enumerate most of the measurement unit formatting data, rather than lookup-with-fallback for each piece; adds necessary fallback on leaf level
X-SVN-Rev: 38082
2015-11-12 22:09:04 +00:00
Peter Edberg
b64eeb479d ICU-11628 C, update MeasureUnit interfaces and tests for new units in CLDR 27/28
X-SVN-Rev: 37626
2015-06-28 03:26:33 +00:00
John Emmons
eed4d9c2a1 ICU-11737 Units shouldn't fall back from short to wide
X-SVN-Rev: 37512
2015-06-09 19:07:53 +00:00
John Emmons
ad5308aa12 ICU-11417 CLDR 27 data integration for ICU55M1
X-SVN-Rev: 36850
2014-12-11 16:10:49 +00:00
Travis Keep
79964e6bc7 ICU-11303 Bring MeasureFormat per unit formatting out of tech preview.
X-SVN-Rev: 36813
2014-12-05 20:52:28 +00:00
Markus Scherer
9edbbecb24 ICU-11339 add & use LocalPointer(p, errorCode) and adoptInsteadAndCheckErrorCode(p, errorCode)
X-SVN-Rev: 36757
2014-11-20 00:27:17 +00:00
John Emmons
4d47dd3226 ICU-11092 Split out units data into a separate tree
X-SVN-Rev: 36458
2014-09-11 10:16:22 +00:00
Travis Keep
c794caf7d4 ICU-10999 Add per unit measure formatting.
X-SVN-Rev: 36441
2014-09-10 20:06:52 +00:00
Peter Edberg
1b8eb15e1a ICU-11173 CLDR tags/release-26-d01 into ICU4C trunk with related test & lib code updates
X-SVN-Rev: 36313
2014-09-02 23:18:20 +00:00
Steven R. Loomis
7594250cc5 ICU-7653 changed uprv_lengthof to UPRV_LENGTHOF, also added apidoc
X-SVN-Rev: 36275
2014-08-28 22:13:45 +00:00
Tom Zhang
ee1f29b584 ICU-7653 move LENGTHOF(array) to common, internal header
X-SVN-Rev: 36265
2014-08-28 14:55:34 +00:00
Travis Keep
f335b55bdf ICU-10802 Merge branch tkeep/10802andy into trunk.
X-SVN-Rev: 36214
2014-08-20 21:46:02 +00:00
Travis Keep
df067d53b2 ICU-10914 Fix uses of createSharedInstance calls.
X-SVN-Rev: 35748
2014-05-22 23:48:56 +00:00
Travis Keep
4b0e17ff66 ICU-10913 Fix broken build.
X-SVN-Rev: 35747
2014-05-22 23:21:32 +00:00
Markus Scherer
c1f540a2eb ICU-10640 remove obsolete TODO
X-SVN-Rev: 35435
2014-03-12 18:48:27 +00:00
Travis Keep
16401cda19 ICU-10640 Markus' review comments on formatting hh:mm:ss in MeasureFormat.
X-SVN-Rev: 35422
2014-03-12 00:12:32 +00:00
Travis Keep
83f8bc77b2 ICU-10640 Fix misspelled word in comments. Add TODO to revisit how we dtermine if two MeasureUnit references mean the same unit.
X-SVN-Rev: 35421
2014-03-11 23:33:52 +00:00
Travis Keep
4a4907c1eb ICU-10703 Deprecate timeUnitFormat.
X-SVN-Rev: 35419
2014-03-11 23:14:05 +00:00
Travis Keep
55daa14907 ICU-10640 Changes from Markus' review.
X-SVN-Rev: 35404
2014-03-11 17:40:23 +00:00
Travis Keep
7fb4b7bcf6 ICU-10640 Fix various bugs around duration formatting e.g 3:45:23
X-SVN-Rev: 35186
2014-02-20 22:41:13 +00:00
Travis Keep
fd530319e6 ICU-10640 In MeasureFormat, use adopted NumberFormat on last measure only; use integer numberformats on the rest.
X-SVN-Rev: 35146
2014-02-16 02:10:51 +00:00
Travis Keep
abbae79212 ICU-10640 Change MeasureFormat::adoptNumberFormat to adhere to ICU users' guide.
X-SVN-Rev: 35117
2014-02-10 22:55:18 +00:00
Travis Keep
8f7065db65 ICU-10640 Fix memory leak in adoptNumberFormat code.
X-SVN-Rev: 35116
2014-02-10 22:52:01 +00:00