[squeak-dev] The Trunk: Multilingual-nice.197.mcz

commits at source.squeak.org commits at source.squeak.org
Thu May 29 13:42:49 UTC 2014


Nicolas Cellier uploaded a new version of Multilingual to project The Trunk:
http://source.squeak.org/trunk/Multilingual-nice.197.mcz

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

Name: Multilingual-nice.197
Author: nice
Time: 29 May 2014, 3:42:06.965 pm
UUID: bfac7dc8-5362-4332-876f-39a24924c19e
Ancestors: Multilingual-nice.196

Cleanup: 
- Remove now unused isCharset. Anyway, the meaning was strange (more like isEastAsianCharset).
- Simplify CompoundTextConverter>>toUnicode: to use new convertToUnicode: rather than duplicate the job.
- Add possibly missing EncodedCharSet class>>unicodeLeadingChar.
- Provides a fast Latin1 class>>charFromUnicode:.

=============== Diff against Multilingual-nice.196 ===============

Item was changed:
  ----- Method: CompoundTextConverter>>toUnicode: (in category 'private') -----
  toUnicode: aChar
  
+ 	| charset v |
- 	| table charset v |
  	aChar leadingChar = 0 ifTrue: [^ aChar].
+ 	charset := (EncodedCharSet charsetAt: aChar leadingChar) charsetClass.
+ 	v := charset convertToUnicode: aChar charCode.
+ 	^ Character leadingChar: charset unicodeLeadingChar code: v!
- 	charset := EncodedCharSet charsetAt: aChar leadingChar.
- 	charset isCharset ifFalse: [^ aChar].
- 	table := charset ucsTable.
- 	table isNil ifTrue: [^ Character value: 16rFFFD].
- 
- 	v := table at: aChar charCode + 1.
- 	v = -1 ifTrue: [^ Character value: 16rFFFD].
- 
- 	^ Character leadingChar: charset unicodeLeadingChar code: v.!

Item was removed:
- ----- Method: EncodedCharSet class>>isCharset (in category 'class methods') -----
- isCharset
- 
- 	^ true.
- !

Item was added:
+ ----- Method: EncodedCharSet class>>unicodeLeadingChar (in category 'class methods') -----
+ unicodeLeadingChar
+ 	^Unicode leadingChar!

Item was removed:
- ----- Method: LanguageEnvironment class>>isCharset (in category 'accessing') -----
- isCharset
- 
- 	^ false.
- !

Item was added:
+ ----- Method: Latin1 class>>charFromUnicode: (in category 'class methods') -----
+ charFromUnicode: uniCode
+ 
+ 	^ Character leadingChar: self leadingChar code: uniCode!

Item was removed:
- ----- Method: Unicode class>>isCharset (in category 'class methods') -----
- isCharset
- 
- 	^ false.
- !



More information about the Squeak-dev mailing list