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

Side by Side Diff: sdk/lib/core/regexp.dart

Issue 250573002: Change the badly named RegExp.pattern to return the original source. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update date. Created 6 years, 8 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 | « sdk/lib/_internal/lib/regexp_helper.dart ('k') | tests/corelib/reg_exp_pattern_test.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) 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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/lib/regexp_helper.dart ('k') | tests/corelib/reg_exp_pattern_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698