| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 common; | 5 part of common; |
| 6 | 6 |
| 7 // Misc benchmark-related utility functions. | 7 // Misc benchmark-related utility functions. |
| 8 | 8 |
| 9 class BenchUtil { | 9 class BenchUtil { |
| 10 static int get now { | 10 static int get now { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 for (Match match in new RegExp(pattern).allMatches(s)) { | 75 for (Match match in new RegExp(pattern).allMatches(s)) { |
| 76 sb.write(s.substring(pos, match.start)); | 76 sb.write(s.substring(pos, match.start)); |
| 77 sb.write(replacement(match)); | 77 sb.write(replacement(match)); |
| 78 pos = match.end; | 78 pos = match.end; |
| 79 } | 79 } |
| 80 sb.write(s.substring(pos)); | 80 sb.write(s.substring(pos)); |
| 81 | 81 |
| 82 return sb.toString(); | 82 return sb.toString(); |
| 83 } | 83 } |
| 84 } | 84 } |
| OLD | NEW |