Michael Ow
a7aefadebd
ICU-6132 Change the return value for memory allocation error in ucol.cpp.
...
X-SVN-Rev: 23262
2008-01-17 19:39:02 +00:00
Michael Ow
9eb7ae3040
ICU-6132 Add memory allocation check in ucol, ucol_bld, and ucol_cnt.
...
X-SVN-Rev: 23248
2008-01-16 20:12:48 +00:00
George Rhoten
82b85fb45c
ICU-6118 Remove the @internal functions ucol_collatorToIdentifier, ucol_openFromIdentifier, ucol_identifierToShortString and ucol_shortStringToIdentifier (not used by original customer and their data is out of date).
...
Remove some references to unused internal header references.
Make some functions library private.
X-SVN-Rev: 23177
2008-01-05 01:27:56 +00:00
George Rhoten
dd845e9520
ICU-5955 Mark data const
...
X-SVN-Rev: 23158
2008-01-03 10:07:47 +00:00
Michael Ow
3fb75dd27a
ICU-6101 Use hasNext to check for end of iterator.
...
X-SVN-Rev: 23144
2007-12-31 20:25:48 +00:00
George Rhoten
d89d165bfd
ICU-6112 Make ucol_contractionEndCP more like ucol_unsafeCP
...
X-SVN-Rev: 23139
2007-12-28 21:16:45 +00:00
George Rhoten
012debec5d
ICU-6112 Minor performance enhancement for strcoll with strings that have common prefixes. Turn a few constants into real constants. The more common switch cases should be checked sooner (surrogates aren't that common as shown by collperf). Move ucol_cloneBinary closer to the other clone methods for legibility reasons.
...
X-SVN-Rev: 23138
2007-12-28 20:08:41 +00:00
George Rhoten
10611e82fd
ICU-6004 More white space changes for easier code review. Unify indentation to the standard 4 spaces.
...
X-SVN-Rev: 23136
2007-12-26 21:45:18 +00:00
George Rhoten
ce9333ff8e
ICU-6004 More white space changes for easier code review. Unify indentation to the standard 4 spaces.
...
X-SVN-Rev: 23135
2007-12-26 21:44:39 +00:00
George Rhoten
3918c4f055
ICU-6004 More white space changes for easier code review. Unify indentation to the standard 4 spaces.
...
X-SVN-Rev: 23134
2007-12-26 21:37:40 +00:00
George Rhoten
95265fc6ec
ICU-6024 Handle memory failure a little better.
...
X-SVN-Rev: 23133
2007-12-26 19:55:00 +00:00
George Rhoten
021daf4b4a
ICU-6004 More white space changes for easier code review. Unify indentation to the standard 4 spaces.
...
X-SVN-Rev: 23130
2007-12-26 19:27:43 +00:00
Michael Ow
326689f2cb
ICU-6101 Fix Lenient UTF8 issue and add test for new supplemental character checking code.
...
X-SVN-Rev: 23122
2007-12-21 00:08:12 +00:00
Michael Ow
f2a8d7dd61
ICU-6101 Move the setting of variable from inside a macro call to outside.
...
X-SVN-Rev: 23116
2007-12-20 19:22:58 +00:00
Michael Ow
20a3dfbb35
ICU-6101 Remove redundant character iterator position test.
...
X-SVN-Rev: 23115
2007-12-20 17:35:04 +00:00
Michael Ow
50269e4bb7
ICU-6101 Add check for surrogate pair during test for discontiguous contraction.
...
X-SVN-Rev: 23114
2007-12-19 23:37:23 +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
Michael Ow
d9958662e3
ICU-6024 Add dynamic buffer to collIterate to extend the size of CEs if needed to limit buffer overflow errors. CE buffer overflow cintltst test is changed to reflect this change.
...
X-SVN-Rev: 23089
2007-12-15 00:30:35 +00:00
George Rhoten
6112b5685d
ICU-6076 Fix some realloc issues.
...
X-SVN-Rev: 23086
2007-12-14 09:23:07 +00:00
Andrew J Macheret
f23e13afaf
ICU-6004 Added a line so that the code that generates a partial key will ignore ignorables, just like the full key generator does
...
X-SVN-Rev: 22909
2007-11-09 20:32:16 +00:00
George Rhoten
a21a0d8f00
ICU-5955 Prevent a highly unlikely memory leak.
...
X-SVN-Rev: 22712
2007-09-24 16:05:53 +00:00
George Rhoten
967b65a458
ICU-5889 Fix some logic errors uncovered by BEAM.
...
X-SVN-Rev: 22558
2007-08-29 02:57:42 +00:00
George Rhoten
b5e9f17cdd
ICU-5445 Fix some compiler warnings.
...
X-SVN-Rev: 22120
2007-07-24 08:30:41 +00:00
George Rhoten
fc532c8ac1
ICU-5743 Stop crashing when the default collator keyword is unsupported. Also add some other code coverage tests.
...
X-SVN-Rev: 21728
2007-06-13 22:53:28 +00:00
George Rhoten
8991008eb9
ICU-5410 Improve code coverage.
...
X-SVN-Rev: 21721
2007-06-13 19:03:09 +00:00
George Rhoten
fad658d66d
ICU-5279 Reduce the set of exported functions.
...
X-SVN-Rev: 21621
2007-06-03 06:08:46 +00:00
George Rhoten
a558657ad5
ICU-5602 Fix a compiler warning from last change.
...
X-SVN-Rev: 21135
2007-02-27 08:55:40 +00:00
George Rhoten
b847cd9089
ICU-5602 Test and fix French secondary buffer reallocation crash.
...
X-SVN-Rev: 21041
2007-02-16 19:06:24 +00:00
George Rhoten
202e0f66a7
ICU-5445 Fix some compiler warnings
...
X-SVN-Rev: 20809
2006-12-19 06:06:30 +00:00
George Rhoten
760e4c2a65
ICU-5445 Fix some compiler warnings.
...
X-SVN-Rev: 20504
2006-10-06 18:08:06 +00:00
George Rhoten
dbc0d1d9ee
ICU-5349 Use UMTX_CHECK for double check locking.
...
X-SVN-Rev: 20176
2006-08-29 04:57:05 +00:00
George Rhoten
914eadd2dd
ICU-4707 Fix some compiler warnings.
...
X-SVN-Rev: 19918
2006-07-28 21:47:47 +00:00
Vladimir Weinstein
5d24ef7fdd
ICU-5223 fix primary strength sortkey termination bug
...
X-SVN-Rev: 19794
2006-07-06 06:30:06 +00:00
Vladimir Weinstein
48633f914b
ICU-5232 fix for nextSortKeyPart bug that was uncovered in
...
collate/CollationThaiTest/TestDictionary. The function was made simpler
and actually correct. Rejoice and consider backporting to 3.2.
X-SVN-Rev: 19734
2006-06-16 06:00:13 +00:00
George Rhoten
291f674b54
ICU-5190 Fix collation cloning.
...
X-SVN-Rev: 19687
2006-06-06 06:42:34 +00:00
George Rhoten
f4b0ed0368
ICU-5190 Fix a bug where the cloned collator uses UCA instead of customized rules.
...
X-SVN-Rev: 19682
2006-06-05 21:56:14 +00:00
George Rhoten
020abe6693
ICU-5190 Fix some offset allocation issues for unaligned buffers.
...
X-SVN-Rev: 19659
2006-05-26 04:00:52 +00:00
George Rhoten
7b15f0e402
ICU-5190 Test and fix some allocation issues from ucol_safeClone
...
X-SVN-Rev: 19634
2006-05-21 22:44:14 +00:00
George Rhoten
3ec1127306
ICU-5190 Test and fix some allocation issues from ucol_safeClone
...
X-SVN-Rev: 19633
2006-05-21 22:22:24 +00:00
George Rhoten
319d2629b3
ICU-5190 Test and fix some allocation issues from ucol_safeClone
...
X-SVN-Rev: 19632
2006-05-21 21:09:01 +00:00
George Rhoten
a4663ad545
ICU-5190 Fix ucol_safeClone to properly clone a collator.
...
X-SVN-Rev: 19629
2006-05-21 17:52:09 +00:00
George Rhoten
361f663295
ICU-5190 Perform fewer mallocs and frees for easier safe cloning.
...
X-SVN-Rev: 19627
2006-05-21 01:27:15 +00:00
George Rhoten
3893bd1ab2
ICU-5190 Decrease size of collator. Performance isn't addressed, but it helps to reduce what to look at for cloning.
...
X-SVN-Rev: 19625
2006-05-15 05:08:49 +00:00
Deborah Goldsmith
d6d4d2f647
ICU-5192 Code review cleanup
...
X-SVN-Rev: 19606
2006-05-03 21:09:00 +00:00
George Rhoten
e4b3bbc599
ICU-4707 Fix some compiler warnings.
...
X-SVN-Rev: 19533
2006-04-12 23:36:56 +00:00
George Rhoten
6d5916a2ce
ICU-4703 Improve the error checking.
...
X-SVN-Rev: 19517
2006-04-04 20:15:46 +00:00
George Rhoten
c4a7db9fa0
ICU-4703 Don't deference NULL when a mallloc fails, and report when the memory failure happens.
...
X-SVN-Rev: 19486
2006-03-30 16:54:13 +00:00
George Rhoten
b20499f06b
ICU-4703 Fix memory leak on function failure
...
X-SVN-Rev: 19477
2006-03-30 05:29:25 +00:00
George Rhoten
5dee33ea3e
ICU-4707 Fix some compiler warnings about unused variables.
...
X-SVN-Rev: 19118
2006-02-09 08:59:20 +00:00
Vladimir Weinstein
d50159c572
ICU-4960 fixed ignorables in case level with primary strength (compare and sortkey)
...
X-SVN-Rev: 19040
2006-01-28 08:26:55 +00:00
Vladimir Weinstein
53e8bd5ed2
ICU-4821 fix upper first behavior for normal sort key generation
...
X-SVN-Rev: 18541
2005-09-17 06:25:22 +00:00
Vladimir Weinstein
262a7354a9
ICU-4355 fix a bug in contraction handling
...
X-SVN-Rev: 18332
2005-07-22 21:19:34 +00:00
Vladimir Weinstein
5839d96cdc
ICU-4288 fix compiler warnings
...
X-SVN-Rev: 18263
2005-07-15 22:11:40 +00:00
Vladimir Weinstein
7610b35047
ICU-4355 code revieiw changes
...
X-SVN-Rev: 18170
2005-07-07 22:48:45 +00:00
Vladimir Weinstein
ad53822131
ICU-4355 remove dependency of ucol.cpp on ures
...
X-SVN-Rev: 18167
2005-07-07 22:12:43 +00:00
Vladimir Weinstein
4c163f6aa3
ICU-4355 Allow for collation binary images to work without UCA
...
X-SVN-Rev: 18149
2005-07-06 21:27:21 +00:00
Vladimir Weinstein
ac9da526ce
ICU-4588 forgetUCA function
...
X-SVN-Rev: 17961
2005-06-21 20:14:35 +00:00
Eric Mader
5dc3d7c9d4
ICU-4561 Update copyright notices for ICU 3.4
...
X-SVN-Rev: 17822
2005-06-07 23:38:09 +00:00
Vladimir Weinstein
32354b1c86
ICU-4350 Upgrade ICU4C to UCA 4.1
...
X-SVN-Rev: 17622
2005-05-19 06:43:35 +00:00
George Rhoten
4b8ef3e6e6
ICU-4288 Mostly fixes for --enable-strict for gcc 3.4 (Fedora Core 3)
...
X-SVN-Rev: 17040
2004-12-30 07:25:51 +00:00
George Rhoten
a91af43a2d
ICU-4281 Mostly split collation so that the runtime doesn't depend on service
...
registration, resource bundles, collation building/loading and collation meta information.
ucol_close still depends on ures_close, but it's better than before.
X-SVN-Rev: 16933
2004-12-09 04:23:42 +00:00
Andy Heninger
665e553354
ICU-4161 remove tabs from source code
...
X-SVN-Rev: 16829
2004-11-11 23:34:58 +00:00
Vladimir Weinstein
e5f691ee8a
ICU-4163 Remove empty function body (ucol_openFromImage) that was in by mistake
...
X-SVN-Rev: 16802
2004-11-09 07:08:50 +00:00
George Rhoten
054eeb6d70
ICU-4163 Fix a compiler warning from last check-in
...
X-SVN-Rev: 16644
2004-10-27 21:21:23 +00:00
Vladimir Weinstein
6f97dd1568
ICU-4163 ucol_cloneBinary & ucol_openBinary APIs
...
X-SVN-Rev: 16637
2004-10-27 00:31:04 +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
Vladimir Weinstein
459f0a8090
ICU-4112 Fix for typo in uca init code + some consistency bug fixes in latin-1 generation.
...
X-SVN-Rev: 16362
2004-09-28 05:50:21 +00:00
George Rhoten
7dd960a8b4
ICU-4078 Loosely couple the cleanup functions.
...
X-SVN-Rev: 16307
2004-09-12 23:07:29 +00:00
George Rhoten
9acfb00960
ICU-4078 Remove a dependency on conversion
...
X-SVN-Rev: 16237
2004-08-31 23:42:52 +00:00
George Rhoten
8e5e609fa7
ICU-4078 Remove a dependency on conversion
...
X-SVN-Rev: 16230
2004-08-31 21:14:22 +00:00
George Rhoten
1fcd7ea903
ICU-3905 Fix some compiler warnings, and reduce the amount of duplicate data in the libraries.
...
X-SVN-Rev: 16211
2004-08-28 05:50:39 +00:00
Ram Viswanadha
15bd863941
ICU-3925 various fixes
...
X-SVN-Rev: 16159
2004-08-13 20:34:31 +00:00
George Rhoten
e069f28ece
ICU-3837 Add UCONFIG_NO_SERVICE
...
X-SVN-Rev: 16034
2004-07-18 01:37:13 +00:00
George Rhoten
b02a1b7ca3
ICU-3500 Fix some compiler warnings.
...
X-SVN-Rev: 15864
2004-06-12 17:50:57 +00:00
Vladimir Weinstein
c6afc65b4b
ICU-3838 reenable latin-1 fast path
...
X-SVN-Rev: 15837
2004-06-10 22:02:06 +00:00
Vladimir Weinstein
4aeaaed375
ICU-3100 Implementation of identifier <> collator functions
...
X-SVN-Rev: 15437
2004-05-20 21:03:31 +00:00
Steven R. Loomis
3c3dfa11c8
ICU-2487 getFunctionalEquivalent signature changes
...
X-SVN-Rev: 15361
2004-05-18 02:04:31 +00:00
Alan Liu
a873c1261d
ICU-3549 add keyword param to getFunctionalEquivalent
...
X-SVN-Rev: 15123
2004-05-03 18:15:13 +00:00
Alan Liu
dac1d7dd63
ICU-3549 work around hp11 acc bug
...
X-SVN-Rev: 15113
2004-04-30 22:04:46 +00:00
Alan Liu
e989896e67
ICU-3549 update implementation; add ucol_getFunctionalEquivalent
...
X-SVN-Rev: 15043
2004-04-24 02:59:03 +00:00
Alan Liu
6a3d881c1f
ICU-3549 add new collation tree API
...
X-SVN-Rev: 15000
2004-04-16 21:06:52 +00:00
Steven R. Loomis
90cbe55253
ICU-2487 move collation data into new tree
...
X-SVN-Rev: 14966
2004-04-14 19:58:08 +00:00
Vladimir Weinstein
32afdaa2e0
ICU-3569 Thai should return ignorable
...
X-SVN-Rev: 14497
2004-02-12 08:37:17 +00:00
Vladimir Weinstein
416839892a
ICU-3567 CODAN bug fixes
...
X-SVN-Rev: 14495
2004-02-12 08:32:07 +00:00
Vladimir Weinstein
15a8ebda8d
ICU-3515 implicit generation bug: don't use 0x03 either. Don't call an extra getSpecialPrevCE for latin-1 backward processing. Use placeholder for CODAN.
...
X-SVN-Rev: 14415
2004-01-27 22:13:24 +00:00
Vladimir Weinstein
8ba7b17cde
ICU-3537 Avoid double lock take 2
...
X-SVN-Rev: 14413
2004-01-26 23:18:48 +00:00
Vladimir Weinstein
77aadf5395
ICU-3537 Avoid double lock
...
X-SVN-Rev: 14412
2004-01-26 23:13:25 +00:00
Vladimir Weinstein
a4513276b9
ICU-3537 fix for fcdTrieIndex cleanup
...
X-SVN-Rev: 14406
2004-01-26 21:16:25 +00:00
George Rhoten
d7cb735e72
ICU-3222 Fix some compiler warnings
...
X-SVN-Rev: 14361
2004-01-17 00:06:19 +00:00
Vladimir Weinstein
99241f7468
ICU-3515 tailoring around implicit bug fix
...
X-SVN-Rev: 14360
2004-01-16 23:44:58 +00:00
Vladimir Weinstein
0e23771cdc
ICU-3515 trying to please AIX compiler by renaming constants
...
X-SVN-Rev: 14353
2004-01-16 16:40:30 +00:00
Vladimir Weinstein
6f9e0f5c2d
ICU-3515 implicit generation fix
...
X-SVN-Rev: 14345
2004-01-16 07:09:12 +00:00
Vladimir Weinstein
4d153fa348
ICU-2751 fix for getUCAVersion
...
X-SVN-Rev: 14317
2004-01-14 21:50:23 +00:00
Vladimir Weinstein
348b43f7d4
ICU-3184 CODAN bug fix
...
X-SVN-Rev: 14246
2004-01-07 00:21:55 +00:00
Vladimir Weinstein
d076461c78
ICU-3472 fix some crashing conditions in collation construction
...
X-SVN-Rev: 14171
2003-12-18 19:06:11 +00:00
George Rhoten
88b50711f4
ICU-3222 Fix some compiler warnings.
...
X-SVN-Rev: 13956
2003-12-03 00:45:12 +00:00
Vladimir Weinstein
6be38162d2
ICU-871 revert syn wee's changes to contraction handling
...
X-SVN-Rev: 13839
2003-11-24 19:40:10 +00:00
Andy Heninger
9ded263c4a
ICU-2403 tracing, changes from code review
...
X-SVN-Rev: 13792
2003-11-20 20:04:34 +00:00
Vladimir Weinstein
3e87dc487c
ICU-3185 added uprv_ to some function calls
...
X-SVN-Rev: 13733
2003-11-14 23:01:06 +00:00
Vladimir Weinstein
b951442768
ICU-2202 ucol_getLocaleByType - deprecated ucol_getLocale for consistency
...
X-SVN-Rev: 13728
2003-11-14 21:33:44 +00:00