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

Unified Diff: runtime/lib/regexp_patch.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « runtime/lib/regexp.cc ('k') | runtime/lib/string_base.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/regexp_patch.dart
diff --git a/runtime/lib/regexp_patch.dart b/runtime/lib/regexp_patch.dart
index 6a921fa9a0769a42d7ca33f37e1e973289b2c4d2..2eab296397e89942a61bd75334f9deb5ecdc7692 100644
--- a/runtime/lib/regexp_patch.dart
+++ b/runtime/lib/regexp_patch.dart
@@ -5,10 +5,10 @@
patch class RegExp {
/* patch */ factory RegExp(String pattern,
{bool multiLine: false,
- bool ignoreCase: false}) {
+ bool caseSensitive: true}) {
return new _JSSyntaxRegExp(pattern,
multiLine: multiLine,
- ignoreCase: ignoreCase);
+ caseSensitive: caseSensitive);
}
}
@@ -44,7 +44,7 @@ class _JSRegExpMatch implements Match {
}
List<String> groups(List<int> groupsSpec) {
- var groupsList = new List<String>(groupsSpec.length);
+ var groupsList = new List<String>.fixedLength(groupsSpec.length);
for (int i = 0; i < groupsSpec.length; i++) {
groupsList[i] = group(groupsSpec[i]);
}
@@ -66,7 +66,7 @@ class _JSSyntaxRegExp implements RegExp {
factory _JSSyntaxRegExp(
String pattern,
{bool multiLine: false,
- bool ignoreCase: false}) native "JSSyntaxRegExp_factory";
+ bool caseSensitive: true}) native "JSSyntaxRegExp_factory";
Match firstMatch(String str) {
List match = _ExecuteMatch(str, 0);
@@ -114,9 +114,9 @@ class _JSSyntaxRegExp implements RegExp {
String get pattern native "JSSyntaxRegExp_getPattern";
- bool get multiLine native "JSSyntaxRegExp_multiLine";
+ bool get isMultiLine native "JSSyntaxRegExp_getIsMultiLine";
- bool get ignoreCase native "JSSyntaxRegExp_ignoreCase";
+ bool get isCaseSensitive native "JSSyntaxRegExp_getIsCaseSensitive";
int get _groupCount native "JSSyntaxRegExp_getGroupCount";
« no previous file with comments | « runtime/lib/regexp.cc ('k') | runtime/lib/string_base.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698