[Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

Mattias Gaertner nc-gaertnma at netcologne.de
Wed May 3 14:47:13 CEST 2017


On Wed, 3 May 2017 13:37:24 +0100
Tony Whyman via Lazarus <lazarus at lists.lazarus-ide.org> wrote:

>[...]
> On the other hand, AnsiString and UnicodeString are still separate 
> types. Why? Why should there not be a single unified string type with 
> (e.g.) ASCII, UTF8 and UTF-16 (or MS Unicode) being just another code page?

Many 8bit string functions work for any 8bit encoding, and so do many
16bit string functions for any 16bit encoding. But almost no string
function works for both.

Mattias


More information about the Lazarus mailing list