Last updated at 8:17 am UTC on 22 January 2019
String variableWordSubclass: #WideString
- This class organizes a string as a bit sequence of 32 bit wide characters values.
- The conversion between WideString and ByteString is handeled transparently by the system as with the LargePositiveInteger and SmallInteger subclasses of Integer. For the application programmer there is no need to directly deal with WideString.
- WideStrings are indexable; #at: and #at:put: are implemented by primitives
- Superclass is String
Strings are kept as Unicode code points ArrayedCollections, and converted to encoded forms when entering/exiting the system. Files are in UTF-8.
The new Spur memory model supports immediate Characters, so that Characters with Unicode code points greater than 255 can be tested via #==, and wide string access is much faster.