Lines Matching refs:c
17 String.prototype.ltrim = function(c) { argument
18 if (isString(c)) c=c.split("");
19 if (isArray(c) || isUndefined(c)) {
20 c = isEmpty(c)?"\\s":RegExp.escape(c);
21 c = new RegExp("^(?:"+c+")+", "g");
22 return this.replace(c, "");
33 String.prototype.rtrim = function(c) { argument
34 if (isString(c)) c=c.split("");
35 if (isArray(c) || isUndefined(c)) {
36 c = isEmpty(c)?"\\s":RegExp.escape(c);
37 c = new RegExp("(?:"+c+")+$", "g");
38 return this.replace(c, "");
49 String.prototype.trim = function(c) { argument
50 if (isString(c)) c=c.split("");
51 if (isArray(c) || isUndefined(c)) {
52 c = isEmpty(c)?"\\s":RegExp.escape(c);
53 c = new RegExp("^(?:"+c+")+|(?:"+c+")+$", "g");
54 return this.replace(c, "");
90 String.prototype.padding = function(n, c) { argument
94 if (isUndefined(c)) c = " ";
95 var pad = String(c).charAt(0).repeat(Math.abs(n) - this.length);
106 String.prototype.padLeft = function(n, c) { argument
107 return this.padding(-Math.abs(n), c);
117 String.prototype.padRight = function(n, c) { argument
118 return this.padding(Math.abs(n), c);