OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of _js_helper; | 5 part of _js_helper; |
6 | 6 |
7 class StringMatch implements Match { | 7 class StringMatch implements Match { |
8 const StringMatch(int this.start, | 8 const StringMatch(int this.start, |
9 String this.input, | 9 String this.input, |
10 String this.pattern); | 10 String this.pattern); |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } else { | 206 } else { |
207 checkNull(from); | 207 checkNull(from); |
208 // TODO(floitsch): implement generic String.replace (with patterns). | 208 // TODO(floitsch): implement generic String.replace (with patterns). |
209 throw "String.replace(Pattern) UNIMPLEMENTED"; | 209 throw "String.replace(Pattern) UNIMPLEMENTED"; |
210 } | 210 } |
211 } | 211 } |
212 | 212 |
213 stringJoinUnchecked(array, separator) { | 213 stringJoinUnchecked(array, separator) { |
214 return JS('String', r'#.join(#)', array, separator); | 214 return JS('String', r'#.join(#)', array, separator); |
215 } | 215 } |
OLD | NEW |