@@ -65,16 +65,16 @@ module JS {
65
65
return string . sub ( this , ( begin || 0 ) + 1 , ( begin || 0 ) + ( len || string . len ( this ) ) ) ;
66
66
}
67
67
68
- public static substring ( this : string , begin ?: number , end ?: number ) : string {
69
- if ( begin == end && end == null || begin === end ) {
68
+ public static substring ( this : string , begin ?: number , _end ?: number ) : string {
69
+ if ( begin == _end && _end == null || begin === _end ) {
70
70
return '' ;
71
71
}
72
72
73
- return string . sub ( this , ( begin || 0 ) + 1 , end != undefined ? end : null ) ;
73
+ return string . sub ( this , ( begin || 0 ) + 1 , _end != undefined ? _end : null ) ;
74
74
}
75
75
76
- public static slice ( this : string , start ?: number , end ?: number ) : string {
77
- return string . sub ( this , ( start || 0 ) + 1 , end != undefined ? end : null ) ;
76
+ public static slice ( this : string , start ?: number , _end ?: number ) : string {
77
+ return string . sub ( this , ( start || 0 ) + 1 , _end != undefined ? _end : null ) ;
78
78
}
79
79
80
80
public static indexOf ( this : string , pattern : string , begin ?: number ) : number {
@@ -175,9 +175,9 @@ module JS {
175
175
return new String ( this . constString . substr ( begin , len ) ) ;
176
176
}
177
177
178
- public substring ( begin ?: number , end ?: number ) : String {
178
+ public substring ( begin ?: number , _end ?: number ) : String {
179
179
// tslint:disable-next-line:no-construct
180
- return new String ( this . constString . substring ( begin , end ) ) ;
180
+ return new String ( this . constString . substring ( begin , _end ) ) ;
181
181
}
182
182
183
183
public indexOf ( pattern : string , begin ?: number ) : number {
@@ -188,9 +188,9 @@ module JS {
188
188
return this . constString . split ( separator ) ;
189
189
}
190
190
191
- public slice ( start ?: number , end ?: number ) : String {
191
+ public slice ( start ?: number , _end ?: number ) : String {
192
192
// tslint:disable-next-line:no-construct
193
- return new String ( this . constString . substring ( start , end ) ) ;
193
+ return new String ( this . constString . substring ( start , _end ) ) ;
194
194
}
195
195
196
196
public toLowerCase ( ) : String {
0 commit comments