[fpc-devel] new string - question on usage

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Oct 13 11:05:37 CEST 2011


 


Michael Schnell <mschnell at lumino.de> hat am 13. Oktober 2011 um 10:18
geschrieben:

> On 10/13/2011 04:27 AM, Hans-Peter Diettrich wrote:
> >
> > I don't see a speed penalty in using UTF-16. In contrast to UTF-8 it
> > simplifies (and consequently speeds up) all string handling.
>
> If doing code  heavily doing GUI handling (such as the LCL in Lazarus)
> and the GUI's API is not UTF-16, all strings passing the API need to be
> converted. This will slow down things a lot. 
That's non sense. Prove: some LCL backends work in UTF-16. 
 
Maybe you confused that with the IDE?
The IDE does heavy string handling. In fact so much that many parts were
replaced with PChar. 
 

 
> So quite obviously projects like the LCL need to use a "variable" Type
> (either dynamic or static) throughout the complete code in some way. 
 
Mattias
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20111013/bc9dcc93/attachment.html>


More information about the fpc-devel mailing list