1 // ==========================================================================
  2 // Project:   SproutCore Costello - Property Observing Library
  3 // Copyright: ©2006-2011 Strobe Inc. and contributors.
  4 //            Portions ©2008-2011 Apple Inc. All rights reserved.
  5 // License:   Licensed under MIT license (see license.js)
  6 // ==========================================================================
  7 
  8 sc_require('system/string');
  9 
 10 /** 
 11   @namespace
 12   Extends String by adding a few helpful methods.
 13 */
 14 SC.mixin(String.prototype,
 15 /** @scope String.prototype */ {
 16 
 17   /**
 18     @see SC.String.fmt
 19   */
 20   fmt: function() {
 21     return SC.String.fmt(this, arguments);
 22   },
 23 
 24   /**
 25     @see SC.String.w
 26   */
 27   w: function() {
 28     return SC.String.w(this);
 29   }
 30 
 31 });
 32