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

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

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/core/options.dart ('k') | lib/core/string_buffer.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 /** 5 /**
6 * The String class represents character strings. Strings are 6 * The String class represents character strings. Strings are
7 * immutable. A string is represented by a list of 32-bit Unicode 7 * immutable. A string is represented by a list of 32-bit Unicode
8 * scalar character codes accessible through the [charCodeAt] or the 8 * scalar character codes accessible through the [charCodeAt] or the
9 * [charCodes] method. 9 * [charCodes] method.
10 */ 10 */
(...skipping 11 matching lines...) Expand all
22 String operator [](int index); 22 String operator [](int index);
23 23
24 /** 24 /**
25 * Gets the scalar character code at the given [index]. 25 * Gets the scalar character code at the given [index].
26 */ 26 */
27 int charCodeAt(int index); 27 int charCodeAt(int index);
28 28
29 /** 29 /**
30 * The length of the string. 30 * The length of the string.
31 */ 31 */
32 int get length(); 32 int get length;
33 33
34 /** 34 /**
35 * Returns whether the two strings are equal. This method compares 35 * Returns whether the two strings are equal. This method compares
36 * each individual scalar character codes of the strings. 36 * each individual scalar character codes of the strings.
37 */ 37 */
38 bool operator ==(String other); 38 bool operator ==(String other);
39 39
40 /** 40 /**
41 * Returns whether this string ends with [other]. 41 * Returns whether this string ends with [other].
42 */ 42 */
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 * where all characters are made lower case. Returns [:this:] otherwise. 123 * where all characters are made lower case. Returns [:this:] otherwise.
124 */ 124 */
125 String toLowerCase(); 125 String toLowerCase();
126 126
127 /** 127 /**
128 * If this string is not already all uper case, returns a new string 128 * If this string is not already all uper case, returns a new string
129 * where all characters are made upper case. Returns [:this:] otherwise. 129 * where all characters are made upper case. Returns [:this:] otherwise.
130 */ 130 */
131 String toUpperCase(); 131 String toUpperCase();
132 } 132 }
OLDNEW
« no previous file with comments | « lib/core/options.dart ('k') | lib/core/string_buffer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698