Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.207.mcz==================== Summary ====================
Name: Collections-nice.207
Author: nice
Time: 22 November 2009, 9:11:30 am
UUID: 77786328-e950-4241-9c3e-6999e35efb38
Ancestors: Collections-nice.206
remove duplicated code from #convertToSystemString
=============== Diff against Collections-nice.206 ===============
Item was changed:
----- Method: String>>convertToSystemString (in category 'converting') -----
convertToSystemString
+ ^self convertToWithConverter: LanguageEnvironment defaultSystemConverter!
-
- | readStream writeStream converter |
- readStream := self readStream.
- writeStream := String new writeStream.
- converter := LanguageEnvironment defaultSystemConverter.
- converter ifNil: [^ self].
- [readStream atEnd] whileFalse: [
- converter nextPut: readStream next toStream: writeStream
- ].
- converter emitSequenceToResetStateIfNeededOn: writeStream.
- ^ writeStream contents.
- !