[fpc-pascal] THashedStringList doesn't honour CaseSensitive?

Giuliano Colla giuliano.colla at fastwebnet.it
Tue Sep 6 20:14:44 CEST 2016


Il 02/09/2016 14:20, Michael Van Canneyt ha scritto:
> On Fri, 2 Sep 2016, Giuliano Colla wrote:
>
>> In my application I stumbled into a problem with a search in a 
>> HashedStringList: IndexOfName doesn't return the proper index if the 
>> search string doesn't match the name case, even if CaseSensitive is 
>> set to false.
>>
>> For common sense and Delphi compatibility 
>> (http://docwiki.embarcadero.com/Libraries/Berlin/en/System.IniFiles.THashedStringList_Properties) 
>> CaseSensitive should be supported.
>>
>> Am I doing something wrong, or it is an fpc missing feature?
>
> Please report a bug. 

Done:

http://bugs.freepascal.org/view.php?id=30568

I have attached a small patch which should fix the issue.

As a side issue, Delphi's TIniFiles, (at least in the CLX version which 
I checked), uses a THashedStringList for better efficiency. Once 
THashedStringList supports the CaseSensitive flag, it can be used in fpc 
too.

Giuliano


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160906/670eeef9/attachment.html>


More information about the fpc-pascal mailing list