eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'Unicode16String':

Home

everywhere
www.exept.de
for:
[back]

Class: Unicode16String


Inheritance:

   Object
   |
   +--Collection
      |
      +--SequenceableCollection
         |
         +--ArrayedCollection
            |
            +--UninterpretedBytes
               |
               +--ByteArray
                  |
                  +--CharacterArray
                     |
                     +--TwoByteString
                        |
                        +--Unicode16String

Package:
stx:libbasic
Category:
Collections-Text
Version:
rev: 1.12 date: 2008/11/06 11:00:19
user: stefan
file: Unicode16String.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


Represents 16-bit (2-byte) Unicode strings.


Class protocol:

initialization
o  initialize
initialize the class - private

reading
o  readFrom: aStreamOrString onError: exceptionBlock
read & return the next String from the (character-)stream aStream;
skipping all whitespace first; return the value of exceptionBlock,
if no string can be read. The sequence of characters as read from the
stream must be one as stored via storeOn: or storeString.


Instance protocol:

binary storage
o  storeBinaryElementsOn: stream

conversion
o  asSymbolIfInterned
If a symbol with the receivers characters is already known, return it. Otherwise, return nil.
Because ST/X does not support non-8-bit symbols, this method
has been redefined to only return a symbol, if the receiver does NOT contain
any non-8 bit characters.

o  asUnicode16String
as the receiver already is a unicode-16 string, return it

o  asUnicodeString
as the receiver already is a unicode string, return it

printing & storing
o  printOn: aStream
print the receiver on aStream.
Let aStream decide how to represent this, wether utf8, ucs16, ...

o  storeOn: aStream
put the storeString of myself on aStream

o  storeString
return a String for storing myself



ST/X 6.1.1; WebServer 1.620 at exept:8081; Thu, 24 May 2012 04:45:33 GMT