Commit Graph

217 Commits

Author SHA1 Message Date
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
George Rhoten
ce8e689663 ICU-1839 Use const UnicodeString & and not just UnicodeString.
X-SVN-Rev: 11547
2003-04-15 15:58:20 +00:00
Alan Liu
1bba328280 ICU-2119 modify code to use Currencies instead of CurrencyElements; support multiple Currencies names and recognize ChoiceFormat patterns
X-SVN-Rev: 11519
2003-04-11 20:02:25 +00:00
Alan Liu
403e3c64a2 ICU-2154 standardize whitespace handling by date/number format
X-SVN-Rev: 11460
2003-04-04 20:55:10 +00:00
Alan Liu
3c23b5eaf7 ICU-2504 fix typo in spelling, U_MULTIPLE_DECIMAL_SEPERATORS => U_MULTIPLE_DECIMAL_SEPARATORS (old spelling still defined for compatibility)
X-SVN-Rev: 10615
2002-12-11 22:28:34 +00:00
Alan Liu
9d30c08f22 ICU-2370 fix format() docs regarding appending to result string; also misc other doc and parameter name fixes
X-SVN-Rev: 10364
2002-11-23 01:11:50 +00:00
Markus Scherer
d8cd28cf02 ICU-2296 optimize use of UnicodeString, copy string objects less often
X-SVN-Rev: 10029
2002-10-12 01:09:00 +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
George Rhoten
117aefb136 ICU-1097 Remove some tabs
X-SVN-Rev: 9784
2002-08-23 17:54:40 +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
Alan Liu
29f886f412 ICU-1097 move currency.* to ucurr.* and change ISO code parameters from char* to UChar*
X-SVN-Rev: 9049
2002-07-08 17:57:10 +00:00
GCL Shanghai
6348e12895 ICU-1953 test for buffer overflows
X-SVN-Rev: 9044
2002-07-06 10:58:51 +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
Alan Liu
6006bee039 ICU-1097 move currency meta data into root bundle; change API to C
X-SVN-Rev: 8632
2002-05-15 18:51:39 +00:00
George Rhoten
9a62e43e02 ICU-1097 Fix for Solaris
X-SVN-Rev: 8629
2002-05-15 16:42:37 +00:00
Alan Liu
d5c7b20828 ICU-1097 use a char* for the currency code
X-SVN-Rev: 8625
2002-05-14 23:24:58 +00:00
Alan Liu
2327cfe7d8 ICU-1097 initial C++ implementation
X-SVN-Rev: 8598
2002-05-13 19:33:05 +00:00
George Rhoten
e6af09d1e9 ICU-1739 Fix uninitialized variable fExponentSignAlwaysShown.
X-SVN-Rev: 8240
2002-03-26 05:27:25 +00:00
George Rhoten
bc64b17bee ICU-1199 Stop using the deprecated Unicode C++ class
X-SVN-Rev: 8105
2002-03-19 03:01:28 +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
fb2f039c5b ICU-837 First shot at fixing up ustdio for better compatibility with stdio.
X-SVN-Rev: 7747
2002-02-23 00:34:39 +00:00
Ram Viswanadha
189e70e306 ICU-329 Clear the parseErr struct consistently by setting the offsets and line with -1
X-SVN-Rev: 6922
2001-11-15 21:13:37 +00:00
Helena Chapman
d816eefc57 ICU-1264 added namspace support where possible.
X-SVN-Rev: 6124
2001-10-08 23:26:58 +00:00
George Rhoten
6b5f932d02 ICU-329 A static UParseError is not needed.
It increases the library size slightly, and it confuses people that are searching for multithreading problems.

X-SVN-Rev: 5973
2001-09-28 21:41:48 +00:00
George Rhoten
4526828ee2 ICU-1099 Make more data const in the libraries
X-SVN-Rev: 5964
2001-09-28 19:13:03 +00:00
Markus Scherer
f7461b3b69 ICU-1222 change US::empty() to isEmpty()
X-SVN-Rev: 5947
2001-09-27 22:46:58 +00:00
George Rhoten
7353ac4a23 ICU-513 Test for surrogate support
X-SVN-Rev: 5842
2001-09-20 21:34:19 +00:00
Markus Scherer
9fac14aa96 ICU-1200 no need any more to explicitly NUL-terminate after US::extract() to codepage
X-SVN-Rev: 5802
2001-09-18 23:53:27 +00:00
George Rhoten
745a84cbcd ICU-513 Fixes for Solaris
X-SVN-Rev: 5792
2001-09-18 22:17:21 +00:00
George Rhoten
96d88d5748 ICU-513 Fixes for AIX, and replace charAt with char32At
X-SVN-Rev: 5786
2001-09-18 20:40:48 +00:00
George Rhoten
4e351c0c81 ICU-513 Don't use the deprecated API anymore.
X-SVN-Rev: 5756
2001-09-17 21:50:19 +00:00
Ram Viswanadha
0a3e11290a ICU-329 Add more error codes for formatting api
X-SVN-Rev: 5503
2001-08-17 02:20:35 +00:00
Ram Viswanadha
d7d6c296e2 ICU-329 First take on add better error reporting with UParseError struct.
X-SVN-Rev: 5472
2001-08-16 00:55:16 +00:00
George Rhoten
2f04fc3c5c ICU-882 Don't use deprecated code.
X-SVN-Rev: 5208
2001-07-09 22:40:08 +00:00
Vladimir Weinstein
8e6698de87 ICU-903 updated copyright notices
X-SVN-Rev: 4237
2001-03-21 20:31:13 +00:00
George Rhoten
0d9a34e275 ICU-760 Can't get the correct FieldPosition with padding.
X-SVN-Rev: 3972
2001-03-08 19:40:09 +00:00
George Rhoten
5c2690878a ICU-760 Do the correct padding between a number and its sign
X-SVN-Rev: 3687
2001-02-20 17:29:08 +00:00
George Rhoten
a69e1906a8 ICU-535 Fixed some compiler warnings
X-SVN-Rev: 3601
2001-02-10 02:16:19 +00:00
George Rhoten
59b0c881e8 ICU-790 Removed limits.h
X-SVN-Rev: 3332
2001-01-02 19:22:58 +00:00
George Rhoten
9f7d830b5d ICU-97 Fix for really large negative numbers
X-SVN-Rev: 3205
2000-12-12 21:57:44 +00:00
George Rhoten
b20a981cfc ICU-97 More speed improvements.
X-SVN-Rev: 2880
2000-11-07 18:57:11 +00:00
George Rhoten
5168538b08 ICU-97 More speed improvements.
X-SVN-Rev: 2854
2000-11-02 02:42:40 +00:00
George Rhoten
c4183c1638 ICU-97 Faster performance for parsing
X-SVN-Rev: 2769
2000-10-24 16:09:39 +00:00
George Rhoten
3015baf12e ICU-97 Parsing a Long value is faster now.
X-SVN-Rev: 2648
2000-10-12 19:04:06 +00:00
Alan Liu
c88bbca756 ICU-403 add documentation
X-SVN-Rev: 2629
2000-10-11 15:46:21 +00:00
George Rhoten
fa90ef551e ICU-535 Re-enabled some compiler warning reporting by removing some #pragma statements for Windows.
X-SVN-Rev: 2569
2000-10-04 22:32:34 +00:00
George Rhoten
a925e45103 ICU-535 fixed some compiler warnings
X-SVN-Rev: 2351
2000-08-24 20:56:13 +00:00
George Rhoten
123caf9bbd ICU-535 fixed some compiler warnings
X-SVN-Rev: 2232
2000-08-14 23:23:20 +00:00
George Rhoten
e91ba61b22 ICU-512 Infinity now parses correctly
X-SVN-Rev: 2146
2000-08-09 20:46:49 +00:00
George Rhoten
5a1369d8bc ICU-535 Removed a compiler warning
X-SVN-Rev: 2139
2000-08-08 23:26:10 +00:00
George Rhoten
74b568ba6d ICU-512 accidentally modifed the wrong line for (isParseIntegerOnly() || sawDecimal)
X-SVN-Rev: 2132
2000-08-08 02:13:55 +00:00
George Rhoten
3b0b2f66dd ICU-512 Reenabled the code Unicode::digitValue(ch). Can directly compare certain strings now instead of creating an object to create the string.
X-SVN-Rev: 2129
2000-08-07 23:06:28 +00:00
Vladimir Weinstein
c31e17a71e ICU-436 additional constructors and _open functions for resource bundle
X-SVN-Rev: 1724
2000-06-30 20:31:39 +00:00
Alan Liu
4e46471d22 ICU-417 add support for secondary grouping size
X-SVN-Rev: 1580
2000-06-07 00:15:59 +00:00
Markus Scherer
2ceca5876b ICU-176 DecimalFormat API use UnicodeString pad char, not UChar (old: deprecated) - implementation needs to follow at a later time
X-SVN-Rev: 1485
2000-05-24 22:44:14 +00:00
Helena Chapman
aab9c41ddc ICU-408 AIX 4.3.x port changes.
X-SVN-Rev: 1460
2000-05-24 19:21:39 +00:00
Helena Chapman
69ba12f77c ICU-351 Define UBool to be used in the APIs.
X-SVN-Rev: 1410
2000-05-18 22:08:39 +00:00
Vladimir Weinstein
c786b21d52 ICU-184 resource data files in memory mapped format (initial revision)
X-SVN-Rev: 1365
2000-05-15 18:39:17 +00:00
Steven R. Loomis
e78d6db835 ICU-185 don't call Locale(UnicodeString..) deprecated apis
X-SVN-Rev: 1135
2000-04-15 21:23:28 +00:00
Markus Scherer
bba7ac1a00 ICU-176 UTF-16 changes for UnicodeString
X-SVN-Rev: 1052
2000-04-03 23:53:59 +00:00
Markus Scherer
50eb0cfdf0 ICU-98 define and use POSIX INT32_MAX etc., matching int32_t etc.
X-SVN-Rev: 1032
2000-03-30 01:12:01 +00:00
Brendan Murray
dd70c2705e ICU-98 These are changes to support 64-bit platforms, such as Sun
SPARC V9, which is the only one tested so far.

X-SVN-Rev: 1022
2000-03-29 21:41:11 +00:00
Helena Chapman
aedb933f7e ICU-163 Fixed warnings on MSVC 6.0.
X-SVN-Rev: 476
1999-12-29 22:33:47 +00:00
Vladimir Weinstein
8b20f17f49 ICU-12 all public include files are now in unicode dir, all private icu_ functions renamed to uprv_
X-SVN-Rev: 473
1999-12-28 23:57:50 +00:00
Helena Chapman
16ac11f546 ICU-200 Updated with OS/400 specific port changes.
X-SVN-Rev: 459
1999-12-22 22:57:04 +00:00
Markus Scherer
54ba2e3819 ICU-170 use UnicodeString::length() instead of the deprecated size()
X-SVN-Rev: 339
1999-12-08 02:11:04 +00:00
Markus Scherer
ec97389ca8 ICU-80 ResourceBundle keys (tags) are now const char*
X-SVN-Rev: 271
1999-12-01 21:27:44 +00:00
Vladimir Weinstein
14e6e92642 ICU-161 changed copyright notice
X-SVN-Rev: 220
1999-11-22 20:25:35 +00:00
Helena Chapman
d60fe9d14e ICU-84 Updated with S/390 IEEE port changes.
X-SVN-Rev: 177
1999-11-16 01:05:10 +00:00
Helena Chapman
3fd1e18513 ICU-66 Initialized fPad and fPadPosition.
X-SVN-Rev: 125
1999-10-27 01:08:39 +00:00
Markus Scherer
07a2bc0937 ICU-6 more renaming of constant names
FAILURE -> U_FAILURE etc.

X-SVN-Rev: 76
1999-10-18 22:48:32 +00:00
Markus Scherer
b942cae860 ICU-6 change enum constants that do not conform to our naming conventions
X-SVN-Rev: 18
1999-10-07 00:07:53 +00:00
Unknown User
aa0b0a88e8 Initial revision
X-SVN-Rev: 2
1999-08-16 21:50:52 +00:00