<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Il 02/09/2016 14:20, Michael Van
Canneyt ha scritto:<br>
</div>
<blockquote
cite="mid:alpine.DEB.2.10.1609021420340.25092@home.telenet.be"
type="cite">On Fri, 2 Sep 2016, Giuliano Colla wrote:
<br>
<br>
<blockquote type="cite" style="color: #000000;">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.
<br>
<br>
For common sense and Delphi compatibility (<a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://docwiki.embarcadero.com/Libraries/Berlin/en/System.IniFiles.THashedStringList_Properties">http://docwiki.embarcadero.com/Libraries/Berlin/en/System.IniFiles.THashedStringList_Properties</a>)
CaseSensitive should be supported.
<br>
<br>
Am I doing something wrong, or it is an fpc missing feature?
<br>
</blockquote>
<br>
Please report a bug.
</blockquote>
<p>Done:</p>
<p><a class="moz-txt-link-freetext" href="http://bugs.freepascal.org/view.php?id=30568">http://bugs.freepascal.org/view.php?id=30568</a></p>
<p>I have attached a small patch which should fix the issue.</p>
<p>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.<br>
</p>
<p>Giuliano</p>
<p><br>
</p>
</body>
</html>