On Mon, 9 Apr 2012 16:59:57 -0300
Marcos Douglas <[email protected]> wrote:

>[...]
> > Length = size in bytes
> > UTF8Length = number of code points
> >
> > There is no generic function LengthInGlyphs, because this depends on the
> > font engine and some code points do not have a glyph.
> 
> In the future, we will transform UTF8Length deprecated, only use
> Length function and the FPC will know wich the correct codepage use,
> or it is not going happen never?  =)

For UTF-8 and UTF-16 you will always need both size in bytes and number
of codepoints.

My hope some day we can all forget codepages.

Mattias

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to