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

Side by Side Diff: corelib/src/string.dart

Issue 10868105: Fix string unifizationf for dartc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Move string.dart to string_base.dart. 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 | « no previous file | runtime/lib/lib_impl_sources.gypi » ('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 */
11 interface String extends Comparable, 11 interface String
12 Hashable, 12 extends Comparable, Hashable, Pattern
13 Pattern 13 default StringImplementation {
14 default StringImplementation {
15 /** 14 /**
16 * Allocates a new String for the specified [charCodes]. 15 * Allocates a new String for the specified [charCodes].
17 */ 16 */
18 String.fromCharCodes(List<int> charCodes); 17 String.fromCharCodes(List<int> charCodes);
19 18
20 /** 19 /**
21 * Gets the character (as [String]) at the given [index]. 20 * Gets the character (as [String]) at the given [index].
22 */ 21 */
23 String operator [](int index); 22 String operator [](int index);
24 23
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 * where all characters are made lower case. Returns [:this:] otherwise. 123 * where all characters are made lower case. Returns [:this:] otherwise.
125 */ 124 */
126 String toLowerCase(); 125 String toLowerCase();
127 126
128 /** 127 /**
129 * 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
130 * where all characters are made upper case. Returns [:this:] otherwise. 129 * where all characters are made upper case. Returns [:this:] otherwise.
131 */ 130 */
132 String toUpperCase(); 131 String toUpperCase();
133 } 132 }
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/lib_impl_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698