| OLD | NEW |
| 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 result from searching within a string. | 8 * A result from searching within a string. |
| 9 * | 9 * |
| 10 * A Match or an [Iterable] of Match objects is returned from [Pattern] | 10 * A Match or an [Iterable] of Match objects is returned from [Pattern] |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 * Returns whether the regular expression has a match in the string [input]. | 142 * Returns whether the regular expression has a match in the string [input]. |
| 143 */ | 143 */ |
| 144 bool hasMatch(String input); | 144 bool hasMatch(String input); |
| 145 | 145 |
| 146 /** | 146 /** |
| 147 * Returns the first substring match of this regular expression in [input]. | 147 * Returns the first substring match of this regular expression in [input]. |
| 148 */ | 148 */ |
| 149 String stringMatch(String input); | 149 String stringMatch(String input); |
| 150 | 150 |
| 151 /** | 151 /** |
| 152 * The pattern of this regular expression. | 152 * The source regular expression string used to create this `RegExp`. |
| 153 */ | 153 */ |
| 154 String get pattern; | 154 String get pattern; |
| 155 | 155 |
| 156 /** | 156 /** |
| 157 * Whether this regular expression matches multiple lines. | 157 * Whether this regular expression matches multiple lines. |
| 158 * | 158 * |
| 159 * If the regexp does match multiple lines, the "^" and "$" characters | 159 * If the regexp does match multiple lines, the "^" and "$" characters |
| 160 * match the beginning and end of lines. If not, the character match the | 160 * match the beginning and end of lines. If not, the character match the |
| 161 * beginning and end of the input. | 161 * beginning and end of the input. |
| 162 */ | 162 */ |
| 163 bool get isMultiLine; | 163 bool get isMultiLine; |
| 164 | 164 |
| 165 /** | 165 /** |
| 166 * Whether this regular expression is case sensitive. | 166 * Whether this regular expression is case sensitive. |
| 167 * | 167 * |
| 168 * If the regular expression is not case sensitive, it will match an input | 168 * If the regular expression is not case sensitive, it will match an input |
| 169 * letter with a pattern letter even if the two letters are different case | 169 * letter with a pattern letter even if the two letters are different case |
| 170 * versions of the same letter. | 170 * versions of the same letter. |
| 171 */ | 171 */ |
| 172 bool get isCaseSensitive; | 172 bool get isCaseSensitive; |
| 173 } | 173 } |
| OLD | NEW |