<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/vbcorlib/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/vbcorlib/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 25 May 2007 10:09:50 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/vbcorlib/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>FileStream.Name always returns "Unknown Stream Name"</title><link>https://sourceforge.net/p/vbcorlib/bugs/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 25 May 2007 10:09:50 -0000</pubDate><guid>https://sourceforge.netb00a9895dc168d955953372d5ddb7632baa1fa7e</guid></item><item><title>Problem in StringBuilder.Replace</title><link>https://sourceforge.net/p/vbcorlib/bugs/1/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 19 Aug 2005 06:13:04 -0000</pubDate><guid>https://sourceforge.net23262a51f65a4d297508068809f0863e9262cb2b</guid></item></channel></rss>