[squeak-dev] The Trunk: Regex-Core-ct.84.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Oct 12 13:43:40 UTC 2022

Christoph Thiede uploaded a new version of Regex-Core to project The Trunk:

==================== Summary ====================

Name: Regex-Core-ct.84
Author: ct
Time: 12 October 2022, 3:43:39.287412 pm
UUID: 5d80a0f0-0d3e-a84f-92af-0aec4b5512db
Ancestors: Regex-Core-ct.83

Fixes ordering of keyed subexpression ranges.

=============== Diff against Regex-Core-ct.83 ===============

Item was changed:
  ----- Method: RxMatcher>>keyedSubexpressionRanges: (in category 'accessing') -----
  keyedSubexpressionRanges: key
  	"Answer an array of all match ranges (inclusiveStart -> inclusiveStop) of the subexpression at the given key."
+ 	^ ((keyedMarkerPositions at: key) gather: [:pair |
- 	^ (keyedMarkerPositions at: key) gather: [:pair |
  		(markerPositions at: pair first)
  			with: (markerPositions at: pair second)
+ 			collect: [:start :stop | start + 1 to: stop]])
+ 				"Since the same key can be defined for multiple markers, ordering the matches is non-trivial."
+ 				sort: [:range | range stop] ascending!
- 			collect: [:start :stop | start + 1 to: stop]]!

More information about the Squeak-dev mailing list