|
|
Class: Unicode16String
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
Represents 16-bit (2-byte) Unicode strings.
initialization
-
initialize
-
initialize the class - private
reading
-
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.
binary storage
-
storeBinaryElementsOn: stream
-
conversion
-
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.
-
asUnicode16String
-
as the receiver already is a unicode-16 string, return it
-
asUnicodeString
-
as the receiver already is a unicode string, return it
printing & storing
-
printOn: aStream
-
print the receiver on aStream.
Let aStream decide how to represent this, wether utf8, ucs16, ...
-
storeOn: aStream
-
put the storeString of myself on aStream
-
storeString
-
return a String for storing myself
|