[fpc-devel] simple UTF tests

Sven Barth pascaldragon at googlemail.com
Fri Jan 6 12:07:45 CET 2012

Am 06.01.2012 10:19, schrieb Michael Schnell:
> On 01/06/2012 09:59 AM, Marco van de Voort wrote:
>> Unicodestring.
> Of course this is "suggested" regarding the history of Delphi, before
> the variable string type had been introduced.
> But again, even the name now is ambiguous, as there are several Unicode
> encoding types and they seem to be available with the new string type.
> (This is what this discussion is about.) If UnicodeString forces UTF-16
> encoding, why not use a more "speaking" name ?
> And again, this seems not "sane", again (so it maybe is questionable if
> it makes sense to adopt the paradigm to FPC) . Why provide yet another
> type of strings, if we have a string type that is able to hold 1- 2- and
> 4- byte based encoding types including any variants of those ?

I don't know about Delphi, but in FPC the UnicodeString type existed 
before the code page aware String type was merged (the first release 
with it was 2.4.0 AFAIK). Also there is the usual reason for unintuitive 
implementations: Delphi compatibility.


More information about the fpc-devel mailing list