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

Side by Side Diff: runtime/lib/regexp_patch.dart

Issue 23566008: Rename Match.str to input. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 7 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 | « no previous file | sdk/lib/_collection_dev/iterable.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 patch class RegExp { 5 patch class RegExp {
6 /* patch */ factory RegExp(String pattern, 6 /* patch */ factory RegExp(String source,
7 {bool multiLine: false, 7 {bool multiLine: false,
8 bool caseSensitive: true}) { 8 bool caseSensitive: true}) {
9 return new _JSSyntaxRegExp(pattern, 9 return new _JSSyntaxRegExp(source,
10 multiLine: multiLine, 10 multiLine: multiLine,
11 caseSensitive: caseSensitive); 11 caseSensitive: caseSensitive);
12 } 12 }
13 } 13 }
14 14
15 class _JSRegExpMatch implements Match { 15 class _JSRegExpMatch implements Match {
16 _JSRegExpMatch(this._regexp, this.str, this._match); 16 _JSRegExpMatch(this._regexp, this.str, this._match);
17 17
18 int get start => _start(0); 18 int get start => _start(0);
19 int get end => _end(0); 19 int get end => _end(0);
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 var match = _re._ExecuteMatch(_str, nextIndex); 154 var match = _re._ExecuteMatch(_str, nextIndex);
155 if (match == null) { 155 if (match == null) {
156 _current = null; 156 _current = null;
157 _re = null; 157 _re = null;
158 return false; 158 return false;
159 } 159 }
160 _current = new _JSRegExpMatch(_re, _str, match); 160 _current = new _JSRegExpMatch(_re, _str, match);
161 return true; 161 return true;
162 } 162 }
163 } 163 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_collection_dev/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698