#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Fri, 19 Jan 2018 14:43:38 +0100
changeset 22475 71b77246e002
parent 22474 f42c97c037ed
child 22476 b30058f26971
#REFACTORING by stefan class: CharacterEncoderImplementations::ISO10646_to_UTF8_MAC class definition changed: #readNextCharacterFrom:
CharacterEncoderImplementations__ISO10646_to_UTF8_MAC.st
--- a/CharacterEncoderImplementations__ISO10646_to_UTF8_MAC.st	Fri Jan 19 14:43:21 2018 +0100
+++ b/CharacterEncoderImplementations__ISO10646_to_UTF8_MAC.st	Fri Jan 19 14:43:38 2018 +0100
@@ -17,7 +17,7 @@
 
 ISO10646_to_UTF8 subclass:#ISO10646_to_UTF8_MAC
 	instanceVariableNames:''
-	classVariableNames:'AccentMap DecomposeMap ComposeMap'
+	classVariableNames:'DecomposeMap ComposeMap'
 	poolDictionaries:''
 	category:'Collections-Text-Encodings'
 !
@@ -318,7 +318,9 @@
     |firstByte bytesToRead str|
 
     firstByte := aStream peek. 
-    firstByte ifNil:[^ nil].
+    firstByte isNil ifTrue:[
+        ^ nil
+    ].
     firstByte := firstByte codePoint.
     bytesToRead := self class bytesToReadFor:firstByte.
     str := self decodeString:(aStream next:bytesToRead).
@@ -328,6 +330,7 @@
     ^ str first
 
     "Created: / 10-01-2018 / 22:35:23 / stefan"
+    "Modified: / 16-01-2018 / 16:53:59 / stefan"
 ! !
 
 !ISO10646_to_UTF8_MAC methodsFor:'queries'!