Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-12

Opposite of UTF8CharToByteIndex

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

I am struggling to find the opposite of UTF8CharToByteIndex from LazUTF8. I.e. I need to convert ByteIndex to Char index. Is there such a function? Or do I have to write one by myself? (Isn't a problem, I'd like to check first.)

Ondrej

Reply by email

Mattias Gaertner
to Ondrej Pokorny
I am struggling to find the opposite of UTF8CharToByteIndex from LazUTF8. I.e. I need to convert ByteIndex to Char index. Is there such a function? Or do I have to write one by myself? (Isn't a problem, I'd like to check first.)

UTF8Length

Mattias

Reply by email

Ondrej Pokorny
to Mattias Gaertner
Mattias Gaertner wrote 8 lines
On Thu, 17 Dec 2015 14:42:20 +0100 Ondrej Pokorny wrote: > I am struggling to find the opposite of UTF8CharToByteIndex from > LazUTF8. I.e. I need to convert ByteIndex to Char index. Is there such a > function? Or do I have to write one by myself? (Isn't a problem, I'd > like to check first.) UTF8Length

Thank you! Lazarus support is much better than Embarcadero's :)

Ondrej

Reply by email