[Lazarus] StrLen
Kamen Ketev
kamenlist at abv.bg
Wed Nov 21 07:28:35 CET 2012
Thanks, Martin!
-------- Оригинално писмо --------
От: Martin
Относно: Re: [Lazarus] StrLen
До: Lazarus mailing list
Изпратено на: Вторник, 2012, Ноември 20 00:11:45 EET
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)
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20121121/2e9be61d/attachment-0003.html>
More information about the Lazarus
mailing list