On Fri, Nov 21, 2008 at 7:30 AM, Michael Schnell <[EMAIL PROTECTED]> wrote: > This page does not talk about UTF8Strings being counted in code elements vs > in code points. > > I don't consider it understood that they in any case are counted in code > elements. IMHO this should be seriously discussed and a solution should be > found that the user can select either way to be able to do either fast code > or not break old code.
I prefer it to be counted in bytes. If it is counted in Bytes then I can build a routine that counts in real chars. And we already have a lot of code to handle utf-8 inside ansisstring which depends on that. Counting the elements in real chars is very ineficient. -- Felipe Monteiro de Carvalho _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel