Chromium Code Reviews| OLD | NEW |
|---|---|
| 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, Hashable, Pattern default Strings { | 11 interface String extends Comparable, Hashable, Pattern default |
|
Mads Ager (google)
2012/08/27 10:52:00
I think we should reformat this somehow. I don't f
Anders Johnsen
2012/08/27 12:12:42
Like so?
| |
| 12 StringImplementation { | |
| 12 /** | 13 /** |
| 13 * Allocates a new String for the specified [charCodes]. | 14 * Allocates a new String for the specified [charCodes]. |
| 14 */ | 15 */ |
| 15 String.fromCharCodes(List<int> charCodes); | 16 String.fromCharCodes(List<int> charCodes); |
| 16 | 17 |
| 17 /** | 18 /** |
| 18 * Gets the character (as [String]) at the given [index]. | 19 * Gets the character (as [String]) at the given [index]. |
| 19 */ | 20 */ |
| 20 String operator [](int index); | 21 String operator [](int index); |
| 21 | 22 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 * where all characters are made lower case. Returns [:this:] otherwise. | 122 * where all characters are made lower case. Returns [:this:] otherwise. |
| 122 */ | 123 */ |
| 123 String toLowerCase(); | 124 String toLowerCase(); |
| 124 | 125 |
| 125 /** | 126 /** |
| 126 * If this string is not already all uper case, returns a new string | 127 * If this string is not already all uper case, returns a new string |
| 127 * where all characters are made upper case. Returns [:this:] otherwise. | 128 * where all characters are made upper case. Returns [:this:] otherwise. |
| 128 */ | 129 */ |
| 129 String toUpperCase(); | 130 String toUpperCase(); |
| 130 } | 131 } |
| OLD | NEW |