Is al_ustr_get's pos parameter a byte offset?
axilmar

Is the parameter 'pos' of the function 'al_ustr_get' a byte offset or is it a character index?

Elias

Byte offset. You can use al_ustr_offset to find it from the character index.

Peter Wang

I can't believe that whole page doesn't mention "code unit" once. Who wrote that?

Elias

It's auto-generated from the official documentation (which was not intended to be split per-function) I think.

Peter Wang

Just kidding, I wrote most of the text on the UTF-8 routines page. The whole manual should be designed to be split into functions since we generate man pages from it as well. But that's fine, it's an iterative process.

Thread #612381. Printed from Allegro.cc