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

Unified Diff: sdk/lib/core/regexp.dart

Issue 460613002: Add optional start index to Pattern.allMatches. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add extra test. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/core/regexp.dart
diff --git a/sdk/lib/core/regexp.dart b/sdk/lib/core/regexp.dart
index b1e7f4b9134d6f92f880b96b5d40e43dc44caea8..049ff9744770f636a544b185aa6187c873a4bdc6 100644
--- a/sdk/lib/core/regexp.dart
+++ b/sdk/lib/core/regexp.dart
@@ -135,8 +135,10 @@ abstract class RegExp implements Pattern {
/**
* Returns an iterable of the matches of the regular expression on [input].
+ *
+ * If [start] is provided, only start looking for matches at `start`.
*/
- Iterable<Match> allMatches(String input);
+ Iterable<Match> allMatches(String input, [int start = 0]);
/**
* Returns whether the regular expression has a match in the string [input].

Powered by Google App Engine
This is Rietveld 408576698