[Cuis-dev] UTF-8 Unicode editors

Douglas Brebner kirtai+st at gmail.com
Sat Apr 30 21:59:06 PDT 2022


On 30/04/2022 02:55, Juan Vuletich via Cuis-dev wrote:
> Class StringUtf8 is a bytes object (like ByteArray). It implements 
> #byteSize, #byteAt:, #byteAt:put:. #at: is rather expensive. It doesn't 
> support #at:put:. It has several iteration messages in CodePoints. 
> Performance seems OK for reasonably small stuff.
> 
> In any case, it is always possible to change the data structure, as long 
> as it is polymorphic.
> 
> I haven't used it for Smalltalk source code yet, only for stand alone 
> editors. Parser would see instances of UnicodeCodePoint, maybe mixed 
> with Characters (for code points that fit in a Cuis Character).
> 
> So far this is experimental, so we can adapt it while we learn the 
> details of what we need.

What about using Ken's Ropes?




More information about the Cuis-dev mailing list