[squeak-dev] The Trunk: Regex-Core-eem.54.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jan 5 01:26:02 UTC 2019

Eliot Miranda uploaded a new version of Regex-Core to project The Trunk:

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

Name: Regex-Core-eem.54
Author: eem
Time: 4 January 2019, 5:26:00.659106 pm
UUID: 42807ecb-3ae0-469e-8d0a-73e6d0197bda
Ancestors: Regex-Core-ul.53

Remove an unnecessary store into block argument

=============== Diff against Regex-Core-ul.53 ===============

Item was changed:
  ----- Method: RxsCharSet>>enumerableSetIgnoringCase: (in category 'privileged') -----
  enumerableSetIgnoringCase: aBoolean
  	"Answer a collection of characters that make up the portion of me that can be enumerated, or nil if there are no such characters. The case check is only used to determine the type of set to be used. The returned set won't contain characters of both cases, because this way the senders of this method can create more efficient checks."
  	| highestCharacterCode set |
  	highestCharacterCode := elements inject: -1 into: [ :max :each |
+ 		(each maximumCharacterCodeIgnoringCase: aBoolean) max: max ].
- 		max := (each maximumCharacterCodeIgnoringCase: aBoolean) max: max ].
  	highestCharacterCode = -1 ifTrue: [ ^nil ].
  	set := highestCharacterCode <= 255
  		ifTrue: [ CharacterSet new ]
  		ifFalse: [ WideCharacterSet new ].
  	elements do: [ :each | each enumerateTo: set ].

More information about the Squeak-dev mailing list