--- a/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st Tue Apr 25 16:16:42 2006 +0200
+++ b/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st Tue Apr 25 16:16:44 2006 +0200
@@ -41,6 +41,26 @@
"
encodes/decodes UTF16 LittleEndian (little-end-first)
"
+!
+
+examples
+"
+ Encoding (unicode to utf16LE)
+ ISO10646_to_UTF16LE encodeString:'hello'.
+
+
+ Decoding (utf16LE to unicode):
+ |t|
+
+ t := ISO10646_to_UTF16LE encodeString:''.
+ ISO10646_to_UTF16LE decodeString:t.
+
+ Decoding (utf16LE-Bytes to unicode):
+ |bytes|
+
+ bytes := #[ 16r40 0 16r41 0 16r42 0 16r43 0 16r44 0 ].
+ ISO10646_to_UTF16LE decodeString:bytes.
+"
! !
!ISO10646_to_UTF16LE methodsFor:'private'!
@@ -62,5 +82,5 @@
!ISO10646_to_UTF16LE class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st,v 1.1 2005-07-07 17:36:33 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic/CharacterEncoderImplementations__ISO10646_to_UTF16LE.st,v 1.2 2006-04-25 14:16:44 cg Exp $'
! !