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

Martin Schreiber fpmse at bluewin.ch
Fri Sep 26 12:07:45 CEST 2008


On Friday 26 September 2008 11.51:14 Graeme Geldenhuys wrote:
> On Fri, Sep 26, 2008 at 11:46 AM, Martin Schreiber <fpmse at bluewin.ch> wrote:
> > It seems you prefer utf-8 over utf-16 for internal string encoding in a
> > GUI framework. Why?
> > I prefer utf-16 over utf-8 for MSEide+MSEgui because *all* current users
> > (including the Chinese) can use simple string index to access the
> > characters of their used languages and almost nobody can use string index
> > to access characters in utf-8.
>
> In my years of experience, string index access is not a requirement.
> In the last four years working on our current project I have still not
> had a need for string index access. It's a overrated statement as far
> as I'm concerned.
>
> UTF8CharAtByte() or UTF8Copy() if needed is fine for me.  And if you
> are parsing a string, it happens sequentially anyway, so it's very
> easy to track characters in a utf8 string.
>
Hmm, you should ask the Russian users for example if they prefer MSEgui utf-16 
internal encoding or Lazarus utf-8.

Martin



More information about the fpc-devel mailing list