CharacterEncoderImplementations__ISO10646_to_UTF16LE.st
changeset 14171 d0b0a6918da7
parent 9326 46b7df422c6c
child 18011 deb0c3355881
child 19216 d1325e650883
--- a/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st	Tue Jul 10 09:55:08 2012 +0200
+++ b/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st	Tue Jul 10 09:55:26 2012 +0200
@@ -9,7 +9,6 @@
  other person.  No title to or ownership of the software is
  hereby transferred.
 "
-
 "{ Package: 'stx:libbasic' }"
 
 "{ NameSpace: CharacterEncoderImplementations }"
@@ -63,6 +62,16 @@
 "
 ! !
 
+!ISO10646_to_UTF16LE methodsFor:'encoding & decoding'!
+
+decode:codePoint
+    ^ codePoint swapBytes
+!
+
+encode:codePoint
+    ^ codePoint swapBytes
+! !
+
 !ISO10646_to_UTF16LE methodsFor:'private'!
 
 nextPutTwoByteValue:anInteger to:aStream
@@ -76,11 +85,11 @@
 !ISO10646_to_UTF16LE methodsFor:'queries'!
 
 nameOfEncoding
-    ^ #'utf8le'
+    ^ #utf16le
 ! !
 
 !ISO10646_to_UTF16LE class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st,v 1.2 2006-04-25 14:16:44 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st,v 1.3 2012-07-10 07:55:26 stefan Exp $'
 ! !