| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475 |
1
1
1
1
1
1
1
100
100
1
4
4
4
4
4
4
4
4
4
6
6
4
4
4
4
5
5
4
4
4
5
5
5
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
4
6
4
4
4
4
4
4
4
4
4
4
4
4
6
1
1
1
1
| /* global Iterator */
"use strict";
var _createClass = require("babel-runtime/helpers/create-class")["default"];
var _classCallCheck = require("babel-runtime/helpers/class-call-check")["default"];
var _Symbol$iterator = require("babel-runtime/core-js/symbol/iterator")["default"];
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
Object.defineProperty(exports, "__esModule", {
value: true
});
/** @class MutableString
* @param {string} string */
var MutableString = (function () {
function MutableString(string) {
_classCallCheck(this, MutableString);
this.string = string;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt
* @returns {string}
* @memberof MutableString
* @instance
* @method charAt */
_createClass(MutableString, [{
key: "charAt",
value: function charAt() {
var _string;
return (_string = this.string).charAt.apply(_string, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt
* @returns {Number}
* @memberof MutableString
* @instance
* @method charCodeAt */
}, {
key: "charCodeAt",
value: function charCodeAt() {
var _string2;
return (_string2 = this.string).charCodeAt.apply(_string2, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method concat
* @returns {MutableString} */
}, {
key: "concat",
value: function concat() {
var _string3;
this.string = (_string3 = this.string).concat.apply(_string3, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
* @returns {boolean}
* @memberof MutableString
* @instance
* @method endsWith */
}, {
key: "endsWith",
value: function endsWith() {
var _string4;
return (_string4 = this.string).endsWith.apply(_string4, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
* @returns {boolean}
* @memberof MutableString
* @instance
* @method includes */
}, {
key: "includes",
value: function includes() {
var _string5;
return (_string5 = this.string).includes.apply(_string5, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf
* @returns {Number}
* @memberof MutableString
* @instance
* @method indexOf */
}, {
key: "indexOf",
value: function indexOf() {
var _string6;
return (_string6 = this.string).indexOf.apply(_string6, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf
* @returns {Number}
* @memberof MutableString
* @instance
* @method lastIndexOf */
}, {
key: "lastIndexOf",
value: function lastIndexOf() {
var _string7;
return (_string7 = this.string).lastIndexOf.apply(_string7, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare
* @returns {boolean}
* @memberof MutableString
* @instance
* @method localeCompare */
}, {
key: "localeCompare",
value: function localeCompare() {
var _string8;
return (_string8 = this.string).localeCompare.apply(_string8, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match
* @returns {Array|{index: number, input: string}}
* @memberof MutableString
* @instance
* @method match */
}, {
key: "match",
value: function match() {
var _string9;
return (_string9 = this.string).match.apply(_string9, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method normalize
* @returns {MutableString} */
}, {
key: "normalize",
value: function normalize() {
var _string10;
this.string = (_string10 = this.string).normalize.apply(_string10, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method repeat
* @returns {MutableString} */
}, {
key: "repeat",
value: function repeat() {
var _string11;
this.string = (_string11 = this.string).repeat.apply(_string11, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method replace
* @returns {MutableString} */
}, {
key: "replace",
value: function replace() {
var _string12;
this.string = (_string12 = this.string).replace.apply(_string12, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/search
* @returns {Number}
* @memberof MutableString
* @instance
* @method search */
}, {
key: "search",
value: function search() {
var _string13;
return (_string13 = this.string).search.apply(_string13, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method slice
* @returns {MutableString} */
}, {
key: "slice",
value: function slice() {
var _string14;
this.string = (_string14 = this.string).slice.apply(_string14, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split
* @returns {Array}
* @memberof MutableString
* @instance
* @method split */
}, {
key: "split",
value: function split() {
var _string15;
return (_string15 = this.string).split.apply(_string15, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
* @returns {boolean}
* @memberof MutableString
* @instance
* @method startsWith */
}, {
key: "startsWith",
value: function startsWith() {
var _string16;
return (_string16 = this.string).startsWith.apply(_string16, arguments);
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method substr
* @returns {MutableString} */
}, {
key: "substr",
value: function substr() {
var _string17;
this.string = (_string17 = this.string).substr.apply(_string17, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method substring
* @returns {MutableString} */
}, {
key: "substring",
value: function substring() {
var _string18;
this.string = (_string18 = this.string).substring.apply(_string18, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method toLocaleLowerCase
* @returns {MutableString} */
}, {
key: "toLocaleLowerCase",
value: function toLocaleLowerCase() {
var _string19;
this.string = (_string19 = this.string).toLocaleLowerCase.apply(_string19, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method toLocaleUpperCase
* @returns {MutableString} */
}, {
key: "toLocaleUpperCase",
value: function toLocaleUpperCase() {
var _string20;
this.string = (_string20 = this.string).toLocaleUpperCase.apply(_string20, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method toLowerCase
* @returns {MutableString} */
}, {
key: "toLowerCase",
value: function toLowerCase() {
var _string21;
this.string = (_string21 = this.string).toLowerCase.apply(_string21, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toString
* @returns {string}
* @memberof MutableString
* @instance
* @method toString */
}, {
key: "toString",
value: function toString() {
return this.string.toString();
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method toUpperCase
* @returns {MutableString} */
}, {
key: "toUpperCase",
value: function toUpperCase() {
var _string22;
this.string = (_string22 = this.string).toUpperCase.apply(_string22, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method trim
* @returns {MutableString} */
}, {
key: "trim",
value: function trim() {
var _string23;
this.string = (_string23 = this.string).trim.apply(_string23, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimLeft
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method trimLeft
* @returns {MutableString} */
}, {
key: "trimLeft",
value: function trimLeft() {
var _string24;
this.string = (_string24 = this.string).trimLeft.apply(_string24, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimRight
* @returns {MutableString}
* @memberof MutableString
* @instance
* @method trimRight
* @returns {MutableString} */
}, {
key: "trimRight",
value: function trimRight() {
var _string25;
this.string = (_string25 = this.string).trimRight.apply(_string25, arguments);
return this;
}
/**
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf
* @returns {string}
* @memberof MutableString
* @instance
* @method valueOf */
}, {
key: "valueOf",
value: function valueOf() {
return this.string.valueOf();
}
/**
* Symbol.iterator
*
* @method @@iterator
* @memberof MutableString
* @instance
* @returns {Iterator} */
}, {
key: _Symbol$iterator,
value: function value() {
return _getIterator(this.string);
}
}]);
return MutableString;
})();
exports["default"] = MutableString;
module.exports = exports["default"];
//# sourceMappingURL=MutableString.js.map |