@@ -65,16 +65,16 @@ module JS {
6565 return string . sub ( this , ( begin || 0 ) + 1 , ( begin || 0 ) + ( len || string . len ( this ) ) ) ;
6666 }
6767
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 ) {
7070 return '' ;
7171 }
7272
73- return string . sub ( this , ( begin || 0 ) + 1 , end != undefined ? end : null ) ;
73+ return string . sub ( this , ( begin || 0 ) + 1 , _end != undefined ? _end : null ) ;
7474 }
7575
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 ) ;
7878 }
7979
8080 public static indexOf ( this : string , pattern : string , begin ?: number ) : number {
@@ -175,9 +175,9 @@ module JS {
175175 return new String ( this . constString . substr ( begin , len ) ) ;
176176 }
177177
178- public substring ( begin ?: number , end ?: number ) : String {
178+ public substring ( begin ?: number , _end ?: number ) : String {
179179 // tslint:disable-next-line:no-construct
180- return new String ( this . constString . substring ( begin , end ) ) ;
180+ return new String ( this . constString . substring ( begin , _end ) ) ;
181181 }
182182
183183 public indexOf ( pattern : string , begin ?: number ) : number {
@@ -188,9 +188,9 @@ module JS {
188188 return this . constString . split ( separator ) ;
189189 }
190190
191- public slice ( start ?: number , end ?: number ) : String {
191+ public slice ( start ?: number , _end ?: number ) : String {
192192 // tslint:disable-next-line:no-construct
193- return new String ( this . constString . substring ( start , end ) ) ;
193+ return new String ( this . constString . substring ( start , _end ) ) ;
194194 }
195195
196196 public toLowerCase ( ) : String {
0 commit comments