1 /**
  2  * @fileOverview This file contains extra property getters for 1.7+
  3  */
  4 
  5 /**#@+
  6  * @type String
  7  * @fieldOf String.prototype
  8  * @jsver 1.7+
  9  */
 10 /**
 11  * A quick shorthand getter to return the upper case version of a string
 12  * @name uc
 13  * @see String#toUpperCase
 14  */
 15 String.prototype.__defineGetter__( 'uc', String.prototype.toUpperCase );
 16 
 17 /**
 18  * A quick shorthand getter to return the lower case version of a string
 19  * @name lc
 20  * @see String#toLowerCase
 21  */
 22 String.prototype.__defineGetter__( 'lc', String.prototype.toLowerCase );
 23 
 24 /**
 25  * A quick shorthand getter to return the first letter upper case version of a string
 26  * @name ucfirst
 27  * @see String#toFirstUpperCase
 28  */
 29 String.prototype.__defineGetter__( 'ucfirst', String.prototype.toFirstUpperCase );
 30 
 31 /**
 32  * A quick shorthand getter to return the first letter upper case version of a string
 33  * @name lcfirst
 34  * @see String#toFirstLowerCase
 35  */
 36 String.prototype.__defineGetter__( 'lcfirst', String.prototype.toFirstLowerCase );
 37 /**#@-*/
 38 
 39