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 [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
