[Lazarus] String vs WideString
Michael Van Canneyt
michael at freepascal.org
Tue Aug 15 12:15:55 CEST 2017
On Tue, 15 Aug 2017, Mattias Gaertner via Lazarus wrote:
> On Tue, 15 Aug 2017 12:02:28 +0200
> Michael Schnell via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> On 15.08.2017 11:52, Michael Van Canneyt via Lazarus wrote:
>> > This cannot be solved properly except by duplicating the classes unit.
>>
>> Sorry to disagree, but IMHO this can only be solved properly by defining
>> an additional fully dynamically encoded string type and use same for
>> TStrings (see ->
>> http://wiki.freepascal.org/not_Delphi_compatible_enhancement_for_Unicode_Support
>> )
>
> It does not explain what the characters of DynamicString are, does it?
I was just going to write that.
The problem of the element size is circumvented by simply not digging into it.
What does S[2] mean in your proposal ? Is it 1, 2, 4 or even 8 bytes ?
Michael.
More information about the Lazarus
mailing list