| 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 */ |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 * Returns whether this string is empty. | 63 * Returns whether this string is empty. |
| 64 */ | 64 */ |
| 65 bool isEmpty(); | 65 bool isEmpty(); |
| 66 | 66 |
| 67 /** | 67 /** |
| 68 * Creates a new string by concatenating this string with [other]. | 68 * Creates a new string by concatenating this string with [other]. |
| 69 */ | 69 */ |
| 70 String concat(String other); | 70 String concat(String other); |
| 71 | 71 |
| 72 /** | 72 /** |
| 73 * Converts [other] to a string and creates a new string by | |
| 74 * concatenating this string with the converted [other]. | |
| 75 */ | |
| 76 String operator +(Object other); | |
| 77 | |
| 78 /** | |
| 79 * Returns a substring of this string in the given range. | 73 * Returns a substring of this string in the given range. |
| 80 * [startIndex] is inclusive and [endIndex] is exclusive. | 74 * [startIndex] is inclusive and [endIndex] is exclusive. |
| 81 */ | 75 */ |
| 82 String substring(int startIndex, [int endIndex]); | 76 String substring(int startIndex, [int endIndex]); |
| 83 | 77 |
| 84 /** | 78 /** |
| 85 * Returns a new string where leading and trailing whitespaces of | 79 * Returns a new string where leading and trailing whitespaces of |
| 86 * this string have been removed, or returns this string if it does | 80 * this string have been removed, or returns this string if it does |
| 87 * not have leading and trailing whitespaces. | 81 * not have leading and trailing whitespaces. |
| 88 */ | 82 */ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 * where all characters are made lower case. Returns [:this:] otherwise. | 121 * where all characters are made lower case. Returns [:this:] otherwise. |
| 128 */ | 122 */ |
| 129 String toLowerCase(); | 123 String toLowerCase(); |
| 130 | 124 |
| 131 /** | 125 /** |
| 132 * If this string is not already all uper case, returns a new string | 126 * If this string is not already all uper case, returns a new string |
| 133 * where all characters are made upper case. Returns [:this:] otherwise. | 127 * where all characters are made upper case. Returns [:this:] otherwise. |
| 134 */ | 128 */ |
| 135 String toUpperCase(); | 129 String toUpperCase(); |
| 136 } | 130 } |
| OLD | NEW |