[fpc-devel] new string - question on usage

Michael Schnell mschnell at lumino.de
Wed Oct 12 10:50:49 CEST 2011


On 10/12/2011 10:35 AM, Sven Barth wrote:
>
> No. In Delphi "String = UnicodeString", but AnsiString still exists as 
> a one-byte (or multi-byte) string type (the "new string type" or "code 
> page aware string type").
Sorry, but I don't understand.

According to the "TAnsiRec", such a "New String" not only  has an 
encoding ID, but also an "ElementSize" specification.

So an "ANSIString" that uses the TAnsiRec for it's implementation 
obviously is capable of holding of 1, 2 and 4 byte encoded data.

-Michael



More information about the fpc-devel mailing list