Shane Carr
112d214d29
ICU-13246 Save a few cycles by performing util64_pow multiply only when needed.
...
X-SVN-Rev: 40285
2017-07-24 22:00:22 +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
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
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
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
9774441e40
ICU-8491 remove uprv_isRuleWhiteSpace(c)
...
X-SVN-Rev: 29900
2011-04-26 06:39:29 +00:00
Michael Ow
b7a7050b03
ICU-6132 Check buf for null in debgging code.
...
X-SVN-Rev: 23213
2008-01-11 22:38:26 +00:00
George Rhoten
02cec4d5ce
ICU-4559 Make the library contain less data.
...
X-SVN-Rev: 17905
2005-06-16 17:22:32 +00:00
George Rhoten
dc0129ceea
ICU-4330 HP-UX has a C++ name mangling bug when the namespace version
...
changed from 3.3 to 3.4. This runtime linker can work with this change.
X-SVN-Rev: 17888
2005-06-14 17:14:30 +00:00
George Rhoten
b9875c90b5
ICU-4092 Remove dead code
...
X-SVN-Rev: 17063
2004-12-31 18:54:55 +00:00
Andy Heninger
665e553354
ICU-4161 remove tabs from source code
...
X-SVN-Rev: 16829
2004-11-11 23:34:58 +00:00
George Rhoten
e69fca9d5f
ICU-4078 Fix for AIX with Visual Age 5 compiler, and make sure that the
...
disentanglement is correct by putting all the UnicodeSet virtual functions are
in one file. Also move some of the rule whitespace handling into better
locations.
X-SVN-Rev: 16519
2004-10-15 22:56:26 +00:00
George Rhoten
8c9aab5002
ICU-4078 Further separate the default converter from the rest of the API
...
X-SVN-Rev: 16331
2004-09-15 23:44:48 +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
2f7feeea3e
ICU-3236 Don't export some functions
...
X-SVN-Rev: 14331
2004-01-15 22:12:26 +00:00
Eric Mader
a7def2c37f
ICU-3473 Update copyright notices for ICU 2.8.
...
X-SVN-Rev: 14193
2003-12-19 21:29:27 +00:00
Vladimir Weinstein
7b3687a7e8
ICU-2974 don't use new char[x] inside library, but uprv_malloc
...
X-SVN-Rev: 12384
2003-06-09 21:22:08 +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
Doug Felt
f0566b427e
ICU-1997 uprv_isRuleWhiteSpace
...
X-SVN-Rev: 9527
2002-08-01 22:43:21 +00:00
George Rhoten
c85207afbd
ICU-1887 Try to fix the name mangling problems with the Intel compiler by including utypes.h before the system headers.
...
X-SVN-Rev: 9124
2002-07-12 21:42:24 +00:00
GCL Shanghai
2fab4a8cb7
ICU-1953 backout buffer overflow changes
...
X-SVN-Rev: 9070
2002-07-09 12:47:45 +00:00
GCL Shanghai
6348e12895
ICU-1953 test for buffer overflows
...
X-SVN-Rev: 9044
2002-07-06 10:58:51 +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
George Rhoten
faec7727ae
ICU-900 Fixed some compiler warnings.
...
X-SVN-Rev: 8545
2002-04-30 21:03:00 +00:00
George Rhoten
7777030a4f
ICU-1828 Remove tabs
...
X-SVN-Rev: 8331
2002-04-02 02:55:31 +00:00
George Rhoten
09a8685edb
ICU-1766 Workaround for HP/UX CC compiler bug.
...
X-SVN-Rev: 8089
2002-03-18 20:06:16 +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
Markus Scherer
8c78422db2
ICU-1561 replace all UTextOffset with int32_t
...
X-SVN-Rev: 7942
2002-03-12 01:32:42 +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
George Rhoten
859edb1416
ICU-1567 This should fix some of the AIX 4.3/Visual Age 5 preprocessor problems
...
X-SVN-Rev: 7187
2001-11-30 00:06:13 +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
dd0d73a61e
ICU-1298 fix stack overflow on solaris 64-bit
...
(also tweak debug code which was broken by earlier changes to llong.h)
X-SVN-Rev: 6429
2001-10-25 16:26:36 +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
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