1 // ==========================================================================
  2 // Project:   SproutCore - JavaScript Application Framework
  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 SC.supplement(String.prototype, {
 11 
 12   /**
 13     @see SC.String.capitalizeEach
 14   */
 15   capitalizeEach: function() {
 16     return SC.String.capitalizeEach(this, arguments);
 17   },
 18 
 19   /**
 20     @see SC.String.titleize
 21   */
 22   titleize: function(str) {
 23     return SC.String.titleize(this, arguments);
 24   },
 25 
 26   /**
 27     @see SC.String.classify
 28   */
 29   classify: function(str) {
 30     return SC.String.classify(this, arguments);
 31   },
 32 
 33   /**
 34     @see SC.String.humanize
 35   */
 36   humanize: function(str) {
 37     return SC.String.humanize(this, arguments);
 38   },
 39 
 40   /**
 41     @see SC.String.escapeForRegExp
 42   */
 43   escapeForRegExp: function(str) {
 44     return SC.String.escapeForRegExp(this, arguments);
 45   },
 46 
 47   /**
 48     @see SC.String.removeDiacritics
 49   */
 50   removeDiacritics: function(str) {
 51     return SC.String.removeDiacritics(this, arguments);
 52   },
 53 
 54   /**
 55     @see SC.String.trim
 56   */
 57   trim: function(str) {
 58     return SC.String.trim(this, arguments);
 59   },
 60 
 61   /**
 62     @see SC.String.trimLeft
 63   */
 64   trimLeft: function (str) {
 65     return SC.String.trimLeft(this, arguments);
 66   },
 67 
 68   /**
 69     @see SC.String.trimRight
 70   */
 71   trimRight: function (str) {
 72     return SC.String.trimRight(this, arguments);
 73   },
 74 
 75   /**
 76     @see SC.String.pluralize
 77   */
 78   pluralize: function(str) {
 79     return SC.String.pluralize(this, arguments);
 80   },
 81 
 82   /**
 83     @see SC.String.singularize
 84   */
 85   singularize: function(str) {
 86     return SC.String.singularize(this, arguments);
 87   }
 88 
 89 });