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

Method category index

converting (class)
multibyte encodings (class)
built ins (instance)
built-ins (instance)
converting (instance)
multibyte encodings (instance)

converting (class)

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

top


multibyte encodings (class)

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.

top


built ins (instance)

at: anIndex ifAbsent: aBlock
Answer the index-th indexed instance variable of the receiver

top


built-ins (instance)

hash
Answer an hash value for the receiver

top


converting (instance)

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

top


multibyte encodings (instance)

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.

top