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

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Sep 28 00:10:43 CEST 2008


On Fri, Sep 26, 2008 at 5:02 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
>
> s[i]:='x' doesn't work in UTF-8, nor UTF-16, nor UTF-32.
>
> In short:
> A single character for all purposes can not be defined. Unicode can not
> be handled as array of character.

This is what I thought, but everybody seems to side step the answer.
Thanks Mattias for confirming this. Like I told Martin in one of my
replies. In the last four years I have not needed indexing into a
character array, and if I have to parse a string, it's normally
sequential anyway, which is then easy to track each charter in UTF-8,
even if multi-byte characters are used.


Regards,
  - Graeme -


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



More information about the fpc-devel mailing list