[squeak-dev] The Trunk: Collections-ul.350.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Mar 27 20:13:59 UTC 2010


Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.350.mcz

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

Name: Collections-ul.350
Author: ul
Time: 27 March 2010, 9:10:57.621 pm
UUID: 695fc542-8fa3-7145-95d9-f6071bc53b8e
Ancestors: Collections-ul.349

- removed the now unused Latin1ToUtf8Map and Latin1ToUtf8Encodings class variables and #initialize from ByteString class

=============== Diff against Collections-ul.349 ===============

Item was changed:
  String variableByteSubclass: #ByteString
  	instanceVariableNames: ''
+ 	classVariableNames: ''
- 	classVariableNames: 'Latin1ToUtf8Encodings Latin1ToUtf8Map'
  	poolDictionaries: ''
  	category: 'Collections-Strings'!
  
  !ByteString commentStamp: '<historical>' prior: 0!
  This class represents the array of 8 bit wide characters.
  !

Item was changed:
  ----- Method: String>>squeakToUtf8 (in category 'converting') -----
  squeakToUtf8
  	"Convert the receiver into a UTF8-encoded string"
+ 	
  	^self convertToWithConverter: UTF8TextConverter new.!

Item was changed:
  ----- Method: String>>utf8ToSqueak (in category 'converting') -----
  utf8ToSqueak
  	"Convert the receiver from a UTF8-encoded string"
+ 	
  	^self convertFromWithConverter: UTF8TextConverter new.!

Item was removed:
- ----- Method: ByteString class>>initialize (in category 'initialization') -----
- initialize
- 	"ByteString initialize"
- 	| latin1 utf8 |
- 	Latin1ToUtf8Map := ByteArray new: 256.
- 	Latin1ToUtf8Encodings := Array new: 256.
- 	0 to: 255 do:[:i|
- 		latin1 := String with: (Character value: i).
- 		utf8 := latin1 convertToWithConverter: UTF8TextConverter new.
- 		latin1 = utf8 ifTrue:[
- 			Latin1ToUtf8Map at: i+1 put: 0. "no translation needed"
- 		] ifFalse:[
- 			Latin1ToUtf8Map at: i+1 put: 1. "no translation needed"
- 			Latin1ToUtf8Encodings at: i+1 put: utf8.
- 		].
- 	].!




More information about the Squeak-dev mailing list