Commit Graph

224 Commits

Author SHA1 Message Date
Steven R. Loomis
dc44c2bdd9 ICU-9258 fix int64 format of U_INT64_MIN; // -9223372036854775808L
X-SVN-Rev: 31888
2012-05-30 18:21:49 +00:00
Steven R. Loomis
43b918a0c8 ICU-9258 merge from branches, performance improvements
X-SVN-Rev: 31881
2012-05-30 00:41:57 +00:00
Peter Edberg
22eb317bb2 ICU-8697 C review fixes #2: less convoluted code
X-SVN-Rev: 31510
2012-02-24 22:54:57 +00:00
Peter Edberg
faced7a2f0 ICU-8697 C review fixes: correct UnicodeString constructor, use LocalPointer, use ParsePosition.getIndex() to test errs
X-SVN-Rev: 31509
2012-02-24 20:27:21 +00:00
Peter Edberg
05b2ae1381 ICU-8697 C, change parseCurrency methods to return CurrencyAmount*, make draft ICU 49
X-SVN-Rev: 31440
2012-02-19 06:45:47 +00:00
Yoshito Umaoka
535e2f80d5 ICU-9109 Fixed missing digit issue with DecimalFormat in lenient mode.
X-SVN-Rev: 31391
2012-02-14 07:05:58 +00:00
Michael Ow
52af04fed7 ICU-7464 Apply fix to incorrect number rounding when rounding increment is in the string pattern of the decimal formatter in ICU4C
X-SVN-Rev: 31378
2012-02-13 19:23:47 +00:00
Andy Heninger
6bb13512c1 ICU-9021 Thread safety fixes to DigitList::getDouble().
X-SVN-Rev: 31159
2011-12-20 01:48:45 +00:00
Markus Scherer
867084e6bb ICU-8801 comment out unused method parameter, avoid warning
X-SVN-Rev: 31102
2011-12-12 23:29:51 +00:00
Steven R. Loomis
22bfb7668a ICU-8801 fix for performance regression of parse (mostly malloc/free)
X-SVN-Rev: 30628
2011-09-07 14:30:32 +00:00
Michael Ow
8ccd432155 ICU-8718 Fix some memory leak issues in numbering systems
X-SVN-Rev: 30592
2011-08-30 03:22:38 +00:00
John Emmons
bda69e7101 ICU-8611 Make ICU look at patterns by numbering system
X-SVN-Rev: 30574
2011-08-24 18:06:46 +00:00
Markus Scherer
e31ce99b84 ICU-8575 option for not including utf headers by default; replace uses of deprecated utf_old.h macros
X-SVN-Rev: 30430
2011-07-27 05:53:56 +00:00
Peter Edberg
f5ccf251ef ICU-8583 Only parse arbitrary currency for calls that can return the found currency (e.g. parseCurrency)
X-SVN-Rev: 30313
2011-07-12 03:22:59 +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
Markus Scherer
9f7d74001c ICU-8605 document & test ICU4C dependencies, remove cycles, reduce some deps; merged from branches/markus/depstest -r 30155:30193
X-SVN-Rev: 30194
2011-06-03 05:23:57 +00:00
Peter Edberg
332037ef5b ICU-6109 & #4942,#3579: Merge changes for lenient number & date parsing from branches/eric/lenient_number_parsing (manually!)
X-SVN-Rev: 30018
2011-05-04 12:23:42 +00:00
Andy Heninger
0852cc4e73 ICU-7572 Decimal Format UNUM_ROUND_UNNECESSARY implmenentation.
X-SVN-Rev: 29959
2011-05-02 19:15:03 +00:00
Markus Scherer
70ad6b4a74 ICU-7386 merge NumberFormat::EStyles into UNumberFormatStyles & improve NumberFormat::makeInstance() memory management
X-SVN-Rev: 29920
2011-04-29 00:00:47 +00:00
Markus Scherer
9774441e40 ICU-8491 remove uprv_isRuleWhiteSpace(c)
X-SVN-Rev: 29900
2011-04-26 06:39:29 +00:00
John Emmons
40f80afaaa ICU-8424 Merge current CLDR trunk to 4.8M1 as CLDR 1.9.9
X-SVN-Rev: 29637
2011-03-12 14:57:18 +00:00
Eric Mader
206c946267 ICU-8407 Use a case-insensitive compare when matching the exponent symbol.
X-SVN-Rev: 29551
2011-03-07 20:02:28 +00:00
Dragan Besevic
21685ff673 ICU-8364 Check the return code when creating hashtable and return null in the case of failure
X-SVN-Rev: 29502
2011-03-01 20:55:43 +00:00
Michael Ow
da1272de57 ICU-7447 Fix some GCC and VA compiler warnings.
X-SVN-Rev: 28778
2010-10-08 20:14:26 +00:00
John Emmons
1974269a6f ICU-7724 Merge support for non-contiguous numbering systems
X-SVN-Rev: 28466
2010-08-13 21:23:00 +00:00
Steven R. Loomis
592b73e980 ICU-7502 fix ASCIIsms - merge from branch /branches/srl/ascii7502
X-SVN-Rev: 28382
2010-07-28 16:08:12 +00:00
Jason Spieth
6f718f78eb ICU-7654 Merge branch into trunk.
X-SVN-Rev: 28282
2010-07-06 16:35:34 +00:00
John Emmons
bd2a89a232 ICU-7599 Add support for alternate symbols per numbering system
X-SVN-Rev: 28134
2010-06-04 18:29:02 +00:00
Michael Grady
fa477f8a22 ICU-7667 In DecimalFormat::_format, deal with cases where two forms of rounding are specified - number of digits _and_ a rounding increment
X-SVN-Rev: 28132
2010-06-04 05:42:19 +00:00
Markus Scherer
fd376b34c0 ICU-7496 add internal char * string class for C++ implementation code
X-SVN-Rev: 28082
2010-05-20 21:16:44 +00:00
Andy Heninger
4e56218eb1 ICU-5193 Big decimal number formatting.
X-SVN-Rev: 27696
2010-02-26 02:29:00 +00:00
Markus Scherer
81234fecdb ICU-7273 add loading of custom data, with caching, test data and test code
X-SVN-Rev: 27578
2010-02-16 23:43:22 +00:00
Doug Felt
bd8eb26d17 ICU-7391 changed ref to pointer in APIs taking FieldPositionIterator, cleaned whitespace
X-SVN-Rev: 27433
2010-01-28 19:39:24 +00:00
Peter Edberg
f0c9ad0b41 ICU-7295 subparse hangs with fGroupingUsed TRUE but 0-length grouping separator
X-SVN-Rev: 27415
2010-01-26 08:51:23 +00:00
Peter Edberg
ccfd885876 ICU-7322 Get rid of friend declaration for internal plain-C comparotor functions
X-SVN-Rev: 27304
2010-01-16 19:59:59 +00:00
Andy Heninger
a31448aab8 ICU-5193 API additions for big decimal formatting. Implementation not there yet.
X-SVN-Rev: 27287
2010-01-15 22:28:39 +00:00
Doug Felt
52c23e0a47 ICU-6192 add support for getting field positions to NumberFormat and DateFormat
X-SVN-Rev: 27093
2009-12-17 22:15:20 +00:00
Peter Edberg
0c1c7aad2b ICU-7280 Move U_CDECL_END down to include function definitions as well as declarations.
X-SVN-Rev: 27064
2009-12-14 05:57:34 +00:00
Steven R. Loomis
712b165172 ICU-6930 IBM i updates: Merging r26624 through r26636 of /icu/branches/srl/i6930
X-SVN-Rev: 26637
2009-09-16 01:08:54 +00:00
Michael Ow
ddc3287efd ICU-4954 Use skipRuleWhiteSpace after white space check.
X-SVN-Rev: 26610
2009-09-08 16:42:54 +00:00
Xiaomei Ji
9e2a008374 ICU-6799 fix C++ compilation error due to hash value comparator in decimfmt.h and dtitvinf.h. remove static qualifier. since they are marked as internal, they wont be exposed
X-SVN-Rev: 25812
2009-04-17 18:52:52 +00:00
Steven R. Loomis
9eb9dd4c83 ICU-6799 fix many warnings, improve tests
X-SVN-Rev: 25772
2009-04-15 01:57:02 +00:00
Xiaomei Ji
1f2dcc4fb2 ICU-6433 currency parsing, case sensitive against symbol and ISO, case insensitive against name; parse against plural pattern using names only
X-SVN-Rev: 25540
2009-03-10 20:53:27 +00:00
Xiaomei Ji
6ed81b63d3 ICU-6433 improve currency parsing, fix parsing bug on non-empty suffix, fix plural format bug on non-empty negagtive numberpattern
X-SVN-Rev: 25497
2009-02-28 02:07:55 +00:00
Xiaomei Ji
45071a142b ICU-6433 from branch to trunk for API slush
X-SVN-Rev: 25399
2009-02-12 22:55:29 +00:00
Jason Spieth
de7d1f06de ICU-6354 Set default rounding increment, C implementation
X-SVN-Rev: 25241
2009-01-13 16:58:35 +00:00
Steven R. Loomis
6b25b2f485 ICU-6367 whitespace again. If UWhiteSpace is skipped in the input text, skip it also in the pattern.
X-SVN-Rev: 24247
2008-06-20 00:43:45 +00:00
George Rhoten
de6512a9c1 ICU-6132 Undo some unneccessary changes. Remove some tabs. Make sure that the UErrorCode is propagated when possible. When a UErrorCode is available, don't check for a NULL return value.
X-SVN-Rev: 23479
2008-02-23 19:15:18 +00:00
Andrew J Macheret
7a0b18985e ICU-5491 fixed a problem with negative multipliers, added tests for it
X-SVN-Rev: 23351
2008-02-05 04:25:48 +00:00
Andrew J Macheret
6c2161e7bd ICU-5491 put back functionality for negative multipliers, fixed up some code to handle them correctly, and added tests.
X-SVN-Rev: 23228
2008-01-14 20:10:54 +00:00
Michael Ow
853d42f9a4 ICU-6132 Add check for dereferencing of internal null pointers fSymbols and fRoundingIncrement.
X-SVN-Rev: 23204
2008-01-11 18:44:41 +00:00
George Rhoten
3ea75f4cae ICU-5545 Synchronize DecimalFormat::setMultiplier with ICU4J.
X-SVN-Rev: 22023
2007-07-17 22:39:44 +00:00
George Rhoten
dbb58ee5cb ICU-5581 Fix formatting crash after setting a prefix or suffix of a currency format.
X-SVN-Rev: 22019
2007-07-17 21:46:59 +00:00
Deborah Goldsmith
5369d809be ICU-5350 Fix decimal rounding
X-SVN-Rev: 21647
2007-06-06 01:17:15 +00:00
George Rhoten
4706047498 ICU-5101 Test and prevent code from crashing when prefix and suffix are changed on a currency format. The prefix and suffix are still not settable when a currency is used, and the applyPattern must still be used when using currency formats.
X-SVN-Rev: 21145
2007-03-02 00:28:09 +00:00
George Rhoten
a5762bea29 ICU-5032 Remove untestable code. symbolsToAdopt can't be NULL, and the else branch does the same thing.
X-SVN-Rev: 20002
2006-08-08 21:39:04 +00:00
George Rhoten
9c874f2cc1 ICU-5257 Give the correct parse position when parsing currency numbers.
X-SVN-Rev: 19817
2006-07-10 23:40:17 +00:00
Deborah Goldsmith
de8c6c14f3 ICU-4985 currency rounding/fractions no longer ignored
X-SVN-Rev: 19604
2006-05-03 00:00:34 +00:00
Ram Viswanadha
0bdf064c1d ICU-3832 Add support for monetary grouping separator
X-SVN-Rev: 18960
2006-01-09 23:03:31 +00:00
Eric Mader
41ca4f63ee ICU-4428 update copyright notices for ICU 3.3.
X-SVN-Rev: 17296
2005-03-08 22:49:59 +00:00
George Rhoten
563181b765 ICU-739 Make it easier to build ICU on Windows where WIN32 is defined, but WIN32 is not the target.
X-SVN-Rev: 17209
2005-02-17 00:10:29 +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
9fe39e1c8c ICU-3805 Break putil.h/utypes.h header file dependancy loop
X-SVN-Rev: 16529
2004-10-18 02:43:33 +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
95873dd022 ICU-4084 Improve DateFormat construction performance.
X-SVN-Rev: 16247
2004-09-02 19:08:28 +00:00
Alan Liu
b2697fc485 ICU-3399 restore setCurrency variant with no UErrorCode
X-SVN-Rev: 15595
2004-05-27 22:03:26 +00:00
George Rhoten
bdd46debb0 ICU-3718 Fix a memory initialization error
X-SVN-Rev: 15439
2004-05-20 21:14:06 +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
Alan Liu
6ce395572d ICU-3500 fix compiler warnings
X-SVN-Rev: 15096
2004-04-29 18:54:22 +00:00
Alan Liu
72b466d350 ICU-2334 fix logic for decimal presence & sig digits
X-SVN-Rev: 15093
2004-04-29 05:57:38 +00:00
Alan Liu
1db13e2b86 ICU-2825 add Measure, MeasureUnit, CurrencyUnit, and CurrencyAmount classes, and operate through them
X-SVN-Rev: 15059
2004-04-27 21:47:09 +00:00
Alan Liu
461f739085 ICU-2825 first implementation of MeasureFormat
X-SVN-Rev: 15015
2004-04-21 18:05:06 +00:00
Alan Liu
9cca22e331 ICU-2825 add support for formatting and parsing currency amounts
X-SVN-Rev: 14978
2004-04-15 06:20:42 +00:00
Alan Liu
e1b4d36b9f ICU-2334 rename some API
X-SVN-Rev: 14941
2004-04-12 23:37:44 +00:00
Alan Liu
8cc0c7011e ICU-2334 add public set/isSignificantDigits API; add min/max/useSignificantDigits fields
X-SVN-Rev: 14849
2004-04-03 17:56:14 +00:00
Alan Liu
1950e4123f ICU-3668 make getRoundingMode const
X-SVN-Rev: 14810
2004-03-31 22:09:40 +00:00
Alan Liu
689390169c ICU-3668 make getters const
X-SVN-Rev: 14798
2004-03-29 23:23:04 +00:00
Alan Liu
2dae948bb0 ICU-2334 implement significant digits
X-SVN-Rev: 14762
2004-03-25 17:42:28 +00:00
Alan Liu
d0393ac474 ICU-3089 disallow unquoted specials in suffix
X-SVN-Rev: 14555
2004-02-20 19:38:59 +00:00
Alan Liu
f5a3aee7f2 ICU-3399 add UErrorCode to setCurrency; cleanup
X-SVN-Rev: 14509
2004-02-13 01:53:12 +00:00
Alan Liu
357b3fd941 ICU-2823 update docs for pad characters
X-SVN-Rev: 14480
2004-02-11 00:00:18 +00:00
Doug Felt
a0bcf427af ICU-3222 fix compiler warnings
X-SVN-Rev: 13930
2003-12-02 01:55:53 +00:00
Vladimir Weinstein
09d453333b ICU-3382 change ucurr_forLocale to take a fill in parameter
X-SVN-Rev: 13719
2003-11-13 23:24:45 +00:00
Steven R. Loomis
bdb879222e ICU-3357 define U_INT64_MIN, U_INT64_MAX, and U_UINT64_MAX
X-SVN-Rev: 13577
2003-11-05 01:49:45 +00:00
Doug Felt
e5a79dc60c ICU-813 int64 formatting support
X-SVN-Rev: 13547
2003-10-31 22:47:25 +00:00
Doug Felt
3f812b4d59 ICU-2552 number of zeros
X-SVN-Rev: 13520
2003-10-29 00:20:05 +00:00
George Rhoten
492d57ac79 ICU-3221 Fix AIX linker warnings
X-SVN-Rev: 12997
2003-08-31 20:53:46 +00:00
George Rhoten
7a2de521f8 ICU-2256 Performance enhancement.
Make ustdio %e start up faster, especially since it's not using currency data.

X-SVN-Rev: 12782
2003-08-07 19:01:31 +00:00
George Rhoten
70cf40862e ICU-2256 Performance enhancement.
Make ustdio %e start up faster, especially since it's not using currency data.

X-SVN-Rev: 12622
2003-07-12 00:23:05 +00:00
George Rhoten
c320d27f7e ICU-2699 Fix some compiler warnings.
X-SVN-Rev: 12479
2003-06-11 23:02:19 +00:00
George Rhoten
cbfd3c445e ICU-2699 Fix some compiler warnings.
X-SVN-Rev: 12445
2003-06-11 01:31:09 +00:00
Steven R. Loomis
ad141400ac ICU-2840 don't crash w/o data
X-SVN-Rev: 12307
2003-06-05 00:00:07 +00:00
Alan Liu
de95737116 ICU-2959 update copyright dates to include 2003
X-SVN-Rev: 12253
2003-06-03 20:58:22 +00:00
Alan Liu
c6c5b18a6d ICU-2889 fix adoptDecimalFormatSymbols
X-SVN-Rev: 12111
2003-05-26 20:21:40 +00:00
Alan Liu
9cd19fa781 ICU-2892 don't run past end
X-SVN-Rev: 12006
2003-05-19 21:06:22 +00:00
Alan Liu
23a8673212 ICU-2892 do literal whitespace match before parsing runs
X-SVN-Rev: 12004
2003-05-19 20:04:57 +00:00
Alan Liu
4131ad8564 ICU-2824 move set/getCurrency from DecimalFormat to NumberFormat
X-SVN-Rev: 11681
2003-04-24 22:58:04 +00:00
Alan Liu
2a361f522d ICU-2119 add format and parse of complex currency formats (ChoiceFormat-based); make fPad a UChar32 (was UnicodeString); fix surrogate handling in sev. spots
X-SVN-Rev: 11614
2003-04-21 22:48:16 +00:00
Alan Liu
4a553638ef ICU-2119 rewrite parsing of padding to work property; redo and fix parsing of surrogates and variable-length elements
X-SVN-Rev: 11609
2003-04-21 19:18:27 +00:00