<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: C# String Tips</title>
	<atom:link href="http://www.csharp411.com/c-string-tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharp411.com/c-string-tips/</link>
	<description>C# Information, Code, Tips and News</description>
	<lastBuildDate>Sat, 24 Jul 2010 01:26:51 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: siva</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-2/#comment-5408</link>
		<dc:creator>siva</dc:creator>
		<pubDate>Fri, 19 Mar 2010 12:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5408</guid>
		<description>hi this is siva
i want this prog code at least for 4th one plss



1. A text box for file name
2. A button named as &quot;Segregate&quot;
3. A two column list box (&quot;Word&quot;, &quot;Times&quot;)
4. Pressing the button should read the file contents and find out each word repeats how many times and display in the list box</description>
		<content:encoded><![CDATA[<p>hi this is siva<br />
i want this prog code at least for 4th one plss</p>
<p>1. A text box for file name<br />
2. A button named as "Segregate"<br />
3. A two column list box ("Word", "Times")<br />
4. Pressing the button should read the file contents and find out each word repeats how many times and display in the list box</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aviw</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-2/#comment-5331</link>
		<dc:creator>Aviw</dc:creator>
		<pubDate>Tue, 01 Dec 2009 08:03:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5331</guid>
		<description>Hello!

I have a strings such as: s = &quot;asd;#   qwe;#    zxc&quot;.

I&#039;m splitting it to array as follow:
a = s.Split(new[] { &quot;;#&quot; });

But it is returns me an array without leading spaces:
&quot;asd&quot;, &quot;qwe&quot;, &quot;zxc&quot;.

How can I easily fix this behavior?

Thank you!</description>
		<content:encoded><![CDATA[<p>Hello!</p>
<p>I have a strings such as: s = "asd;#   qwe;#    zxc".</p>
<p>I'm splitting it to array as follow:<br />
a = s.Split(new[] { ";#" });</p>
<p>But it is returns me an array without leading spaces:<br />
"asd", "qwe", "zxc".</p>
<p>How can I easily fix this behavior?</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kei</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-5322</link>
		<dc:creator>kei</dc:creator>
		<pubDate>Tue, 03 Nov 2009 08:55:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5322</guid>
		<description>hi all,
(sorry, my English not good)

I have a problem to compare 2 or more addresses. As you may know, user always write down their address without using fixed format. For example:

People from Microsoft wrote:
People1: 
Microsoft Corporation One Microsoft Way Redmond, WA 98052-6399 USA
People2:
Microsoft Corp. One Microsoft Way Redmond, WA 98052 6399 USA

People from Microsoft wrote:
People1: 
Microsoft Corporation One Microsoft Way Redmond, WA 98052-6399 USA
People2:
Microsoft Corp. One Microsoft Way Redmond, WA 98052 6399 USA

People from Vodafone wrote:
People3:
Vodafone Limited The Connection Newbury Berkshire 
RG14 2FN
People4:
Vodafone Limited, The Connection, Newbury Berkshire 
RG 14/2FN
People5:
Vodafone Limited, The Connection, Newbury Berkshire 
RG-14 2FN

I want system can recognized those 5 addresses as 2 addresses only.

If anyone know the algorithm or anything that might help, please inform me. Thx. ^^</description>
		<content:encoded><![CDATA[<p>hi all,<br />
(sorry, my English not good)</p>
<p>I have a problem to compare 2 or more addresses. As you may know, user always write down their address without using fixed format. For example:</p>
<p>People from Microsoft wrote:<br />
People1:<br />
Microsoft Corporation One Microsoft Way Redmond, WA 98052-6399 USA<br />
People2:<br />
Microsoft Corp. One Microsoft Way Redmond, WA 98052 6399 USA</p>
<p>People from Microsoft wrote:<br />
People1:<br />
Microsoft Corporation One Microsoft Way Redmond, WA 98052-6399 USA<br />
People2:<br />
Microsoft Corp. One Microsoft Way Redmond, WA 98052 6399 USA</p>
<p>People from Vodafone wrote:<br />
People3:<br />
Vodafone Limited The Connection Newbury Berkshire<br />
RG14 2FN<br />
People4:<br />
Vodafone Limited, The Connection, Newbury Berkshire<br />
RG 14/2FN<br />
People5:<br />
Vodafone Limited, The Connection, Newbury Berkshire<br />
RG-14 2FN</p>
<p>I want system can recognized those 5 addresses as 2 addresses only.</p>
<p>If anyone know the algorithm or anything that might help, please inform me. Thx. ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hades</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-5262</link>
		<dc:creator>Hades</dc:creator>
		<pubDate>Fri, 21 Aug 2009 18:15:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5262</guid>
		<description>Sadia,
Why couldn&#039;t you pass a long string as an Input.
Strings are reference types which means they live in the heap and the stack has only a references that point to an address in the heap so essentially you could pass and any length.

Could provide some code where you are encountering a problem ??</description>
		<content:encoded><![CDATA[<p>Sadia,<br />
Why couldn't you pass a long string as an Input.<br />
Strings are reference types which means they live in the heap and the stack has only a references that point to an address in the heap so essentially you could pass and any length.</p>
<p>Could provide some code where you are encountering a problem ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sadia afrin</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-5261</link>
		<dc:creator>sadia afrin</dc:creator>
		<pubDate>Fri, 21 Aug 2009 17:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5261</guid>
		<description>i want to take a string as input of any length for my program. Can you help me with the code?</description>
		<content:encoded><![CDATA[<p>i want to take a string as input of any length for my program. Can you help me with the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim S</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-5257</link>
		<dc:creator>Jim S</dc:creator>
		<pubDate>Wed, 12 Aug 2009 23:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5257</guid>
		<description>sorry, newb poster...

this is missing from the for loop

&quot;if (H.IndexOf(needles[i]) &gt;= 0)&quot;</description>
		<content:encoded><![CDATA[<p>sorry, newb poster&#8230;</p>
<p>this is missing from the for loop</p>
<p>"if (H.IndexOf(needles[i]) &gt;= 0)"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim S</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-5256</link>
		<dc:creator>Jim S</dc:creator>
		<pubDate>Wed, 12 Aug 2009 23:28:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5256</guid>
		<description>not sure what happened to the code.  missing the If

static bool NinH(string N, string sep, string H)
        {
            bool ret = false;
            string[] s = { sep };
            string[] needles = N.Split(s,StringSplitOptions.RemoveEmptyEntries);
            for (int i = 0; i = 0)
             {
               ret = true;
               break;
             }
            }
            return ret;
        }</description>
		<content:encoded><![CDATA[<p>not sure what happened to the code.  missing the If</p>
<p>static bool NinH(string N, string sep, string H)<br />
        {<br />
            bool ret = false;<br />
            string[] s = { sep };<br />
            string[] needles = N.Split(s,StringSplitOptions.RemoveEmptyEntries);<br />
            for (int i = 0; i = 0)<br />
             {<br />
               ret = true;<br />
               break;<br />
             }<br />
            }<br />
            return ret;<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim S</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-5255</link>
		<dc:creator>Jim S</dc:creator>
		<pubDate>Wed, 12 Aug 2009 23:25:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-5255</guid>
		<description>Great post!

Trying to find any of the needles in the haystack.  Is there a better way?

NinH(&quot;one*two&quot;,&quot;*&quot;,&quot;two&quot;)             &lt;= true
NinH(&quot;one*two&quot;,&quot;*&quot;,&quot;bucklemyshoe&quot;)    &lt;= false
NinH(&quot;one*two&quot;,&quot;*&quot;,&quot;bucklemyoneshoe&quot;) &lt;= true
NinH(&quot;one*two&quot;,&quot;*&quot;,&quot;three*two*one&quot;)   &lt;= true

static bool NinH(string N, string sep, string H)
        {
            bool ret = false;
            string[] s = { sep };
            string[] needles = N.Split(s,StringSplitOptions.RemoveEmptyEntries);
            for (int i = 0; i = 0)
                {
                    ret = true;
                    break;
                }
            }
            return ret;
        }</description>
		<content:encoded><![CDATA[<p>Great post!</p>
<p>Trying to find any of the needles in the haystack.  Is there a better way?</p>
<p>NinH("one*two","*","two")             &lt;= true<br />
NinH(&quot;one*two&quot;,&quot;*&quot;,&quot;bucklemyshoe&quot;)    &lt;= false<br />
NinH(&quot;one*two&quot;,&quot;*&quot;,&quot;bucklemyoneshoe&quot;) &lt;= true<br />
NinH(&quot;one*two&quot;,&quot;*&quot;,&quot;three*two*one&quot;)   &lt;= true</p>
<p>static bool NinH(string N, string sep, string H)<br />
        {<br />
            bool ret = false;<br />
            string[] s = { sep };<br />
            string[] needles = N.Split(s,StringSplitOptions.RemoveEmptyEntries);<br />
            for (int i = 0; i = 0)<br />
                {<br />
                    ret = true;<br />
                    break;<br />
                }<br />
            }<br />
            return ret;<br />
        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hades</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-4424</link>
		<dc:creator>Hades</dc:creator>
		<pubDate>Wed, 18 Mar 2009 15:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-4424</guid>
		<description>Hey Timm,
What I found out is that the solution that I implemented ended up to be easier to code and understand.
I tried a number of Regex expressions to look for the file in the folder but every time the compiler would complain about the path not being valid.</description>
		<content:encoded><![CDATA[<p>Hey Timm,<br />
What I found out is that the solution that I implemented ended up to be easier to code and understand.<br />
I tried a number of Regex expressions to look for the file in the folder but every time the compiler would complain about the path not being valid.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timm</title>
		<link>http://www.csharp411.com/c-string-tips/comment-page-1/#comment-4423</link>
		<dc:creator>timm</dc:creator>
		<pubDate>Wed, 18 Mar 2009 13:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.mini-tools.com/at2/csharp/wordpress/c-string-tips/#comment-4423</guid>
		<description>Jonas, good question, perhaps you can find your answer here:

http://www.csharp411.com/cleanstripremove-binary-characters-from-c-string/</description>
		<content:encoded><![CDATA[<p>Jonas, good question, perhaps you can find your answer here:</p>
<p><a href="http://www.csharp411.com/cleanstripremove-binary-characters-from-c-string/" rel="nofollow">http://www.csharp411.com/cleanstripremove-binary-characters-from-c-string/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
