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.6.0.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.beta.3-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.beta.3 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.beta.2-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.beta.2 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.6.0.beta.1 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.5.0-java lib/frameworks/sproutcore/frameworks/foundation/ext/string.js
sproutcore-1.5.0 lib/frameworks/sproutcore/frameworks/foundation/ext/string.js