Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: sdk/lib/core/string.dart

Issue 12441003: Rename String.concat to operator+. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool get isEmpty; 128 bool get isEmpty;
129 129
130 /** 130 /**
131 * Creates a new string by concatenating this string with [other]. 131 * Creates a new string by concatenating this string with [other].
132 * 132 *
133 * A sequence of strings can be concatenated by using [Iterable.join]: 133 * A sequence of strings can be concatenated by using [Iterable.join]:
134 * 134 *
135 * var strings = ['foo', 'bar', 'geez']; 135 * var strings = ['foo', 'bar', 'geez'];
136 * var concatenated = strings.join(); 136 * var concatenated = strings.join();
137 */ 137 */
138 String operator +(String other);
139
140 /**
141 * *Deprecated* Use [operator+] instead.
142 */
floitsch 2013/03/08 23:46:48 use @deprecated.
138 String concat(String other); 143 String concat(String other);
139 144
140 /** 145 /**
141 * Returns a slice of this string from [startIndex] to [endIndex]. 146 * Returns a slice of this string from [startIndex] to [endIndex].
142 * 147 *
143 * If [startIndex] is omitted, it defaults to the start of the string. 148 * If [startIndex] is omitted, it defaults to the start of the string.
144 * 149 *
145 * If [endIndex] is omitted, it defaults to the end of the string. 150 * If [endIndex] is omitted, it defaults to the end of the string.
146 * 151 *
147 * If either index is negative, it's taken as a negative index from the 152 * If either index is negative, it's taken as a negative index from the
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 _position = position - 1; 455 _position = position - 1;
451 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit); 456 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit);
452 return true; 457 return true;
453 } 458 }
454 } 459 }
455 _position = position; 460 _position = position;
456 _currentCodePoint = codeUnit; 461 _currentCodePoint = codeUnit;
457 return true; 462 return true;
458 } 463 }
459 } 464 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698