OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 services.src.correction.strings; | 5 library services.src.correction.strings; |
6 | 6 |
7 | 7 |
8 /** | 8 /** |
9 * "$" | 9 * "$" |
10 */ | 10 */ |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 return str; | 101 return str; |
102 } | 102 } |
103 | 103 |
104 String repeat(String s, int n) { | 104 String repeat(String s, int n) { |
105 StringBuffer sb = new StringBuffer(); | 105 StringBuffer sb = new StringBuffer(); |
106 for (int i = 0; i < n; i++) { | 106 for (int i = 0; i < n; i++) { |
107 sb.write(s); | 107 sb.write(s); |
108 } | 108 } |
109 return sb.toString(); | 109 return sb.toString(); |
110 } | 110 } |
OLD | NEW |