Back: UnicodeCharacter class-built ins Up: Base classes Forward: UnicodeString class-converting   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.194 UnicodeString

Defined in namespace Smalltalk
Superclass: CharacterArray
Category: Collections-Text
My instances represent Unicode string data types. Data is stored as 4-byte UTF-32 characters

1.194.1 UnicodeString class: converting  (class)
1.194.2 UnicodeString class: multibyte encodings  (class)
1.194.3 UnicodeString: built-ins  (instance)
1.194.4 UnicodeString: converting  (instance)
1.194.5 UnicodeString: multibyte encodings  (instance)


1.194.1 UnicodeString class: converting

fromString: aString
Return the String, aString, converted to its Unicode representation. Unless the I18N package is loaded, this is not implemented.


1.194.2 UnicodeString class: multibyte encodings

defaultEncoding
Answer the encoding used by the receiver. Conventionally, we answer 'Unicode' to ensure that two UnicodeStrings always have the same encoding.

isUnicode
Answer true; the receiver stores characters.


1.194.3 UnicodeString: built-ins

hash
Answer an hash value for the receiver


1.194.4 UnicodeString: converting

asString
Returns the string corresponding to the receiver. Without the Iconv package, unrecognized Unicode characters become $? characters. When it is loaded, an appropriate single- or multi-byte encoding could be used.

asSymbol
Returns the symbol corresponding to the receiver

asUnicodeString
But I already am a UnicodeString! Really!

displayOn: aStream
Print a representation of the receiver on aStream

printOn: aStream
Print a representation of the receiver on aStream


1.194.5 UnicodeString: multibyte encodings

encoding
Answer the encoding used by the receiver. Conventionally, we answer 'Unicode' to ensure that two UnicodeStrings always have the same encoding.

numberOfCharacters
Answer the number of Unicode characters in the receiver. This is the same as #size for UnicodeString.



Back: UnicodeString-converting Up: UnicodeString Forward: ValueAdaptor   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on May, 22 2008 using texi2html