[fpc-devel] Is calling the Windows Unicode APIs really faster than the ANSI API's?

Luiz Americo Pereira Camara pascalive at bol.com.br
Sat Sep 27 14:35:13 CEST 2008


Graeme Geldenhuys wrote:
>> (AFAI understand, a Widechar is just 16 bit, it would need to
>> be 32 bit if surrogates were allowed in Widestrings).
>>     
>
> Good question and I have been wondering about this myself.  In D2009
> SizeOf(Char) = 2, so I have no idea how that works with surrogate
> pairs. Can anybody explain this please?
>   
 In http://www.jacobthurman.com/?p=30 you can find some explanation.

In http://blogs.codegear.com/abauer/2008/01/09/38845 tries to explain 
why UTF16

Luiz





More information about the fpc-devel mailing list