Steven R. Loomis
89765009b4
ICU-13001 warning cleanup
...
- remove some dead code
- fix some warnings that show up when services, regex are turned off
- change some macros into inline functions to quell parenthesis complaints (ucnv_u16.cpp)
X-SVN-Rev: 40442
2017-09-21 19:43:28 +00:00
George Rhoten
994a671e4e
ICU-13306 Complete refactoring code based off of code review feedback.
...
X-SVN-Rev: 40360
2017-08-29 07:19:26 +00:00
George Rhoten
e3ac9c5561
ICU-13306 Can not get and set rounding attributes for RBNF with C API
...
X-SVN-Rev: 40343
2017-08-17 23:21:03 +00:00
George Rhoten
6b9bbb9d9d
ICU-13206 Don't write multiple expressions onto a single line.
...
X-SVN-Rev: 40135
2017-05-24 18:20:04 +00:00
Steven R. Loomis
a900fee035
ICU-12766 merge from trunk
...
X-SVN-Rev: 39714
2017-02-28 19:36:42 +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
Steven R. Loomis
c8ed8a6048
ICU-12766 z: library and tools build
...
X-SVN-Rev: 39665
2017-02-11 02:43:09 +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
George Rhoten
72280fb152
ICU-12713 Port fix for handling large magnitude numbers from ICU4J to ICU4C
...
X-SVN-Rev: 39560
2017-01-14 16:29:40 +00:00
Markus Scherer
3b23b78b95
ICU-12410 include what you use
...
X-SVN-Rev: 39553
2017-01-12 18:35:18 +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
Andy Heninger
8b03bbc037
ICU-12014 fix float-cast-overflow in rbnf.cpp
...
X-SVN-Rev: 38102
2015-12-02 22:31:56 +00:00
Michael Ow
fdd235d5e5
ICU-11917 Fix no data test errors in ICU4C 56
...
X-SVN-Rev: 37981
2015-09-22 04:02:11 +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
George Rhoten
e7b812f712
ICU-11564 Improve the thread safety of RBNF.
...
The recursion count is now a method argument instead of a data member.
Setting the DecimalFormatSymbols no longer reparses the rules, but it just sets a new version of DecimalFormatSymbols instead.
X-SVN-Rev: 37387
2015-04-23 16:13:46 +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
a3433c4d45
ICU-10977 remove stray #if DEBUG from a few more files
...
X-SVN-Rev: 35948
2014-06-25 21:59:55 +00:00
Michael Ow
3daf54af40
ICU-10740 Fix uconfig test errors
...
X-SVN-Rev: 35480
2014-03-15 06:08:42 +00:00
Peter Edberg
27cfaed4d8
ICU-10681 Lazily get and cache BreakIterator for titlecasing; lazily get contextTransform info if possible (C)
...
X-SVN-Rev: 35287
2014-03-02 00:44:35 +00:00
Markus Scherer
e977c057a9
ICU-9101 merge branches/markus/collv2@35225 into the trunk
...
X-SVN-Rev: 35227
2014-02-25 21:21:49 +00:00
Peter Edberg
9596efb7f4
ICU-10712 Integrate non-collation, non-BCP47 data from CLDR trunk@9766
...
X-SVN-Rev: 35208
2014-02-24 07:17:41 +00:00
Peter Edberg
401daae867
ICU-10633 Implement context-sensitive number formatting (currently just for RBNF)
...
X-SVN-Rev: 35095
2014-02-06 09:41:17 +00:00
Travis Keep
25c7ba8e57
ICU-10682 Fix clone, copy constructor, and assignment operator in RulesBasedNumberFormat.
...
X-SVN-Rev: 35085
2014-02-06 00:34:24 +00:00
George Rhoten
4397b041e3
ICU-10622 Fix warnings and errors when DEBUG is accidentally defined.
...
X-SVN-Rev: 35007
2014-01-28 04:25:46 +00:00
Andy Heninger
3b379f4c28
ICU-7468 Use C++ "using" in Format class hierarchy, so inheritance of format() and parse() functions works normally, without unwanted function hiding.
...
X-SVN-Rev: 33457
2013-03-21 22:09:06 +00:00
Jungshik Shin
4934b397a8
ICU-8343 fix build errors in Visual Studio when exception is disabled
...
X-SVN-Rev: 32010
2012-06-28 23:28:00 +00:00
Michael Ow
1dfe6c4c8b
ICU-8940 Ensure the new DecimalFormatSymbols is propagated properly in ICU4C RBNF
...
X-SVN-Rev: 31417
2012-02-17 23:09:57 +00:00
John Emmons
bae575e95a
ICU-7501 Use allowsParsing attribute from CLDR to detect unparseable RBNF rulesets
...
X-SVN-Rev: 31416
2012-02-17 23:01:16 +00:00
Michael Ow
1f311240e5
ICU-8940 Add new ICU4C API to set decimal format symbols in RBNF
...
X-SVN-Rev: 31265
2012-01-25 21:16:48 +00:00
Markus Scherer
2862296471
ICU-8454 virtual destructors should be explicit, and defined in a .cpp file, so that they can serve as key functions
...
X-SVN-Rev: 30423
2011-07-26 05:32:25 +00:00
Markus Scherer
2201fb816c
ICU-7877 optionally explicit UnicodeString constructors, and make them explicit inside ICU
...
X-SVN-Rev: 30293
2011-07-07 18:46:19 +00:00
Steven R. Loomis
b209c07620
ICU-8687 warnings fix (clang)
...
X-SVN-Rev: 30285
2011-07-06 20:05:38 +00:00
Peter Edberg
1d01381d47
ICU-8593 RuleBasedNumberFormat::format(double,...) should handle NAN
...
X-SVN-Rev: 30258
2011-06-30 05:43:56 +00:00
Markus Scherer
9774441e40
ICU-8491 remove uprv_isRuleWhiteSpace(c)
...
X-SVN-Rev: 29900
2011-04-26 06:39:29 +00:00
Peter Edberg
c8765bfe77
ICU-8077 Remove isLenient/setLenient from Format, etc. (revert #7725 )
...
X-SVN-Rev: 28916
2010-10-26 18:11:13 +00:00
Peter Edberg
1826002e52
ICU-7725 Hoist isLenient / setLenient to Format class (from DateFormat, RBNF)
...
X-SVN-Rev: 28170
2010-06-10 20:17:43 +00:00
Markus Scherer
f6a04770ff
ICU-7455 use compiler RTTI; stop adding poor mans RTTI to new class hierarchies
...
X-SVN-Rev: 28075
2010-05-19 17:29:33 +00:00
John Emmons
1fffd46beb
ICU-6896 Workaround to allow parsing of spellouts in Arabic, Hebrew, and Maltese
...
X-SVN-Rev: 25971
2009-05-01 20:30:31 +00:00
Yoshito Umaoka
d4534da6d3
ICU-6896 noParse initialization in all of RBNF constructors.
...
X-SVN-Rev: 25960
2009-04-30 18:29:33 +00:00
Yoshito Umaoka
1666ed935b
ICU-6896 Set noParse properly in RBNF clone.
...
X-SVN-Rev: 25959
2009-04-30 17:40:52 +00:00
Yoshito Umaoka
8cdf11287c
ICU-6896 Temporary workaround for RBNF crash problem for 4.2 release in ICU4C. Disabled RBNF spellout parse for some locales.
...
X-SVN-Rev: 25956
2009-04-30 07:24:02 +00:00
John Emmons
cc2bd1fb69
ICU-6817 Updated RBNF rules from CLDR
...
X-SVN-Rev: 25675
2009-03-30 15:00:49 +00:00
Peter Edberg
64f350c92a
ICU-6734 unum_parse does not report parse errors for rule-based number formatters
...
X-SVN-Rev: 25442
2009-02-19 08:41:08 +00:00
John Emmons
6070262c2f
ICU-6694 Implementation of numbering systems and the @numbers keyword
...
X-SVN-Rev: 25285
2009-01-22 04:46:35 +00:00
John Emmons
7d370d115d
ICU-6654 Integrate RBNF rules from CLDR
...
X-SVN-Rev: 25090
2008-12-12 01:04:38 +00:00
George Rhoten
928d6152bc
ICU-6176 Fix some Coverity warnings
...
X-SVN-Rev: 23414
2008-02-13 09:35:50 +00:00
Michael Ow
b32b3d69dc
ICU-6132 Add memory check for rbnf, rbt, and rbt_data.
...
X-SVN-Rev: 23230
2008-01-14 20:27:51 +00:00
George Rhoten
65924f6b3c
ICU-5161 Don't allow users to access uninitialized memory.
...
X-SVN-Rev: 19559
2006-04-17 17:01:52 +00:00