[fpc-devel] new string - question on usage

Michael Schnell mschnell at lumino.de
Wed Oct 12 14:16:56 CEST 2011


On 10/12/2011 12:13 PM, Hans-Peter Diettrich wrote:
>
> Delphi allows for RawByteStrings with encoding 0. When assigned to an 
> AnsiString, the string encoding still is zero, both variables seem to 
> point to the same string data.

The pointing to the data array (managed by "lazy copy and reference 
counting features) is independent from the encoding ID, that is part of 
the string management record and not of the data array.

-Michael



More information about the fpc-devel mailing list