[fpc-devel] String and UnicodeString and UTF8String
Marco van de Voort
marcov at stack.nl
Mon Jan 10 13:33:45 CET 2011
In our previous episode, Jonas Maebe said:
> > In current Delphi is String synonym for base type UnicodeString UTF-16
> > AFAIU ATM in FPC is String synonym for AnsiString (as in previos
> > versions of Delphi)
> > Are there any plans to change meaning of String type ?
> > (like Delphi to UnicodeString , or UTF8String?)
>
> If/when this is done, it will only be with a compiler switch or
> directive.
(
That won't be enough, since that would not change the relevant units and
classes to such type. (e.g. tstringlist would remain defined ansistring)
For this to work, we probably will have to split targets into UTF16 and
ansi. (and maybe multiple ansi's for some platforms)
)
More information about the fpc-devel
mailing list