<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: capitalize code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 01:51:52 GMT</pubDate>
    <description>DZone Snippets: capitalize code</description>
    <item>
      <title>Ruby Title Case</title>
      <link>http://snippets.dzone.com/posts/show/4702</link>
      <description>Capitalize all words in a string with the briefest of snippets!&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;'some string here'.gsub(/\b\w/){$&amp;.upcase}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 27 Oct 2007 00:41:10 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4702</guid>
      <author>eliazar (eliazar parra)</author>
    </item>
    <item>
      <title>Capitalize //JavaScript Function</title>
      <link>http://snippets.dzone.com/posts/show/899</link>
      <description>&lt;a href="http://jsfromhell.com/string/capitalize"&gt;&lt;br /&gt;&lt;br /&gt;[UPDATED CODE AND HELP CAN BE FOUND HERE]&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;usage:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;document.write(s = "jonas Raoni a SOARES silva", " =&gt; ", s.capitalize());&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;code:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;//+ Jonas Raoni Soares Silva&lt;br /&gt;//@ http://jsfromhell.com/string/capitalize [v1.0]&lt;br /&gt;&lt;br /&gt;String.prototype.capitalize = function(){ //v1.0&lt;br /&gt;    return this.replace(/\w+/g, function(a){&lt;br /&gt;        return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase();&lt;br /&gt;    });&lt;br /&gt;};&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 21 Nov 2005 05:36:49 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/899</guid>
      <author>jonasraoni (Jonas Raoni Soares Silva)</author>
    </item>
  </channel>
</rss>
