[Lazarus] String vs WideString

Sven Barth pascaldragon at googlemail.com
Mon Aug 14 18:47:58 CEST 2017


Am 14.08.2017 16:11 schrieb "Tony Whyman via Lazarus" <
lazarus at lists.lazarus-ide.org>:
> If nothing else, FPC Lazarus could do with a clean-up of both terminology
and string types. Indeed, why isn't there a single container string type
for all character sets where the encoding whether a legacy code page, UTF8,
UTF16 or UTF32 is simply a dynamic attribute of the type - a sort of
extended AnsiString?

The main problem of such a dynamic type would be the inability to do fast
indexing as the compiler would need to insert runtime checks for the size
of a character. I had already thought the same, but then had to discard the
idea due to this.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170814/6e5e7011/attachment.html>


More information about the Lazarus mailing list