[Lazarus] cwstring in arm-linux

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Oct 21 23:34:38 CEST 2011


Michael Schnell schrieb:
> On 10/20/2011 09:42 PM, Felipe Monteiro de Carvalho wrote:
>>
>> Changing the size of Char is not just small detail, this breaks *a
>> lot* of code. Any kind of memory operations such as Move will fail
>> because the char size changed.
> Of course you are right, but "move" and friends is "hardware-near 
> programming" for this who know what they are doing. but basic (legacy) 
> string operations like "myChar := myString[i]" is "office-level 
> programming" and thus should work as a dummy expects.

Simple solution: use UTF-32 encoding :-)

It's only a matter of optimization: save memory with more compressed 
encodings, or save coding time?

DoDi





More information about the Lazarus mailing list