Andy Heninger
c89045b0d6
ICU-6799 swat compiler warnings
...
X-SVN-Rev: 25661
2009-03-27 00:37:55 +00:00
Peter Edberg
16d52812ca
ICU-6777 Fix off-by-1 buffer size in ucol_prv_getSpecialCE for DIGIT_TAG & long digit strings
...
X-SVN-Rev: 25569
2009-03-12 20:21:35 +00:00
Peter Edberg
f12b1180ab
ICU-4121 254 digits max for CODAN collation element (additional digits are separate element)
...
X-SVN-Rev: 25336
2009-01-29 07:44:27 +00:00
Eric Mader
5f73103b5a
ICU-6659 Merge changes from branches/eric/boyer-moore
...
X-SVN-Rev: 25282
2009-01-22 00:24:48 +00:00
Markus Scherer
9be9a82b08
ICU-6530 add UTrie2 and improve upvec_ via svn merge -r 24551:24849 icu/branches/markus/utf8
...
X-SVN-Rev: 24862
2008-10-22 19:50:07 +00:00
Michael Ow
95ccfc636d
ICU-2929 Include the minor UCA version when ucol_getVersion is called.
...
X-SVN-Rev: 24469
2008-08-08 15:04:18 +00:00
Andy Heninger
1de383df48
ICU-6479 thread safety in collation initialization
...
X-SVN-Rev: 24448
2008-08-06 17:57:45 +00:00
Claire Ho
3b9c7131aa
ICU-5468 Array beyound write in ucol_getSortKey()
...
X-SVN-Rev: 24155
2008-06-11 21:37:03 +00:00
Michael Ow
c504eafdc8
ICU-5955 Add freeOffsetBuffer function to make sure that previously allocated offsetBuffer is freed to avoid memory leaks. Add deleter method in ssearch.cpp to remove hashtable objects. Delete various objects in intltest after it is no longer needed.
...
X-SVN-Rev: 24129
2008-06-09 21:18:46 +00:00
Eric Mader
ea4a1a7b48
ICU-5420 ucol_IGetPrevCE: always reset flags when finished w/ side buffer; fix a couple of signed/unsigned problems.
...
X-SVN-Rev: 23982
2008-05-26 19:18:33 +00:00
Eric Mader
9011fe483f
ICU-5420 merge changes from branches/eric/string-search r.23303 - r.23976
...
X-SVN-Rev: 23977
2008-05-23 04:22:28 +00:00
Claire Ho
dd03825a4d
ICU-5696 Fixed performance degredation for collation.
...
X-SVN-Rev: 23858
2008-05-01 01:18:54 +00:00
Michael Ow
debf923a89
ICU-6140 Ensure proper checking of Hiragana and Katakana common codepoints and add test for this.
...
X-SVN-Rev: 23797
2008-04-17 05:19:19 +00:00
Michael Ow
f92dfb834c
ICU-6140 Undo previous commit.
...
X-SVN-Rev: 23789
2008-04-12 21:56:41 +00:00
Michael Ow
26e1e30df4
ICU-6140 Compare using sort keys on hiragana and (shifted is on or quaternary strength).
...
X-SVN-Rev: 23788
2008-04-11 19:27:21 +00:00
Michael Ow
89d5749692
ICU-6140 Use sort key comparison when hiragana is turned on.
...
X-SVN-Rev: 23764
2008-04-04 23:59:12 +00:00
Andy Heninger
71bf003171
ICU-5696 Unicode 5.1 Update
...
X-SVN-Rev: 23761
2008-04-04 22:47:43 +00:00
George Rhoten
4162dd185d
ICU-6208 Refactor collation initialization code so that ucol_openBinary works in more conditions.
...
X-SVN-Rev: 23558
2008-03-12 06:24:36 +00:00
George Rhoten
6d5e7e7226
ICU-6188 ucol_getSortKey should return 0 upon memory allocation error.
...
X-SVN-Rev: 23478
2008-02-23 07:21:00 +00:00
George Rhoten
ba02cd8038
ICU-6188 Improve error handling for ucol_getSortKey when memory allocation fails.
...
X-SVN-Rev: 23464
2008-02-19 20:10:55 +00:00
George Rhoten
fa8aa3884b
ICU-6076 Partially undo last change until further discussion.
...
X-SVN-Rev: 23453
2008-02-18 00:46:38 +00:00
George Rhoten
08f1a884b5
ICU-6076 Improve the error recovery handling from changeset 23414.
...
X-SVN-Rev: 23447
2008-02-17 06:50:59 +00:00
George Rhoten
df20c5147e
ICU-6076 Fix some problems while testing ICU error recovery from out of memory conditions, like proper error reporting, not crashing, not leaking memory from when an allocation failure happens.
...
X-SVN-Rev: 23446
2008-02-16 22:58:32 +00:00
George Rhoten
2a483025d9
ICU-6183 Fix some rare UCA initialization problems
...
X-SVN-Rev: 23437
2008-02-15 22:41:39 +00:00
George Rhoten
928d6152bc
ICU-6176 Fix some Coverity warnings
...
X-SVN-Rev: 23414
2008-02-13 09:35:50 +00:00
George Rhoten
2bc412e598
ICU-6076 Use window failure testing instead of max size testing. This allows you to skip some hash table failures. Hash tables grow by powers of 2.
...
X-SVN-Rev: 23409
2008-02-10 20:17:14 +00:00
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