[Lazarus] Unicode on Windows

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Apr 9 22:43:45 CEST 2012


On Mon, 9 Apr 2012 16:59:57 -0300
Marcos Douglas <md at delfire.net> 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




More information about the Lazarus mailing list