Klaus D. Witzel
klaus.witzel at cobss.com
Mon Jun 11 07:51:52 UTC 2007
On Mon, 11 Jun 2007 09:15:16 +0200, subbukk wrote:
> On Monday 11 June 2007 2:44 am, Andreas Raab wrote:
>> Hi Janko -
>> .... this "encoding-driven" view of
>> strings makes it perfectly natural to think of an UTF8String which has a
>> variable sized encoding and can live in perfect harmony with the other
>> "byte encoded strings".
> How about UTF8Stream since UTF8 works best in a stream? The term String
> has strong connotations of storage and indexing.
How about the ages old Smalltalk solution: a decorated string is a Text.
The stringArray and the runArray of Text together determine the face of
the character. Then you'd have UTF8Text, the stringArray of which can
contain plain ASCII if there are no other characters in a UTF8Text. And
Dan's double dispatch concept can be employed for the match/replace/etc
Just my CHF 0.05
> Regards .. Subbu
More information about the Squeak-dev