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

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

Issue 2548433002: Don't use [operator==] to refer to [==] in DartDoc. It doesn't work. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « sdk/lib/core/iterable.dart ('k') | no next file » | 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 * A sequence of characters. 8 * A sequence of characters.
9 * 9 *
10 * A string can be either single or multiline. Single line strings are 10 * A string can be either single or multiline. Single line strings are
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 * 180 *
181 * var clef = '\u{1D11E}'; 181 * var clef = '\u{1D11E}';
182 * clef.length; // 2 182 * clef.length; // 2
183 * clef.runes.length; // 1 183 * clef.runes.length; // 1
184 */ 184 */
185 int get length; 185 int get length;
186 186
187 /** 187 /**
188 * Returns a hash code derived from the code units of the string. 188 * Returns a hash code derived from the code units of the string.
189 * 189 *
190 * This is compatible with [operator==]. Strings with the same sequence 190 * This is compatible with [==]. Strings with the same sequence
191 * of code units have the same hash code. 191 * of code units have the same hash code.
192 */ 192 */
193 int get hashCode; 193 int get hashCode;
194 194
195 /** 195 /**
196 * Returns true if other is a `String` with the same sequence of code units. 196 * Returns true if other is a `String` with the same sequence of code units.
197 * 197 *
198 * This method compares each individual code unit of the strings. 198 * This method compares each individual code unit of the strings.
199 * It does not check for Unicode equivalence. 199 * It does not check for Unicode equivalence.
200 * For example, both the following strings represent the string 'Amélie', 200 * For example, both the following strings represent the string 'Amélie',
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 _position = position - 1; 783 _position = position - 1;
784 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit); 784 _currentCodePoint = _combineSurrogatePair(prevCodeUnit, codeUnit);
785 return true; 785 return true;
786 } 786 }
787 } 787 }
788 _position = position; 788 _position = position;
789 _currentCodePoint = codeUnit; 789 _currentCodePoint = codeUnit;
790 return true; 790 return true;
791 } 791 }
792 } 792 }
OLDNEW
« no previous file with comments | « sdk/lib/core/iterable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698