|
|
Add optional start index to Pattern.allMatches.
This is a non-breaking change.
Very few classes implement Pattern, so it's also a mostly non-intrusive change.
If we add startIndex to other methods, like replaceFirstMatch, we can use the extra parameter only for non-zero start indices without breaking existing code.
R=ajohnsen@google.com
Committed: https://code.google.com/p/dart/source/detail?r=39119
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+113 lines, -60 lines) |
Patch |
 |
M |
runtime/lib/regexp_patch.dart
|
View
|
|
2 chunks |
+24 lines, -24 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/string_patch.dart
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/lib/js_string.dart
|
View
|
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/lib/regexp_helper.dart
|
View
|
|
2 chunks |
+31 lines, -23 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/lib/string_helper.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/core/pattern.dart
|
View
|
|
2 chunks |
+7 lines, -1 line |
1 comment
|
Download
|
 |
M |
sdk/lib/core/regexp.dart
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
tests/corelib/string_pattern_test.dart
|
View
|
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/reg_exp_test.dart
|
View
|
1
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/pkg/route_hierarchical/lib/pattern.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|