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

Marco van de Voort marcov at stack.nl
Fri Sep 26 16:26:18 CEST 2008


In our previous episode, Michael Schnell said:
> >> Is UTF-16 Widestring in FPC (and Delphi 200x ? ) not done just ignoring the
> >> surrogates ?
> >
> > Lets hope not, 
> I don't think,  full UTF-16 really would be desirable desirable over UC-2.
> 
> Imagine you have a string of some million characters (e.g. a Book). All 
> functions that need to find the n-th character (like x[n], copy, ...) 
> would take forever, as they need to scan the complete string (if not 
> widestring is a rather complex tree-like format).

That is a solution to isolate such code and treat it different from the
rest, not to mutilate the unicode standard.



More information about the fpc-devel mailing list