Commit Graph

25 Commits

Author SHA1 Message Date
George Rhoten
d06d12896c ICU-13529 Make some changes based on review feedback.
X-SVN-Rev: 40939
2018-02-16 18:07:32 +00:00
George Rhoten
4bac703558 ICU-13529 Parsing of redundant rule matches is slow when parsing with RuleBasedNumberFormat
X-SVN-Rev: 40913
2018-02-13 23:48:48 +00:00
Shane Carr
a5e7ffb0d9 ICU-13246 Changing util64_pow to work on uint64_t to fix signed integer overflow warning in Clang
X-SVN-Rev: 40174
2017-06-17 00:48:17 +00:00
Andy Heninger
04448b004f ICU-12764 UTF-8 source files, update file encoding comments.
X-SVN-Rev: 39641
2017-02-03 18:57:23 +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
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
George Rhoten
7fcc6e5165 ICU-8223 Fix a compiler issue from the last change.
X-SVN-Rev: 37811
2015-08-25 17:43:22 +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
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
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
George Rhoten
b9875c90b5 ICU-4092 Remove dead code
X-SVN-Rev: 17063
2004-12-31 18:54:55 +00:00
Eric Mader
abefef5844 ICU-3770 Updated copyright notices for ICU 3.0
X-SVN-Rev: 15411
2004-05-19 20:42:44 +00:00
Doug Felt
46f8a7fa55 ICU-2509 improve rbnf error handling
X-SVN-Rev: 14919
2004-04-09 19:58:58 +00:00
Markus Scherer
39711260d3 ICU-2244 change internal classes to inherit UMemory, not UObject
X-SVN-Rev: 9965
2002-10-04 17:46:52 +00:00
Markus Scherer
3d38617bdc ICU-2248 modularize icu, allow parts to not be built
X-SVN-Rev: 9900
2002-09-20 01:54:48 +00:00
Markus Scherer
11948b52df ICU-1962 change UObject: RTTI pure virtual, remove other boilerplate for now
X-SVN-Rev: 8977
2002-06-29 00:04:16 +00:00
Markus Scherer
5a81709c73 ICU-1962 derive all ICU C++ classes from common UObject base class
X-SVN-Rev: 8953
2002-06-27 01:19:20 +00:00
Doug Felt
f3acab9495 ICU-1766 Make RBNF in ICU4C use 64-bit ints
(still need to remove llong.h, llong.cpp and commented-out code)

X-SVN-Rev: 8008
2002-03-14 00:28:22 +00:00
George Rhoten
8b98d84982 ICU-1271 Remove static initialization, remove tabs, add copyright header, conform closer to ICU coding guidelines...
X-SVN-Rev: 6184
2001-10-11 16:56:24 +00:00
Doug Felt
7258dac736 ICU-1271 Port RuleBasedNumberFormat to ICU
X-SVN-Rev: 6172
2001-10-10 21:43:11 +00:00