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 dart.core; | 5 part of dart.core; |
6 | 6 |
7 /** | 7 /** |
8 * The String class represents sequences of characters. Strings are | 8 * The String class represents sequences of characters. Strings are |
9 * immutable. A string is represented by a sequence of Unicode UTF-16 | 9 * immutable. A string is represented by a sequence of Unicode UTF-16 |
10 * code units accessible through the [codeUnitAt] or the | 10 * code units accessible through the [codeUnitAt] or the |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 * Creates a new string by concatenating this string with [other]. | 132 * Creates a new string by concatenating this string with [other]. |
133 * | 133 * |
134 * A sequence of strings can be concatenated by using [Iterable.join]: | 134 * A sequence of strings can be concatenated by using [Iterable.join]: |
135 * | 135 * |
136 * var strings = ['foo', 'bar', 'geez']; | 136 * var strings = ['foo', 'bar', 'geez']; |
137 * var concatenated = strings.join(); | 137 * var concatenated = strings.join(); |
138 */ | 138 */ |
139 String operator +(String other); | 139 String operator +(String other); |
140 | 140 |
141 /** | 141 /** |
142 * *Deprecated* Use [operator+] instead. | |
143 */ | |
144 @deprecated | |
145 String concat(String other); | |
146 | |
147 /** | |
148 * Returns a slice of this string from [startIndex] to [endIndex]. | 142 * Returns a slice of this string from [startIndex] to [endIndex]. |
149 * | 143 * |
150 * If [startIndex] is omitted, it defaults to the start of the string. | 144 * If [startIndex] is omitted, it defaults to the start of the string. |
151 * | 145 * |
152 * If [endIndex] is omitted, it defaults to the end of the string. | 146 * If [endIndex] is omitted, it defaults to the end of the string. |
153 * | 147 * |
154 * If either index is negative, it's taken as a negative index from the | 148 * If either index is negative, it's taken as a negative index from the |
155 * end of the string. Their effective value is computed by adding the | 149 * end of the string. Their effective value is computed by adding the |
156 * negative value to the [length] of the string. | 150 * negative value to the [length] of the string. |
157 * | 151 * |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 _position = position - 1; | 455 _position = position - 1; |
462 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit); | 456 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit); |
463 return true; | 457 return true; |
464 } | 458 } |
465 } | 459 } |
466 _position = position; | 460 _position = position; |
467 _currentCodePoint = codeUnit; | 461 _currentCodePoint = codeUnit; |
468 return true; | 462 return true; |
469 } | 463 } |
470 } | 464 } |
OLD | NEW |