<?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"
	>
<channel>
	<title>Comments on: Fun with mb_strlen</title>
	<atom:link href="http://leuksman.com/log/2007/03/09/fun-with-mb_strlen/feed/" rel="self" type="application/rss+xml" />
	<link>http://leuksman.com/log/2007/03/09/fun-with-mb_strlen/</link>
	<description>reticula, electronica, &#38; oddities</description>
	<pubDate>Thu, 20 Nov 2008 21:44:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: brion</title>
		<link>http://leuksman.com/log/2007/03/09/fun-with-mb_strlen/#comment-581</link>
		<dc:creator>brion</dc:creator>
		<pubDate>Mon, 12 Mar 2007 19:42:44 +0000</pubDate>
		<guid isPermaLink="false">http://leuksman.com/log/2007/03/09/fun-with-mb_strlen/#comment-581</guid>
		<description>Hm, that's clever too. :)

Turns out it's actually slower than my count_chars() method, though, on article-size strings. (By about a factor of 4 for primarily-ASCII text, or three or two for 2-byte and 3-byte-per-char ranges.)

Your method is faster for short strings... but all are well under a millisecond on my 2.33 GHz Core Duo test box for long strings, and under a tenth of a ms for the short strings, so it perhaps gets into splitting hairs. ;)</description>
		<content:encoded><![CDATA[<p>Hm, that&#8217;s clever too. <img src='http://leuksman.com/log/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Turns out it&#8217;s actually slower than my count_chars() method, though, on article-size strings. (By about a factor of 4 for primarily-ASCII text, or three or two for 2-byte and 3-byte-per-char ranges.)</p>
<p>Your method is faster for short strings&#8230; but all are well under a millisecond on my 2.33 GHz Core Duo test box for long strings, and under a tenth of a ms for the short strings, so it perhaps gets into splitting hairs. <img src='http://leuksman.com/log/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JW</title>
		<link>http://leuksman.com/log/2007/03/09/fun-with-mb_strlen/#comment-574</link>
		<dc:creator>JW</dc:creator>
		<pubDate>Sun, 11 Mar 2007 03:13:10 +0000</pubDate>
		<guid isPermaLink="false">http://leuksman.com/log/2007/03/09/fun-with-mb_strlen/#comment-574</guid>
		<description>The usual hack to use strlen(utf8_decode($str)); and rely on anything non 8859-1 to be output as a single question mark.</description>
		<content:encoded><![CDATA[<p>The usual hack to use strlen(utf8_decode($str)); and rely on anything non 8859-1 to be output as a single question mark.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
