<?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: Another JavaScript function for trim a string from white space</title>
	<atom:link href="http://ntt.cc/2008/01/23/another-javascript-function-trim-white-space.html/feed" rel="self" type="application/rss+xml" />
	<link>http://ntt.cc/2008/01/23/another-javascript-function-trim-white-space.html</link>
	<description>Flex,Flash,Ajax and Freebie Resource for Developers and Designers</description>
	<lastBuildDate>Tue, 16 Mar 2010 13:56:15 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gaurav Singh</title>
		<link>http://ntt.cc/2008/01/23/another-javascript-function-trim-white-space.html/comment-page-1#comment-1865</link>
		<dc:creator>Gaurav Singh</dc:creator>
		<pubDate>Sun, 07 Sep 2008 14:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://ntt.cc/2008/01/23/another-javascript-function-trim-string-from-white-space.html#comment-1865</guid>
		<description>Dear Sir
I want to Know how can i find Space in String in VB Script ASP</description>
		<content:encoded><![CDATA[<p>Dear Sir<br />
I want to Know how can i find Space in String in VB Script ASP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 10+ Useful JavaScript Regular Expression Functions to improve your web applications efficiency - Ntt.cc</title>
		<link>http://ntt.cc/2008/01/23/another-javascript-function-trim-white-space.html/comment-page-1#comment-1103</link>
		<dc:creator>10+ Useful JavaScript Regular Expression Functions to improve your web applications efficiency - Ntt.cc</dc:creator>
		<pubDate>Sat, 10 May 2008 05:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://ntt.cc/2008/01/23/another-javascript-function-trim-string-from-white-space.html#comment-1103</guid>
		<description>[...] a previous post trim a string from white space by JavaScript function ( or Another JavaScript function for trim a string from white space ) and JavaScript function-Splits the string by given separator and returns an array with trimmed [...]</description>
		<content:encoded><![CDATA[<p>[...] a previous post trim a string from white space by JavaScript function ( or Another JavaScript function for trim a string from white space ) and JavaScript function-Splits the string by given separator and returns an array with trimmed [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://ntt.cc/2008/01/23/another-javascript-function-trim-white-space.html/comment-page-1#comment-910</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 14 Apr 2008 16:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://ntt.cc/2008/01/23/another-javascript-function-trim-string-from-white-space.html#comment-910</guid>
		<description>Your blog software messed up the code. The second while loop uses the postfix decrement operator, and the quotes should be either the single ASCII quote or the double ASCII quote.</description>
		<content:encoded><![CDATA[<p>Your blog software messed up the code. The second while loop uses the postfix decrement operator, and the quotes should be either the single ASCII quote or the double ASCII quote.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://ntt.cc/2008/01/23/another-javascript-function-trim-white-space.html/comment-page-1#comment-909</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 14 Apr 2008 16:18:58 +0000</pubDate>
		<guid isPermaLink="false">http://ntt.cc/2008/01/23/another-javascript-function-trim-string-from-white-space.html#comment-909</guid>
		<description>/**
 * Returns a copy of string without leading and trailing whitespace.
 * Whitespace is defined as {char c &#124; c &lt;= &#039; &#039;}.
 *
 * Note: We avoid regular expressions in implementation to support older user agents.
 */
function trim(string) {

    /* Lookup the LENGTH of string. */
    var LENGTH = string.length;

    /* Find the first character that is not whitespace. */
    var beginIndex = 0;
    while (beginIndex != LENGTH &amp;&amp; string.charAt(beginIndex) &lt;= &#039; &#039;) {
        beginIndex++;
    }

    /* If all characters are whitespace then return the empty String. */
    if (beginIndex == LENGTH) {return &quot;&quot;;}

    /* Find the last character that is not whitespace. */
    var endIndex = LENGTH;
    while (endIndex != beginIndex &amp;&amp; string.charAt(endIndex - 1) &lt;= &#039; &#039;) {
        endIndex--;
    }

    /*
     * If no leading or trailing whitespace found then return the string,
     * otherwise return the substring without leading and trailing whitespace.
     */
    return ((beginIndex == 0) &amp;&amp; (endIndex == LENGTH)) ?
        string : string.substring(beginIndex, endIndex);
}</description>
		<content:encoded><![CDATA[<p>/**<br />
 * Returns a copy of string without leading and trailing whitespace.<br />
 * Whitespace is defined as {char c | c &lt;= &#8216; &#8216;}.<br />
 *<br />
 * Note: We avoid regular expressions in implementation to support older user agents.<br />
 */<br />
function trim(string) {</p>
<p>    /* Lookup the LENGTH of string. */<br />
    var LENGTH = string.length;</p>
<p>    /* Find the first character that is not whitespace. */<br />
    var beginIndex = 0;<br />
    while (beginIndex != LENGTH &amp;&amp; string.charAt(beginIndex) &lt;= &#8216; &#8216;) {<br />
        beginIndex++;<br />
    }</p>
<p>    /* If all characters are whitespace then return the empty String. */<br />
    if (beginIndex == LENGTH) {return &#8220;&#8221;;}</p>
<p>    /* Find the last character that is not whitespace. */<br />
    var endIndex = LENGTH;<br />
    while (endIndex != beginIndex &amp;&amp; string.charAt(endIndex &#8211; 1) &lt;= &#8216; &#8216;) {<br />
        endIndex&#8211;;<br />
    }</p>
<p>    /*<br />
     * If no leading or trailing whitespace found then return the string,<br />
     * otherwise return the substring without leading and trailing whitespace.<br />
     */<br />
    return ((beginIndex == 0) &amp;&amp; (endIndex == LENGTH)) ?<br />
        string : string.substring(beginIndex, endIndex);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JavaScript function-Splits the string by given separator and returns an array with trimmed items - Ntt.cc</title>
		<link>http://ntt.cc/2008/01/23/another-javascript-function-trim-white-space.html/comment-page-1#comment-83</link>
		<dc:creator>JavaScript function-Splits the string by given separator and returns an array with trimmed items - Ntt.cc</dc:creator>
		<pubDate>Thu, 31 Jan 2008 15:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://ntt.cc/2008/01/23/another-javascript-function-trim-string-from-white-space.html#comment-83</guid>
		<description>[...] This extension splits the string by given separator and returns an array with trimmed&#160; items. It uses the trim() extension at trim a string from white space by JavaScript function or Another JavaScript function for trim a string from white space. [...]</description>
		<content:encoded><![CDATA[<p>[...] This extension splits the string by given separator and returns an array with trimmed&nbsp; items. It uses the trim() extension at trim a string from white space by JavaScript function or Another JavaScript function for trim a string from white space. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
