<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/vbcorlib/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/vbcorlib/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/vbcorlib/bugs/</id><updated>2007-05-25T10:09:50Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>FileStream.Name always returns "Unknown Stream Name"</title><link href="https://sourceforge.net/p/vbcorlib/bugs/2/" rel="alternate"/><published>2007-05-25T10:09:50Z</published><updated>2007-05-25T10:09:50Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netb00a9895dc168d955953372d5ddb7632baa1fa7e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The code of FileStream.Name looks like this;&lt;/p&gt;
&lt;p&gt;Public Property Get Name() As String&lt;br /&gt;
If Len(Name) = 0 Then&lt;br /&gt;
Name = "Unknown Stream Name"&lt;br /&gt;
Else&lt;br /&gt;
Name = mName&lt;br /&gt;
End If&lt;br /&gt;
End Property&lt;/p&gt;
&lt;p&gt;I'm sure that the If-Statement should look like this:&lt;/p&gt;
&lt;p&gt;If Len(mName) = 0 Then&lt;br /&gt;
^&lt;br /&gt;
otherwise FileStream.Name will always return "Unknown Stream Name"&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem in StringBuilder.Replace</title><link href="https://sourceforge.net/p/vbcorlib/bugs/1/" rel="alternate"/><published>2005-08-19T06:13:04Z</published><updated>2005-08-19T06:13:04Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net23262a51f65a4d297508068809f0863e9262cb2b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;From: tschultze@netzero.net&lt;br /&gt;
The initial for loop logic limits the search to the first part &lt;br /&gt;
of the target so that you don't spend time looking in the &lt;br /&gt;
last portion of the target that cannot hold the whole &lt;br /&gt;
search string. Unfortunately, it also stops while you are &lt;br /&gt;
in the middle of a match. I think the first for loop should &lt;br /&gt;
look something like this:&lt;/p&gt;
&lt;p&gt;i = 0&lt;br /&gt;
Do while (i &amp;lt;= mLength - oldLen + 1) or foundindex&lt;br /&gt;
if mString(i) = OldStr(i) then&lt;br /&gt;
(same as existing)&lt;br /&gt;
i = i + 1&lt;br /&gt;
Loop&lt;/p&gt;
&lt;p&gt;That way, if you've started to match, you'll continue &lt;br /&gt;
looking in the final characters of the target (mString) to &lt;br /&gt;
complete the match.&lt;/p&gt;
&lt;p&gt;Test:&lt;/p&gt;
&lt;p&gt;Set lTestStr = New StringBuilder&lt;br /&gt;
lTestStr.AppendString "MyStuff"&lt;br /&gt;
Debug.Print lTestStr.Replace("Stuff", "Junk").ToString&lt;/p&gt;
&lt;p&gt;v1.5.2 will produce "MyStuff" while fixed version will &lt;br /&gt;
produce "MyJunk"&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>