#REFACTORING by stefan
class: CharacterEncoderImplementations::ISO10646_to_UTF8_MAC
class definition
changed: #readNextCharacterFrom:
--- 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'!