Sha256: 812f8afa22f85cf16d46b94603a2e6085490d16ca9d9ef6f2896ae8a9d638988

Contents?: true

Size: 1.82 KB

Versions: 39

Compression:

Stored size: 1.82 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

sc_require('system/string');

SC.supplement(String.prototype, {

  /**
    @see SC.String.capitalizeEach
  */
  capitalizeEach: function() {
    return SC.String.capitalizeEach(this, arguments);
  },

  /**
    @see SC.String.titleize
  */
  titleize: function(str) {
    return SC.String.titleize(this, arguments);
  },

  /**
    @see SC.String.classify
  */
  classify: function(str) {
    return SC.String.classify(this, arguments);
  },

  /**
    @see SC.String.humanize
  */
  humanize: function(str) {
    return SC.String.humanize(this, arguments);
  },

  /**
    @see SC.String.escapeForRegExp
  */
  escapeForRegExp: function(str) {
    return SC.String.escapeForRegExp(this, arguments);
  },

  /**
    @see SC.String.removeDiacritics
  */
  removeDiacritics: function(str) {
    return SC.String.removeDiacritics(this, arguments);
  },

  /**
    @see SC.String.trim
  */
  trim: function(str) {
    return SC.String.trim(this, arguments);
  },

  /**
    @see SC.String.trimLeft
  */
  trimLeft: function (str) {
    return SC.String.trimLeft(this, arguments);
  },

  /**
    @see SC.String.trimRight
  */
  trimRight: function (str) {
    return SC.String.trimRight(this, arguments);
  },

  /**
    @see SC.String.pluralize
  */
  pluralize: function(str) {
    return SC.String.pluralize(this, arguments);
  },

  /**
    @see SC.String.singularize
  */
  singularize: function(str) {
    return SC.String.singularize(this, arguments);
  }

});

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js