Vote UpVote

Don't set TStringList.sorted:=True with default comparison

Compas Pascal – Now, this is a nasty bug, especially for Delphi 2009, reported by an anonymous user in my other blog post here:The Windows API CompareStr() in Windows XP SP3, using Danish locale (and probably most others), thinks that 59A < 59-A < -59-A < 5-9A < 59-A.TStringList.Find uses binary lookups on a sorted list of strings, which means that for 1024 items in a TStringList, it does not need to make more
Favorite? Off-Topic? Lars D @ 2009-06-14 12:37


Visits: 678
Votes: 3
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Charles Ardour
Felipe L.B.
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)