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

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

Issue 10910253: Change RegExp constructor to insist on proper named optional parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update co19/dart2js status. 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 | « lib/compiler/implementation/lib/string_helper.dart ('k') | pkg/dartdoc/inline_parser.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) 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 * [Match] contains methods to manipulate a regular expression match. 6 * [Match] contains methods to manipulate a regular expression match.
7 * 7 *
8 * Iterables of [Match] objects are returned from [RegExp] matching methods. 8 * Iterables of [Match] objects are returned from [RegExp] matching methods.
9 * 9 *
10 * The following example finds all matches of a [RegExp] in a [String] 10 * The following example finds all matches of a [RegExp] in a [String]
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * RegExp exp = const RegExp(@"(\w+)"); 82 * RegExp exp = const RegExp(@"(\w+)");
83 * String str = "Parse my string"; 83 * String str = "Parse my string";
84 * Iterable<Match> matches = exp.allMatches(str); 84 * Iterable<Match> matches = exp.allMatches(str);
85 */ 85 */
86 interface RegExp extends Pattern default JSSyntaxRegExp { 86 interface RegExp extends Pattern default JSSyntaxRegExp {
87 87
88 /** 88 /**
89 * Constructs a regular expression. The default implementation of a 89 * Constructs a regular expression. The default implementation of a
90 * [RegExp] sets [multiLine] and [ignoreCase] to false. 90 * [RegExp] sets [multiLine] and [ignoreCase] to false.
91 */ 91 */
92 const RegExp(String pattern, [bool multiLine, bool ignoreCase]); 92 const RegExp(String pattern, {bool multiLine, bool ignoreCase});
93 93
94 /** 94 /**
95 * Searches for the first match of the regular expression 95 * Searches for the first match of the regular expression
96 * in the string [str]. Returns `null` if there is no match. 96 * in the string [str]. Returns `null` if there is no match.
97 */ 97 */
98 Match firstMatch(String str); 98 Match firstMatch(String str);
99 99
100 /** 100 /**
101 * Returns an iterable on the matches of the regular 101 * Returns an iterable on the matches of the regular
102 * expression in [str]. 102 * expression in [str].
(...skipping 19 matching lines...) Expand all
122 /** 122 /**
123 * Whether this regular expression matches multiple lines. 123 * Whether this regular expression matches multiple lines.
124 */ 124 */
125 bool get multiLine; 125 bool get multiLine;
126 126
127 /** 127 /**
128 * Whether this regular expression is case insensitive. 128 * Whether this regular expression is case insensitive.
129 */ 129 */
130 bool get ignoreCase; 130 bool get ignoreCase;
131 } 131 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/string_helper.dart ('k') | pkg/dartdoc/inline_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698