[fpc-devel] Unicode and UTF8String
Luiz Americo Pereira Camara
pascalive at bol.com.br
Mon Dec 1 23:31:38 CET 2008
Graeme Geldenhuys escreveu:
> On Mon, Dec 1, 2008 at 10:03 PM, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>
>>> and it avoids unneeded conversions.
>>>
>> I understand it 'avoids unneeded conversions' *inside* the RTL, by
>> adding implicit conversions to the code accessing the RTL.
>>
>
> This is exactly what I was thinking. The conversion is simply passed
> on to a different piece of code. So the end result is the same - you
> still have conversion.
It's variable: no conversion, one conversion, two conversions. Depends
of the system and the user string type. Say the RTL is changed to UTF16.
If the user chooses to use UTF8String in unix you will have 02
conversions: UTF-8 -> UTF-16 -> UTF-8
Luiz
More information about the fpc-devel
mailing list