Thanks, Mattias!
-------- Оригинално писмо -------- От: Mattias Gaertner Относно: Re: [Lazarus] String with ° До: [email protected] Изпратено на: Четвъртък, 2013, Октомври 10 13:24:00 EEST On Thu, 10 Oct 2013 11:38:39 +0200 Bart [email protected] > wrote: > On 10/10/13, Michael Schnell [email protected] > wrote: > > > As Lazarus works with UTF8, and the string functions like "pos" and > > "delete" count bytes rather than (visible) characters, you can't use the > > visible character position for these functions. > > As Mattias pointed out: in this case Use Utf8Delete(). > It is in LazUtf8 unit. Note: UTF8Delete works in code points, not in visible characters. The "visible characters" depend on font and rendering engine. Mattias -- _______________________________________________ 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
