Commit Graph

50 Commits

Author SHA1 Message Date
Jeff Genovy
0a3a7fb889 ICU-13287 Add explicit casts for conversions between long/int64 and double.
X-SVN-Rev: 40310
2017-08-03 20:44:45 +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
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
e1c9c699b9 ICU-11564 Delete a stale cast and comment.
X-SVN-Rev: 37388
2015-04-23 17:14: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
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
John Emmons
0ce13a1711 ICU-7635 Modify toString method to handle >>>
X-SVN-Rev: 30868
2011-10-26 02:16:23 +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
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
Andy Heninger
4e56218eb1 ICU-5193 Big decimal number formatting.
X-SVN-Rev: 27696
2010-02-26 02:29:00 +00:00
Doug Felt
fb2431bbdd ICU-6000 fix for RBNF in ICU4C
X-SVN-Rev: 22845
2007-10-24 00:38:03 +00:00
George Rhoten
a1834196b3 ICU-5410 Move nfsubs.h private subclasses to nfsubs.cpp to get more accurate PureCoverage result.
Also use standard ICU rtti by using UOBJECT_DEFINE_RTTI_IMPLEMENTATION.

X-SVN-Rev: 21828
2007-06-27 00:59:42 +00:00
George Rhoten
fa97b33258 ICU-5304 Add missing namespace declarations.
X-SVN-Rev: 20243
2006-09-04 16:36:46 +00:00
Doug Felt
208c96caca ICU-4288 undo accidental deletion of line
X-SVN-Rev: 18202
2005-07-11 22:48:52 +00:00
Doug Felt
2cae21f19f ICU-4288 fix compiler warnings (from george)
X-SVN-Rev: 18193
2005-07-11 20:36:49 +00:00
Doug Felt
9619133865 ICU-4630 test port of missing ICU4J changes for Hebrew to ICU4C
X-SVN-Rev: 18180
2005-07-09 02:13:00 +00:00
Doug Felt
ce736f9da4 ICU-4630 port missing ICU4J changes for Hebrew to ICU4C
X-SVN-Rev: 18171
2005-07-08 00:16:47 +00:00
Eric Mader
850e160d30 ICU-4302 changes from ICU 3.2 "no data" test.
X-SVN-Rev: 17065
2004-12-31 19:26:31 +00:00
George Rhoten
0f77f15f2d ICU-3500 Fix some compiler warnings
X-SVN-Rev: 15644
2004-05-31 03:08:28 +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
a6bda657f2 ICU-2509 improve rbnf error handling
X-SVN-Rev: 14959
2004-04-14 18:55:19 +00:00
Doug Felt
46f8a7fa55 ICU-2509 improve rbnf error handling
X-SVN-Rev: 14919
2004-04-09 19:58:58 +00:00
George Rhoten
da70b390bc ICU-3682 Fix EBCDIC issue
X-SVN-Rev: 14901
2004-04-07 22:02:53 +00:00
Alan Liu
06c4bd41f3 ICU-3667 prefer UErrorCode& to UErrorCode* in C++ API
X-SVN-Rev: 14785
2004-03-27 04:49:02 +00:00
George Rhoten
fee6977d9d ICU-1722 Use FALSE, not false.
X-SVN-Rev: 14761
2004-03-25 16:28:25 +00:00
Doug Felt
c37337d00c ICU-1722 rbnf can't handle small numbers
X-SVN-Rev: 14738
2004-03-24 00:40:49 +00:00
Doug Felt
562a37641a ICU-813 int64 formatting support
X-SVN-Rev: 13757
2003-11-19 04:42:44 +00:00
Doug Felt
fb473c85d1 ICU-2959 update copyright notices
X-SVN-Rev: 12221
2003-06-02 18:47:02 +00:00
Steven R. Loomis
66e4cdd72a ICU-2822 can't delete const objects
X-SVN-Rev: 11960
2003-05-16 00:37:43 +00:00
Doug Felt
192404d451 ICU-2822 fix clone of bad formatter, but ustdio shouldn't be trying to clone it anyway
X-SVN-Rev: 11941
2003-05-15 20:06:06 +00:00
GCL Shanghai
b89c229c6e ICU-1953 change comments style and check 0/NULL
X-SVN-Rev: 8993
2002-07-02 15:10:30 +00:00
GCL Shanghai
1e188eca35 ICU-1953 Test for NULL after each uprv_malloc() or new
X-SVN-Rev: 8980
2002-06-29 09:31:05 +00:00
George Rhoten
7777030a4f ICU-1828 Remove tabs
X-SVN-Rev: 8331
2002-04-02 02:55:31 +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
41ffc2ef36 ICU-1733 Integrate some of the easier (and non-redundent) changes from Lotus.
X-SVN-Rev: 7802
2002-02-28 01:42:40 +00:00
Doug Felt
a8e24bc334 ICU-104 added fixes for findFractionalRuleSetRule. Worked around
msvc 6 compiler bug, uint32_t >> 32 leaves value unchanged.  Minimal
rule sets with no rules but special rules failed.  Removed obsolete comment.

X-SVN-Rev: 7149
2001-11-28 23:31:53 +00:00
Doug Felt
f3ee2bd004 ICU-104 fix problems with RBNF clone. llong conversion to text now
outputs '0' rather than nothing.  Clone uses getRules() UnicodeString directly,
previously was extracting to (unterminated!) UChar*.  Dispose NULLs out
fields of deleted objects to prevent double delete.

X-SVN-Rev: 7109
2001-11-28 00:58:33 +00:00
Doug Felt
cd6ed9ad09 ICU-1295 fix lenient parse error for " fifty-7"
X-SVN-Rev: 6410
2001-10-24 00:47:46 +00:00
George Rhoten
e15e833b00 ICU-392 cleaning code for proper exports in libraries/urename.h generation
X-SVN-Rev: 6384
2001-10-23 00:38:12 +00:00
George Rhoten
eb10c7d510 ICU-900 Fixed some compiler warnings
X-SVN-Rev: 6211
2001-10-12 17:47:17 +00:00
George Rhoten
1aa7e6714d ICU-1271 Be more friendly to non-IEEE754 platforms and use the putil.h functions.
X-SVN-Rev: 6198
2001-10-11 21:41:11 +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