[squeak-dev] The Inbox: Collections-nice.807.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Sep 13 19:30:17 UTC 2018
Nicolas Cellier uploaded a new version of Collections to project The Inbox:
http://source.squeak.org/inbox/Collections-nice.807.mcz
==================== Summary ====================
Name: Collections-nice.807
Author: nice
Time: 13 September 2018, 9:29:57.057799 pm
UUID: f4686e6e-1820-4c3f-841d-c1904914c147
Ancestors: Collections-topa.806
Let isSeparator be consistent with Character separators after introduction of nbsp.
The performance cost should be marginal.
Note: some (CharacterSet cleanUp: false) might be necessary in postscript, unless this is included in the release process...
=============== Diff against Collections-topa.806 ===============
Item was changed:
----- Method: Character>>isSeparator (in category 'testing') -----
isSeparator
"Answer whether the receiver is one of the separator characters--space,
+ cr, tab, line feed, or form feed and nbsp."
- cr, tab, line feed, or form feed."
| integerValue |
+ (integerValue := self asInteger) > 32 ifTrue: [ ^integerValue = 160 "non breaking space" ].
- (integerValue := self asInteger) > 32 ifTrue: [ ^false ].
integerValue
caseOf: {
[ 32 "space" ] -> [ ^true ].
[ 9 "tab" ] -> [ ^true ].
[ 13 "cr"] -> [ ^true ].
[ 10 "line feed" ] -> [ ^true ].
[ 12 "form feed"] -> [ ^true ] }
otherwise: [ ^false ]!
More information about the Squeak-dev
mailing list
|