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

Issue 460613002: Add optional start index to Pattern.allMatches. (Closed)

Created:
6 years, 4 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, floitsch, srdjan
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add extra test. #

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

Messages

Total messages: 5 (0 generated)
Lasse Reichstein Nielsen
6 years, 4 months ago (2014-08-11 10:50:04 UTC) #1
Anders Johnsen
lgtm https://codereview.chromium.org/460613002/diff/1/tests/language/reg_exp_test.dart File tests/language/reg_exp_test.dart (right): https://codereview.chromium.org/460613002/diff/1/tests/language/reg_exp_test.dart#newcode24 tests/language/reg_exp_test.dart:24: // Check that allMatches works with optional start ...
6 years, 4 months ago (2014-08-11 11:57:02 UTC) #2
Lasse Reichstein Nielsen
https://codereview.chromium.org/460613002/diff/1/tests/language/reg_exp_test.dart File tests/language/reg_exp_test.dart (right): https://codereview.chromium.org/460613002/diff/1/tests/language/reg_exp_test.dart#newcode24 tests/language/reg_exp_test.dart:24: // Check that allMatches works with optional start index. ...
6 years, 4 months ago (2014-08-11 12:35:36 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #2 manually as 39119 (presubmit successful).
6 years, 4 months ago (2014-08-12 07:13:13 UTC) #4
Søren Gjesse
6 years, 4 months ago (2014-08-19 07:07:59 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/460613002/diff/20001/sdk/lib/core/pattern.dart
File sdk/lib/core/pattern.dart (right):

https://codereview.chromium.org/460613002/diff/20001/sdk/lib/core/pattern.dar...
sdk/lib/core/pattern.dart:25: * match, and initially starting from index zero.
The phrase "and initially starting from index zero" should be changed.

Powered by Google App Engine
This is Rietveld 408576698