Here you can find the source of removeEndLine()
/**/* w w w. j a va 2 s . c o m*/ * Trimming for strings. */ String.prototype.removeEndLine = function() { var tmp = ""; for(var i = 0, length = this.length; i < length; i++) { var c = this.charAt(i); if(c != "\n" && c != "\r") { tmp += c; } } return tmp; }
String.prototype.removeChars = function () { varReturnStr = "" ; for ( var inx = 0 ; inx < this.length ; inx++ ) { if ( this.substring( inx, inx+1 ) != "-") varReturnStr = varReturnStr + this.substring( inx, inx+1 ) ; return varReturnStr;
String.prototype.removeClasses = function(s) return this.replace(/style="[^"]*"|class="[^"]*"/gi, "");
String.prototype.removeComma = function() { return(this.replace(/,/g,''));
String.prototype.removeDiacritics = function() { var result = this.replace(/i/g, 'i') .replace(/?/, 'c'); return result;
String.prototype.removeDots = function() { return this.replace(/\./g, ''); };
String.prototype.removeFileExtension = function() var re = /(.*)\.[^.]+$/; return re.test(this);
String.prototype.removeFromList=function(c){ var arr=this.split(c), i=1; for(;i<arguments.length;i++) delete arr[arguments[i]-1]; return arr.filter(function(v){return v!==undefined}).join(c);
String.prototype.removeMascara = function () { if (this.valueOf()) return this.valueOf().replace(/\.|\/|-|_/g, ""); return "";
String.prototype.removeMultipleWhitespaces = function () { return this.replace(/\s\s+/g, ' '); };