On Mon, 10 Nov 2008 15:04:01 -0200 "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 10, 2008 at 1:48 PM, Michael Schnell <[EMAIL PROTECTED]> > wrote: > >, ... There are not _slow_ functions that do the "expected" versions > > of s[i], pos(s), copy(), delete(), ... (I've yet to find out how I > > can print just the first character of an UTF8String :) > > Lazarus has a set of utf-8 ready routines, using utf-8 inside of a > ansistring. Yes. Keep in mind that they work in unicode code points. Composed characters are treated as several units. For example umlaute can be 2 characters (3 bytes). Same problem for UTF-16 with widestrings. We still need a normalize function. Mattias _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel