[fpc-devel] Unicode in the RTL (my ideas)

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Aug 21 10:55:30 CEST 2012


On 21 August 2012 07:10, Ivanko B <ivankob4mse2 at gmail.com> wrote:
> How about supporting in the RTL all versions of UCS-2 & UTF-16 (for
> fast per-char access etc optimizations) and UTF-8 (for unlimited
> number of alphabets) ?

All "access a char by index into a string" code I have seen, 99.99% of
the time work in a sequential manner. For that reason there is no
speed difference between using a UTF-16 or UTF-8 encoded string. Both
can be coded equally efficient.

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net



More information about the fpc-devel mailing list