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

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: Address comments. 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
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/dartdoc.dart ('k') | sdk/lib/io/string_transformer.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
143 @deprecated
138 String concat(String other); 144 String concat(String other);
139 145
140 /** 146 /**
141 * Returns a slice of this string from [startIndex] to [endIndex]. 147 * Returns a slice of this string from [startIndex] to [endIndex].
142 * 148 *
143 * If [startIndex] is omitted, it defaults to the start of the string. 149 * If [startIndex] is omitted, it defaults to the start of the string.
144 * 150 *
145 * If [endIndex] is omitted, it defaults to the end of the string. 151 * If [endIndex] is omitted, it defaults to the end of the string.
146 * 152 *
147 * If either index is negative, it's taken as a negative index from the 153 * 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; 456 _position = position - 1;
451 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit); 457 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit);
452 return true; 458 return true;
453 } 459 }
454 } 460 }
455 _position = position; 461 _position = position;
456 _currentCodePoint = codeUnit; 462 _currentCodePoint = codeUnit;
457 return true; 463 return true;
458 } 464 }
459 } 465 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/dartdoc/lib/dartdoc.dart ('k') | sdk/lib/io/string_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698