--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Unicode16String.st Fri Feb 13 13:46:53 2004 +0100
@@ -0,0 +1,100 @@
+"
+ COPYRIGHT (c) 1997 by eXept Software AG
+ All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice. This software may not
+ be provided or otherwise made available to, or used by, any
+ other person. No title to or ownership of the software is
+ hereby transferred.
+
+
+"
+
+"{ Package: 'stx:libbasic' }"
+
+TwoByteString variableWordSubclass:#Unicode16String
+ instanceVariableNames:''
+ classVariableNames:''
+ poolDictionaries:''
+ category:'Collections-Text'
+!
+
+!Unicode16String class methodsFor:'documentation'!
+
+copyright
+"
+ COPYRIGHT (c) 1997 by eXept Software AG
+ All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice. This software may not
+ be provided or otherwise made available to, or used by, any
+ other person. No title to or ownership of the software is
+ hereby transferred.
+
+
+"
+!
+
+documentation
+"
+ Not yet finished - unicode support is currently being implemented.
+"
+! !
+
+!Unicode16String class methodsFor:'initialization'!
+
+initialize
+ "initialize the class - private"
+
+ self flags:(Behavior flagWords)
+
+ "
+ Unicode16String initialize
+ "
+
+ "Created: 30.6.1997 / 15:35:52 / cg"
+ "Modified: 30.6.1997 / 15:39:21 / cg"
+! !
+
+!Unicode16String methodsFor:'conversion'!
+
+asSymbolIfInterned
+ |s|
+
+ Error catch:[
+ s := self asSingleByteString.
+ ].
+ s isNil ifTrue:[^ s].
+ ^ s asSymbolIfInterned
+!
+
+asUnicodeString
+ ^ self
+!
+
+printOn:aStream
+ self utf8EncodedOn:aStream
+! !
+
+!Unicode16String methodsFor:'queries'!
+
+encoding
+ "return the strings encoding as a symbol.
+ Here, the constant symbol #unicode is returned."
+
+ ^ #unicode
+
+ "Created: 30.6.1997 / 15:39:41 / cg"
+! !
+
+!Unicode16String class methodsFor:'documentation'!
+
+version
+ ^ '$Header: /cvs/stx/stx/libbasic/Unicode16String.st,v 1.1 2004-02-13 12:46:53 cg Exp $'
+! !
+
+Unicode16String initialize!