Commit Graph

130 Commits

Author SHA1 Message Date
Michael Ow
9cb51f2e5d ICU-6132 Add proper checking of pointer before dereferencing in timezone and tblcoll.
X-SVN-Rev: 23244
2008-01-16 17:13:11 +00:00
George Rhoten
344e2283d7 ICU-6076 Prevent a double mutex lock when the following happens.
ucol_open -> u_cleanup -> ures_open same locale.
Notice that the collator leaked, which contained open resource bundles. The resource bundle API didn't recover very well from this experience, and a double mutex lock happens, which is hard to debug in the test framework.

This change will make it easier to test the -m option, reduce open resources while a collator is running and make it easier to segment the collator for static libraries.

X-SVN-Rev: 23104
2007-12-18 01:19:16 +00:00
Eric Mader
bb4a371fdb ICU-5805 Update copyright notices for ICU 3.8
X-SVN-Rev: 22167
2007-07-27 03:12:12 +00:00
George Rhoten
6cc5994f9f ICU-5279 Hide more internal API.
X-SVN-Rev: 21687
2007-06-11 02:32:47 +00:00
Steven R. Loomis
83c6d252dc ICU-5270 don't crash when no data present
X-SVN-Rev: 19876
2006-07-21 22:01:55 +00:00
George Rhoten
7a50d6f62d ICU-5161 Fix Purify/valgrind warnings about reading uninitialized memory.
X-SVN-Rev: 19552
2006-04-15 08:07:30 +00:00
George Rhoten
b29549eef4 ICU-5143 Make sure that proper ownership rules of the RuleBasedCollator are followed.
Do deep copying where needed.
Don't dereference NULL on failure to create rule string.
Initialize all member variables.
Consolidate copy and pasted code.

X-SVN-Rev: 19509
2006-04-02 19:07:50 +00:00
Vladimir Weinstein
acdf5b9f54 ICU-4587 fix for C++ wrappers for ucol_cloneBinary and ucol_openBinary
X-SVN-Rev: 18069
2005-06-28 16:35:28 +00:00
Vladimir Weinstein
1e4e3fb4f3 ICU-4587 add C++ wrappers for ucol_cloneBinary and ucol_openBinary
X-SVN-Rev: 17909
2005-06-16 20:08:56 +00:00
George Rhoten
f3229bc8ac ICU-4225 Better character escaping
X-SVN-Rev: 16868
2004-11-15 23:03:53 +00:00
Andy Heninger
9f6f294e5f ICU-4225 remove non-ascii characters from source code
X-SVN-Rev: 16835
2004-11-12 01:11:27 +00:00
Eric Mader
1e856ba7a2 ICU-4179 update copyright notices for ICU 3.2
X-SVN-Rev: 16683
2004-10-29 23:42:49 +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
592ed13f9a ICU-4084 Make sure that ures_* is used instead of the slower ResourceBundle.
X-SVN-Rev: 16251
2004-09-03 15:24:16 +00:00
George Rhoten
8e7a34ec49 ICU-3221 Fix AIX linker warnings, and reduce amount of private static class data being exported (some mainframes have minor issues with that)
X-SVN-Rev: 13337
2003-10-07 15:49:47 +00:00
George Rhoten
e718691833 ICU-3221 Fix AIX linker warnings.
X-SVN-Rev: 12985
2003-08-29 18:29:26 +00:00
Vladimir Weinstein
752e44d7d9 ICU-2840 tests shouldn't crash if there is no data
X-SVN-Rev: 12342
2003-06-06 05:05:22 +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
Vladimir Weinstein
7ec7853f1e ICU-2699 more gcc warnings fixes
X-SVN-Rev: 11958
2003-05-15 23:20:11 +00:00
Doug Felt
399b051326 ICU-2755 add ucol_open_internal
X-SVN-Rev: 11846
2003-05-08 22:21:05 +00:00
Doug Felt
556c72cc54 ICU-2755 fixed RuleBasedCollator clone/cc operations to handle aliasing cases,
added additional tests for getLocale of registered collators, misc fixes to ICUService,
StringSearch, ucollator to support changes.

X-SVN-Rev: 11786
2003-05-02 22:17:14 +00:00
Vladimir Weinstein
2fe0072a9d ICU-2222 introduce overloads for functions that used old C++ enums. Deprecate C++ enum using functions.
X-SVN-Rev: 11755
2003-05-01 17:43:01 +00:00
Markus Scherer
8c1740d468 ICU-2710 remove @obsolete ICU 2.6 and earlier code
X-SVN-Rev: 11749
2003-05-01 01:51:51 +00:00
Vladimir Weinstein
6569f131ac ICU-2851 initial implementation of ucol_equals (not yet complete, need to analyze rules)
X-SVN-Rev: 11746
2003-05-01 00:57:27 +00:00
Doug Felt
09bd2b2b11 ICU-2755 service registration for collation
X-SVN-Rev: 11722
2003-04-28 21:13:14 +00:00
GCL Shanghai
2de3bade18 ICU-2222 fix breaking changes
X-SVN-Rev: 11357
2003-03-19 13:21:51 +00:00
GCL Shanghai
513a23fdae ICU-2222 Deprecate C++ enums that duplicate C enums
X-SVN-Rev: 11137
2003-02-21 08:32:22 +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
Vladimir Weinstein
150ad44972 ICU-1433 getTailoredSet C/C++ return all the canonically equivalent sequences. Also added tests
X-SVN-Rev: 9867
2002-09-17 06:27:51 +00:00
Vladimir Weinstein
8238930139 ICU-1433 getTailoredSet C/C++ take 1
X-SVN-Rev: 9837
2002-09-04 06:08:04 +00:00
George Rhoten
d7e0797b2c ICU-2085 #ifdef out deprecated code
X-SVN-Rev: 9756
2002-08-21 19:12:24 +00:00
Vladimir Weinstein
5391094816 ICU-1953 Collation code review
X-SVN-Rev: 9271
2002-07-20 04:44:57 +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
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
Syn Wee Quek
2e3d3a3587 ICU-1883
retained error status in rulebasedcollator constructor.

X-SVN-Rev: 8779
2002-06-04 17:26:16 +00:00
George Rhoten
2836f911e3 ICU-1733 Forgot a change from Lotus.
X-SVN-Rev: 8241
2002-03-26 05:28:18 +00:00
Vladimir Weinstein
376e2e3d13 ICU-898 implementation of getLocale function and method. User can now select the type of locale to get back (requested, valid, actual)
X-SVN-Rev: 7973
2002-03-13 05:48:25 +00:00
Vladimir Weinstein
e56272c4eb ICU-898 Return bogus locale for collators instantiated from rules in C++
X-SVN-Rev: 7812
2002-02-28 21:50:58 +00:00
George Rhoten
4cd7a296e0 ICU-1733 Integrate some changes from Lotus with Vladimir's and Syn Wee's consent.
X-SVN-Rev: 7809
2002-02-28 20:01:48 +00:00
Vladimir Weinstein
8c93002e60 ICU-898 getLocale method for UCollator and RuleBasedCollator
X-SVN-Rev: 7803
2002-02-28 07:20:52 +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
Syn Wee Quek
ee5752c14a ICU-1702
getRules() implemented using ucol_getRulesEx().

X-SVN-Rev: 7645
2002-02-13 02:57:21 +00:00
George Rhoten
efdb5a1f89 ICU-1099 Make some data a bit more const
X-SVN-Rev: 6203
2001-10-11 23:54:55 +00:00
Helena Chapman
d816eefc57 ICU-1264 added namspace support where possible.
X-SVN-Rev: 6124
2001-10-08 23:26:58 +00:00
Markus Scherer
aaf6902e7d ICU-809 use US::getBuffer() instead of extract(); some cleanup
X-SVN-Rev: 5936
2001-09-27 00:59:41 +00:00
Markus Scherer
ea6f9c6c3c ICU-1229 in ucol_openRules: use UColAttributeValue instead of UNormalizationMode
X-SVN-Rev: 5891
2001-09-22 01:10:41 +00:00
Syn Wee Quek
75adf07067 ICU-1030
New implementation for Unicode Boyer Moore string search.

X-SVN-Rev: 5587
2001-08-25 02:03:53 +00:00