[Lazarus] WinCE and strings

Antonio Fortuny a.fortuny at sitasoftware.lu
Tue Jul 10 12:23:41 CEST 2012


Le 10/07/2012 11:29, Sven Barth a écrit :
> Am 10.07.2012 10:14, schrieb Felipe Monteiro de Carvalho:
>> On Tue, Jul 10, 2012 at 9:58 AM, Sven 
>> Barth<pascaldragon at googlemail.com>  wrote:
>>>> - I need to convert (using conditional code) from string to WideString
>>>> when compiling for WinCE, like
>>>
>>> You only need to convert if you have text that is not encoded in 
>>> UTF-8. Then
>>> you should use UTF8ToSys/SysToUTF8 or AnsiToUTF8/UTF8ToAnsi.
>>
>> Between widestring and LCL strings a good pair to use is 
>> UTF8ToUTF16/UTF16ToUTF8
>>
>
> But his input parameter was String, not WideString. He only talked 
> about WideString, because WinCE is based on WideString (or UTF-16) and 
> thus concluded that the LCL must work the same way.
This basically my way of thinking. My goal is to minimize as much as 
possible the modification affecting the main processing code and 
concentrate on the final display issues
>
> Regards,
> Sven
>
> -- 
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>








More information about the Lazarus mailing list