--- a/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st Thu Feb 16 20:48:27 2017 +0100
+++ b/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st Thu Feb 16 20:48:38 2017 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 2005 by eXept Software AG
All Rights Reserved
@@ -78,6 +80,22 @@
encode:codePoint
^ codePoint swapBytes
+!
+
+encodeCharacter:aUnicodeCharacter on:aStream
+ "given a string in unicode, encode it onto aStream."
+
+ aStream nextPutUtf16Bytes:aUnicodeCharacter MSB:false.
+
+ "Created: / 16-02-2017 / 16:42:19 / stefan"
+!
+
+encodeString:aUnicodeString on:aStream
+ "given a string in unicode, encode it onto aStream."
+
+ aStream nextPutAllUtf16Bytes:aUnicodeString MSB:false.
+
+ "Created: / 16-02-2017 / 16:42:36 / stefan"
! !
!ISO10646_to_UTF16LE methodsFor:'private'!