[Lazarus] StrLen

Martin lazarus at mfriebe.de
Mon Nov 19 23:11:45 CET 2012


On 19/11/2012 21:38, Kamen Ketev wrote:
>
> Hi,
>
> When I am using StrLen or Length or StrCharLength for counting symbols 
> on latin everything is ok. But when count cyrillic symbols is NOT 
> count properly. How I can count  cyrillic symbols in string?
>
>

Utf8Length

However strictly spoken afaik it counts codepoints.

Some chars are combined of multiply codepoints (see wikipedia utf8 
combining).

And on top of that, this does not tell anything about what you see on 
display. In some scripts two chars are displayed as one symbol (ligature)




More information about the Lazarus mailing list