Commit Graph

1604 Commits

Author SHA1 Message Date
Andy Heninger
c8d863f1d4 ICU-11851 NumberFormat API doc cleanup.
X-SVN-Rev: 38159
2016-01-08 22:21:51 +00:00
Andy Heninger
3e1bf369df ICU-11669 DateIntervalFormat::format() thread safety fixes.
X-SVN-Rev: 38151
2016-01-06 00:09:25 +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
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
2810d28dd7 ICU-11986 do not duplicate MeasureFormat data for sideways-fallback aliases
X-SVN-Rev: 38083
2015-11-14 00:31:21 +00:00
Michael Ow
6857dbc99e ICU-11917 Add missing API tag
X-SVN-Rev: 38015
2015-09-23 20:58:51 +00:00
Peter Edberg
10053e8a55 ICU-11929 (C) Rename MeasureUnit methods createGeneric, createRevolution
X-SVN-Rev: 38009
2015-09-23 18:32:26 +00:00
Peter Edberg
87970fe888 ICU-11917 BRS, Update macros #ifndef U_HIDE_DRAFT/INTERNAL/DEPRECATED_API
X-SVN-Rev: 37976
2015-09-21 20:23:38 +00:00
Michael Ow
148ec9f9e5 ICU-11917 Promote 54 draft API to stable
X-SVN-Rev: 37969
2015-09-17 18:25:20 +00:00
Scott Russell
c179cf974c ICU-11572 API proposal updates for approved constants
X-SVN-Rev: 37961
2015-09-16 00:14:58 +00:00
Markus Scherer
69543d559e ICU-11016 add support for minimum grouping digits (technology preview, not using CLDR data yet)
X-SVN-Rev: 37946
2015-09-11 19:18:00 +00:00
Peter Edberg
5d1a2fa6bd ICU-11787 Add support for UNUM_CURRENCY_STANDARD and locale u-ext key -cf- (C)
X-SVN-Rev: 37935
2015-09-10 05:40:20 +00:00
Peter Edberg
49d4ab5ee6 ICU-11773 Withdraw COLON as pattern char, leave support for UDAT_TIME_SEPARATOR_FIELD (C)
X-SVN-Rev: 37898
2015-09-07 22:39:49 +00:00
Travis Keep
b7d18e518c ICU-11780 Reduce heap size for caching date formatters.
X-SVN-Rev: 37860
2015-09-01 20:13:27 +00:00
Travis Keep
2860cd48c4 ICU-11740 DecimalFormat refactor.
X-SVN-Rev: 37821
2015-08-25 23:31:01 +00:00
Andy Heninger
57ac300668 ICU-11480 added tests for regex with capture groups that do not participate in match.
X-SVN-Rev: 37816
2015-08-25 20:47:38 +00:00
George Rhoten
e097e1b9ee ICU-8223 Add rule syntax for NaN, infinity and alternate decimal points.
Other issues addressed:
* Some performance enhancements were added for good measure. Creating new RuleBasedNumberFormat objects can take a long time due to all the rule parsing. This was ported from ICU4J.
* I fixed a potential infinite recursion problem when RuleBasedNumberFormat used NumberFormat.createInstance, which could occasionally depend on creating RuleBasedNumberFormat for itself, which was bad. This was ported from ICU4J.
* I fixed a potential memory leak due to lazy initialization of some RBNF data members in a multithreaded environment, which is fine in Java, but it's not okay in C++. We no longer cast away const due to this, which is good.
* There were some compiler warnings and errors found while trying to debug this code on my machine. I fixed those too.

X-SVN-Rev: 37810
2015-08-25 16:55:52 +00:00
Travis Keep
03eab980da ICU-11779 Fix parameter names in documentation.
X-SVN-Rev: 37774
2015-08-13 22:46:04 +00:00
Travis Keep
6ed4b6178a ICU-11779 Introduce static versions of DTPNG getSkeleton and getBaseSkeleton
X-SVN-Rev: 37771
2015-08-13 22:09:13 +00:00
Steven R. Loomis
9edacf9fa9 ICU-11771 move FilteredBreakIterator from i18n to common
X-SVN-Rev: 37676
2015-07-16 21:02:06 +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
Peter Edberg
656838dbad ICU-11706 (and #11726) Improve documentation, code cleanup
X-SVN-Rev: 37616
2015-06-24 07:59:38 +00:00
Peter Edberg
a8325d335c ICU-11706 (and #11726) Fix DateIntervalFormat handling of (1) skeletons with seconds, (2) FieldPosition
X-SVN-Rev: 37613
2015-06-23 22:07:03 +00:00
Peter Edberg
15ee90b9a3 ICU-11693 C support for CompactDecimalFormat, via UNumberFormatStyle additions
X-SVN-Rev: 37612
2015-06-23 18:09:52 +00:00
Peter Edberg
4cdffbd453 ICU-11708 CompactDecimaFormat should override and implement several more format methods
X-SVN-Rev: 37611
2015-06-23 17:33:03 +00:00
Fredrik Roubert
1b083389a4 ICU-11734 Bugfix: RelativeDateTimeFormatter with U_HIDE_DRAFT_API.
RelativeDateTimeFormatter has a member of type
UDateRelativeDateTimeFormatterStyle, so this type must be declared even
when setting U_HIDE_DRAFT_API, but it must then have a dummy enum value,
for empty enum declarations are not valid.

X-SVN-Rev: 37520
2015-06-10 17:21:08 +00:00
Fredrik Roubert
0b407a667b ICU-11730 Bugfix: UNumberFormatAttributeValue with U_HIDE_INTERNAL_API.
DecimalFormat has a member of type UNumberFormatAttributeValue, so this
type must be declared even when setting U_HIDE_INTERNAL_API, but it must
then have a dummy enum value, for empty enum declarations are not valid.

X-SVN-Rev: 37519
2015-06-10 17:20:24 +00:00
Andy Heninger
6772f79425 ICU-11670 Fix incorrect API doc for class TimeZone.
X-SVN-Rev: 37439
2015-05-14 18:40:12 +00:00
Andy Heninger
85f3da6213 ICU-11638 Improve RegexMatcher::group() API docs.
X-SVN-Rev: 37327
2015-04-13 21:59:04 +00:00
Peter Edberg
7d74634fa5 ICU-11433 BRS, no U_HIDE conditionals around impl code or private fields; fix comment typos
X-SVN-Rev: 37234
2015-03-16 04:15:28 +00:00
Michael Ow
cdb730c5a9 ICU-11433 Add fix for header test
X-SVN-Rev: 37212
2015-03-11 17:57:36 +00:00
Peter Edberg
0ef535414e ICU-11433 ICU4C draft API promotion; update U_HIDE_xxx conditionals
X-SVN-Rev: 37197
2015-03-10 07:20:48 +00:00
Yoshito Umaoka
3195f25068 ICU-11358 Separate host time zone detection code from the default time zone initialization code and make it public API as TimeZone::detectHostTimeZone().
X-SVN-Rev: 37148
2015-03-05 06:34:51 +00:00
Peter Edberg
954236108c ICU-11400 Fix documentation of DateTimeFormat in setDateTimeFormat/udatpg_setDateTimeFormat
X-SVN-Rev: 37143
2015-03-05 05:36:25 +00:00
Andy Heninger
6ffe686192 ICU-10759 deprecate Plural Rules Functions w no implementation in ICU4C.
X-SVN-Rev: 37131
2015-03-04 20:21:41 +00:00
Peter Edberg
3076cb2149 ICU-11510 C: Support narrow AM/PM "aaaaa" for date format and parse
X-SVN-Rev: 37124
2015-03-04 05:43:28 +00:00
Peter Edberg
c77f9b24c8 ICU-10141 Add UErrorCode param to Region methods that return StringEnumeration*
X-SVN-Rev: 37123
2015-03-04 01:40:44 +00:00
Peter Edberg
50e67ce345 ICU-11553 Add C wrapper for FieldPositionIterator & 2 udat_formatX calls to use it
X-SVN-Rev: 37118
2015-03-04 00:11:53 +00:00
Peter Edberg
c56a20e796 ICU-11539 C: Delete Calendar fields TIME_SEPARATOR, RELATED_YEAR; adjust accordingly
X-SVN-Rev: 37091
2015-02-27 09:01:31 +00:00
Andy Heninger
d96fea9eb6 ICU-11123 promote RegexMatcher::find(UErrorCode &) to public API
X-SVN-Rev: 37073
2015-02-26 02:34:20 +00:00
Andy Heninger
74157ec338 ICU-11446 Spoof Checker data update: use MA table only.
X-SVN-Rev: 37071
2015-02-26 01:38:14 +00:00
Fredrik Roubert
71035aa827 ICU-11467 Promote time separator interfaces to public API.
R=markus.icu@gmail.com

Review URL: https://codereview.appspot.com/189460043

X-SVN-Rev: 37043
2015-02-19 12:02:43 +00:00
Andy Heninger
ec3f77f878 ICU-5312 Regular Expressions Named Capture.
X-SVN-Rev: 37040
2015-02-18 23:56:19 +00:00
Andy Heninger
22c8c94d14 ICU-11469 Regular Expressions, remove old tech preview functions.
X-SVN-Rev: 36953
2015-01-14 00:03:29 +00:00
Michael Ow
c7cd5c468b ICU-11452 Change reference to pointer to avoid null reference problems in SimpleDateFormat
X-SVN-Rev: 36942
2015-01-12 19:02:31 +00:00
Markus Scherer
a9d7c3e4bd ICU-11449 reorder single scripts not groups, scripts/groups can start on top-16-bit boundaries, data formatVersion 5 for new scripts data and optional reorderRanges appended to reorderCodes
X-SVN-Rev: 36924
2015-01-07 03:37:11 +00:00
Fredrik Roubert
60087d06a1 ICU-11018 Refactor date format string mapping code (ICU4C)
To make this code more maintainable: Make mapping tables zero based, add
a table to tell if a character can be used to define a field in a format
string (instead of now rather long-winded character range expressions)
and make all lookup tables accessed through helper functions.

R=rocketman@google.com

Review URL: https://codereview.appspot.com/190080043

X-SVN-Rev: 36899
2014-12-19 07:27:58 +00:00
Fredrik Roubert
17b8600e8e ICU-11018 Support CLDR time separator (ICU4C)
This change will treat the ':' character in patterns as a symbol
(instead of as a literal) and if the Locale defines timeSeparator then
use that character instead when formatting and accept both when parsing.

It will also define the '.' as an alternate time separator, that will be
accepted when parsing in lenient mode.

This is one character more strict than before, when in lenient mode also
the '-' was accepted as time separator instead of ':'.

R=rocketman@google.com

Review URL: https://codereview.appspot.com/180610043

X-SVN-Rev: 36897
2014-12-19 07:19:41 +00:00
Markus Scherer
b3897ebba9 ICU-11444 UMeasurementSystem UMS_UK born stable ICU 55
X-SVN-Rev: 36883
2014-12-17 21:51:53 +00:00
Peter Edberg
5239b60d43 ICU-11313 Update U_HIDE_ macros (and U_DEPRECATED tags) for 55.0.1 (m1)
X-SVN-Rev: 36868
2014-12-15 00:42:34 +00:00
Markus Scherer
68b3ed0c75 ICU-11357 add constant for UK measurement system
X-SVN-Rev: 36846
2014-12-10 21:32:48 +00:00
Travis Keep
6371975e05 ICU-10438 Document that C++ Duration RuleBasedNumberFormat always rounds down.
X-SVN-Rev: 36835
2014-12-09 23:53:19 +00:00
Travis Keep
59a03bbc9b ICU-11383 Remove ScientificFormatHelper C++
X-SVN-Rev: 36826
2014-12-08 23:25:27 +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
Travis Keep
3d248f9875 ICU-11401 Attempt to fix broken build.
X-SVN-Rev: 36812
2014-12-05 19:23:22 +00:00
Travis Keep
a6bc072149 ICU-11401 Reduce cache keyspace by caching only the components of DateFormat by locale rather than actual DateFormat objects.
X-SVN-Rev: 36811
2014-12-05 18:15:35 +00:00
Yoshito Umaoka
281d4de237 ICU-11293 Added udat_formatCalendar allowing C API user to specify a calendar as a parameter.
X-SVN-Rev: 36777
2014-11-25 04:34:58 +00:00
Steven R. Loomis
094d12cdca ICU-11389 revert r36758 - re-checkin under r11139 once working?
X-SVN-Rev: 36762
2014-11-20 01:28:18 +00:00
Steven R. Loomis
738cee69cc ICU-11389 improve error checking
X-SVN-Rev: 36758
2014-11-20 00:34:29 +00:00
Travis Keep
6a15548b08 ICU-10952 Introduce ScientificNumberFormatter.
X-SVN-Rev: 36746
2014-11-18 00:55:15 +00:00
Travis Keep
4860c7e5b7 ICU-11139 Add JAVA DateFormat factory methods to C++
X-SVN-Rev: 36745
2014-11-18 00:43:49 +00:00
Yoshito Umaoka
f4c185b9e7 ICU-11307 A minor document fix in Calendar's class doc.
X-SVN-Rev: 36618
2014-10-01 18:50:49 +00:00
Peter Edberg
6115fe24bb ICU-11055 Minor rewording that hopefully clarifies the usage of ucol_getFunctionalEquivalent
X-SVN-Rev: 36572
2014-09-23 22:11:37 +00:00
Peter Edberg
b26892cfe8 ICU-10817 For UNUM_SPELLOUT/ORDINAL, document that unum_setTextAttribute with UNUM_DEFAULT_RULESET can specify ruleset
X-SVN-Rev: 36571
2014-09-23 21:58:49 +00:00
Peter Edberg
61d8a038ad ICU-10814 Delete duplicated headerdoc comments in usearch.h
X-SVN-Rev: 36568
2014-09-23 21:33:53 +00:00
Peter Edberg
8713061249 ICU-10809 Fix typo
X-SVN-Rev: 36567
2014-09-23 21:29:31 +00:00
Peter Edberg
14cd5cb107 ICU-10809 Update SimpleDateFormat class doc examples for Sept and Tues, other table updates and note (C)
X-SVN-Rev: 36565
2014-09-23 21:26:25 +00:00
Peter Edberg
2beaf3dacf ICU-10992 BRS line 20, Check/fix non-stable API macros (U_HIDE_DRAFT_API and others)
X-SVN-Rev: 36520
2014-09-16 08:09:06 +00:00
Markus Scherer
908eb3d8d4 ICU-10999 mark formatMeasuresPer() as Technology preview
X-SVN-Rev: 36518
2014-09-16 06:11:35 +00:00
Steven R. Loomis
58f8e44c7d ICU-10981 round of uconfig.h fixes
X-SVN-Rev: 36491
2014-09-13 00:53:06 +00:00
Andy Heninger
84d1d936ab ICU-11032 Incorporate review comments, use isAcceptable call-back with udata_open
X-SVN-Rev: 36466
2014-09-11 18:28:05 +00:00
Yoshito Umaoka
02939804a5 ICU-11240 ICU4C 54 API status promotion.
X-SVN-Rev: 36454
2014-09-11 06:16:13 +00:00
Travis Keep
c794caf7d4 ICU-10999 Add per unit measure formatting.
X-SVN-Rev: 36441
2014-09-10 20:06:52 +00:00
Markus Scherer
8c4f2b0036 ICU-7118 document that compare() is often more efficient than getSortKey()
X-SVN-Rev: 36414
2014-09-09 22:05:13 +00:00
Yoshito Umaoka
6b334674c9 ICU-11029 Added some note about methods not yet implemented. Also updated these method to do nothing but returns DONE.
X-SVN-Rev: 36410
2014-09-09 21:39:33 +00:00
Peter Edberg
e46b2b3c83 ICU-9385 DateFormatSymbols/udat getters/setters for yearNames, zodiacNames (C)
X-SVN-Rev: 36386
2014-09-08 04:52:23 +00:00
Steven R. Loomis
51d9432671 ICU-11073 Fix the earlier fix for global new[].
Had to move "new UnicodeString[]" into a function ala ICU-2974 to prevent global new[] from being called.
Also, some general cleanup.

X-SVN-Rev: 36371
2014-09-06 00:16:54 +00:00
Peter Edberg
7732bb2599 ICU-10968 Handle fussy comma-at-end-of-enum-list restrictions in some compilers
X-SVN-Rev: 36354
2014-09-05 06:17:40 +00:00
Peter Edberg
46ad07cddf ICU-10968 Add #ifndef U_HIDE_DRAFT_API for the new enum values
X-SVN-Rev: 36353
2014-09-05 05:26:55 +00:00
Peter Edberg
153bf506f0 ICU-10968 Add UDISPCTX_TYPE_DISPLAY_LENGTH and values for it, implement support (C)
X-SVN-Rev: 36352
2014-09-05 04:54:53 +00:00
Andy Heninger
f626431e29 ICU-11233 Remove U_FINAL for classes we subclass. Produces bad code.
X-SVN-Rev: 36346
2014-09-04 18:58:17 +00:00
Travis Keep
18c1134a6d ICU-11221 Add comments to MeasureUnit generated code pointing to documentation on how to update.
X-SVN-Rev: 36344
2014-09-04 17:42:00 +00:00
Travis Keep
48ba0efa1e ICU-11221 Add new MeasureUnits to ICU.
X-SVN-Rev: 36335
2014-09-03 21:08:45 +00:00
Andy Heninger
3dd19f8a5b ICU-10815 Regex error handling, minor cleanups.
X-SVN-Rev: 36306
2014-09-02 21:39:18 +00:00
Scott Russell
867e55f0cb ICU-10970 Support required decimal point
X-SVN-Rev: 36300
2014-08-30 21:53:10 +00:00
Andy Heninger
f2dfa7422e ICU-10815 Fix for uregex_findNext() not setting U_REGEX_STOPPED_BY_CALLER
X-SVN-Rev: 36260
2014-08-28 01:19:29 +00:00
Scott Russell
ecd2a3a355 ICU-10962 Conflicting descriptions of 'S' in calendar patterns
X-SVN-Rev: 36235
2014-08-26 03:57:45 +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
George Rhoten
e79ae82c7d ICU-11064 The approved ICU syntax has )$ being the end of the plural rule substitution.
X-SVN-Rev: 36208
2014-08-20 18:52:57 +00:00
George Rhoten
912521e5cf ICU-11064 Fix a roundtripping problem when the fractional part is non-zero.
X-SVN-Rev: 36203
2014-08-19 17:13:07 +00:00
George Rhoten
eda8266715 ICU-11064 Add syntax for PluralFormat in RBNF
X-SVN-Rev: 36197
2014-08-18 20:47:36 +00:00
Steven R. Loomis
e3dc3bc456 ICU-10347 add U_FINAL and U_OVERRIDE for C++11 "final" and "override".
Added them to several "not for subclassing" classes.
Some exceptions:
* Commented out U_FINAL where there's an internal override needed.
* For tests, added "#define U_FINAL" at the top to disable this.
#defined to null for Doxygen.

X-SVN-Rev: 36177
2014-08-16 01:30:43 +00:00
Markus Scherer
bfb928d8dd ICU-11010 improve ucol_mergeSortkeys() API doc
X-SVN-Rev: 36166
2014-08-14 20:35:54 +00:00
Tom Zhang
26063a3454 ICU-10320 API for getting/setting number format override in date formatting
X-SVN-Rev: 36097
2014-07-29 18:42:07 +00:00
Yoshito Umaoka
ae3f6f13a4 ICU-10934 The tz database abbreviation support in ICU4C
X-SVN-Rev: 36080
2014-07-23 21:51:09 +00:00
Andy Heninger
ec0b491358 ICU-11007 Calendar::fZone, add comment clarifying that it cannot be NULL.
X-SVN-Rev: 36048
2014-07-16 22:29:20 +00:00
Tom Zhang
8787394bd1 ICU-10979 add udat_adoptNumberFormat & update doc
X-SVN-Rev: 36035
2014-07-15 20:39:51 +00:00
Markus Scherer
37c7676f5e ICU-10912 create Collator from binary: support length<0 again, and document that the base collator is required (see ticket #10517)
X-SVN-Rev: 36021
2014-07-10 22:17:20 +00:00
Steven R. Loomis
68b3eed7cb ICU-10990 remove STL deps from FilteredBreakIterator implementation
X-SVN-Rev: 36008
2014-07-08 00:30:21 +00:00
Michael Ow
b1de9c0f30 ICU-10842 Fix header test failures, fix no data test errors, and update file properties
X-SVN-Rev: 35982
2014-07-02 05:09:05 +00:00