<?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: dojo.string.beginsWith()</title>
	<atom:link href="http://jensarps.de/2009/10/27/dojo-string-beginswith/feed/" rel="self" type="application/rss+xml" />
	<link>http://jensarps.de/2009/10/27/dojo-string-beginswith/</link>
	<description></description>
	<lastBuildDate>Mon, 12 Dec 2011 03:01:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jens Arps</title>
		<link>http://jensarps.de/2009/10/27/dojo-string-beginswith/comment-page-1/#comment-132</link>
		<dc:creator>Jens Arps</dc:creator>
		<pubDate>Thu, 29 Oct 2009 19:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://jensarps.de/?p=78#comment-132</guid>
		<description>@Fabián: because it would be awfully slow. Regular Expressions are heavy-duty jobs and take lots of time and computing power – Javascript is no exception to this. And, the use of RegExp would grant us no benefit here compared to String.substr().</description>
		<content:encoded><![CDATA[<p>@Fabián: because it would be awfully slow. Regular Expressions are heavy-duty jobs and take lots of time and computing power – Javascript is no exception to this. And, the use of RegExp would grant us no benefit here compared to String.substr().</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabián "wildman" Mandelbaum</title>
		<link>http://jensarps.de/2009/10/27/dojo-string-beginswith/comment-page-1/#comment-130</link>
		<dc:creator>Fabián "wildman" Mandelbaum</dc:creator>
		<pubDate>Thu, 29 Oct 2009 16:18:38 +0000</pubDate>
		<guid isPermaLink="false">http://jensarps.de/?p=78#comment-130</guid>
		<description>Why not just using:

function endsWith(string, suffix) { return new RegExp(suffix+&quot;$&quot;).test(string); }

and:

function startsWith(string, prefix) { return new RegExp(&quot;^&quot;+prefix).test(string); }

to test if a string ends or begins with a certain other string?</description>
		<content:encoded><![CDATA[<p>Why not just using:</p>
<p>function endsWith(string, suffix) { return new RegExp(suffix+&#8221;$&#8221;).test(string); }</p>
<p>and:</p>
<p>function startsWith(string, prefix) { return new RegExp(&#8220;^&#8221;+prefix).test(string); }</p>
<p>to test if a string ends or begins with a certain other string?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peter higgins</title>
		<link>http://jensarps.de/2009/10/27/dojo-string-beginswith/comment-page-1/#comment-123</link>
		<dc:creator>peter higgins</dc:creator>
		<pubDate>Tue, 27 Oct 2009 20:52:18 +0000</pubDate>
		<guid isPermaLink="false">http://jensarps.de/?p=78#comment-123</guid>
		<description>You can then, of course, use that method to augment the String prototype too:

String.prototype.beginsWith = function(term){
     return dojo.string.beginsWith(this, term);
}

fun.</description>
		<content:encoded><![CDATA[<p>You can then, of course, use that method to augment the String prototype too:</p>
<p>String.prototype.beginsWith = function(term){<br />
     return dojo.string.beginsWith(this, term);<br />
}</p>
<p>fun.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

