[squeak-dev] The Trunk: Multilingual-nice.140.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Apr 11 14:44:01 UTC 2011
Nicolas Cellier uploaded a new version of Multilingual to project The Trunk:
http://source.squeak.org/trunk/Multilingual-nice.140.mcz
==================== Summary ====================
Name: Multilingual-nice.140
Author: nice
Time: 11 April 2011, 4:44:05.224 pm
UUID: 6b33f2d9-6d5f-034d-9102-a6eb49a36d97
Ancestors: Multilingual-nice.139
Use #repeat instead of [true] whileTrue
=============== Diff against Multilingual-nice.139 ===============
Item was changed:
----- Method: EFontBDFFontReaderForRanges>>readCharactersInRanges:storeInto: (in category 'as yet unclassified') -----
readCharactersInRanges: ranges storeInto: chars
| array form code rangeStream currentRange |
rangeStream := ReadStream on: ranges.
currentRange := rangeStream next.
+ [
- [true] whileTrue: [
array := self readOneCharacter.
array second ifNil: [^ self].
code := array at: 2.
code > currentRange last ifTrue: [
[rangeStream atEnd not and: [currentRange := rangeStream next. currentRange last < code]] whileTrue.
rangeStream atEnd ifTrue: [^ self].
].
(code between: currentRange first and: currentRange last) ifTrue: [
form := array at: 1.
form ifNotNil: [
chars add: array.
].
].
+ ] repeat
- ].
!
More information about the Squeak-dev
mailing list
|