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 library source_file; | 5 library source_file; |
6 | 6 |
7 import 'dart:math'; | 7 import 'dart:math'; |
8 import 'dart:convert' show UTF8; | 8 import 'dart:convert' show UTF8; |
9 | 9 |
10 /** | 10 /** |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 int get length => text.length; | 214 int get length => text.length; |
215 set length(int v) { } | 215 set length(int v) { } |
216 | 216 |
217 String slowText() => text; | 217 String slowText() => text; |
218 | 218 |
219 List<int> slowUtf8Bytes() => UTF8.encode(text); | 219 List<int> slowUtf8Bytes() => UTF8.encode(text); |
220 | 220 |
221 String slowSubstring(int start, int end) => text.substring(start, end); | 221 String slowSubstring(int start, int end) => text.substring(start, end); |
222 } | 222 } |
OLD | NEW |