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

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

Issue 15709018: Proof-of-concept matchPrefix on Pattern. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/pattern.dart
diff --git a/sdk/lib/core/pattern.dart b/sdk/lib/core/pattern.dart
index ac7815dd6ec1fc6245318a21d8ea9f973c4a582f..aa0f272e1d9bdc42850350301f7405b2969be916 100644
--- a/sdk/lib/core/pattern.dart
+++ b/sdk/lib/core/pattern.dart
@@ -6,4 +6,5 @@ part of dart.core;
abstract class Pattern {
Iterable<Match> allMatches(String str);
+ Match matchPrefix(String string, [int index = 0]);
floitsch 2013/06/11 12:45:24 matchAsPrefix? string.matchAsPrefix(otherString)
Lasse Reichstein Nielsen 2013/06/12 09:24:05 Done.
}

Powered by Google App Engine
This is Rietveld 408576698