<?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: Longest Common Prefix Between Two Strings</title>
	<atom:link href="http://blog.apokalyptik.com/2011/06/05/longest-common-prefix-between-two-strings/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.apokalyptik.com/2011/06/05/longest-common-prefix-between-two-strings/</link>
	<description>The random things that spew forth from my brain...</description>
	<lastBuildDate>Fri, 25 Jan 2013 23:59:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta2-24222</generator>
	<item>
		<title>By: aegrumet</title>
		<link>http://blog.apokalyptik.com/2011/06/05/longest-common-prefix-between-two-strings/comment-page-1/#comment-10420</link>
		<dc:creator>aegrumet</dc:creator>
		<pubDate>Sat, 25 Jun 2011 09:14:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=915#comment-10420</guid>
		<description><![CDATA[Ah, thanks.  I think it&#039;ll #fail on non-ascii, but it&#039;s a one-liner! ]]></description>
		<content:encoded><![CDATA[<p>Ah, thanks.  I think it&#039;ll #fail on non-ascii, but it&#039;s a one-liner! </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apokalyptik</title>
		<link>http://blog.apokalyptik.com/2011/06/05/longest-common-prefix-between-two-strings/comment-page-1/#comment-10419</link>
		<dc:creator>apokalyptik</dc:creator>
		<pubDate>Sat, 25 Jun 2011 07:07:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=915#comment-10419</guid>
		<description><![CDATA[@aegrumet@alum.mit.edu You&#039;re right, weird.  I  edited it to chr(0) for you.  Nice code :) ]]></description>
		<content:encoded><![CDATA[<p>@aegrumet@alum.mit.edu You&#039;re right, weird.  I  edited it to chr(0) for you.  Nice code <img src='http://blog.apokalyptik.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aegrumet@alum.mit.ed</title>
		<link>http://blog.apokalyptik.com/2011/06/05/longest-common-prefix-between-two-strings/comment-page-1/#comment-10418</link>
		<dc:creator>aegrumet@alum.mit.ed</dc:creator>
		<pubDate>Sat, 25 Jun 2011 01:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=915#comment-10418</guid>
		<description><![CDATA[Hmm your software munged the code.  The second argument to the ltrim should be &quot;backslash zero&quot;. ]]></description>
		<content:encoded><![CDATA[<p>Hmm your software munged the code.  The second argument to the ltrim should be &quot;backslash zero&quot;. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aegrumet@alum.mit.ed</title>
		<link>http://blog.apokalyptik.com/2011/06/05/longest-common-prefix-between-two-strings/comment-page-1/#comment-10417</link>
		<dc:creator>aegrumet@alum.mit.ed</dc:creator>
		<pubDate>Sat, 25 Jun 2011 01:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=915#comment-10417</guid>
		<description><![CDATA[How about: 
 
function str_common_prefix( $s1, $s2 ) 
{ 
  return strlen($s1^$s2)-strlen(ltrim($s1^$s2,chr(0))); 
} ]]></description>
		<content:encoded><![CDATA[<p>How about:</p>
<p>function str_common_prefix( $s1, $s2 )</p>
<p>{</p>
<p>  return strlen($s1^$s2)-strlen(ltrim($s1^$s2,chr(0)));</p>
<p>} </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: apokalyptik</title>
		<link>http://blog.apokalyptik.com/2011/06/05/longest-common-prefix-between-two-strings/comment-page-1/#comment-10396</link>
		<dc:creator>apokalyptik</dc:creator>
		<pubDate>Sun, 05 Jun 2011 22:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.apokalyptik.com/?p=915#comment-10396</guid>
		<description><![CDATA[And, yes, I know I&#039;ve said I hate the ternary operator... but I didn&#039;t set out to write the most beautiful version of this, just the shortest...  I still believe that the ternary operator makes ugly and unreadable code, exemplified above. ]]></description>
		<content:encoded><![CDATA[<p>And, yes, I know I&#039;ve said I hate the ternary operator&#8230; but I didn&#039;t set out to write the most beautiful version of this, just the shortest&#8230;  I still believe that the ternary operator makes ugly and unreadable code, exemplified above. </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 2/10 queries in 0.003 seconds using memcached
Object Caching 568/573 objects using memcached

 Served from: blog.apokalyptik.com @ 2013-05-19 10:42:26 by W3 Total Cache -->