Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Is al_ustr_get's pos parameter a byte offset?

This thread is locked; no one can reply to it. rss feed Print
Is al_ustr_get's pos parameter a byte offset?
axilmar
Member #1,204
April 2001

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

Elias
Member #358
May 2000

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

--
"Either help out or stop whining" - Evert

Peter Wang
Member #23
April 2000

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

Elias
Member #358
May 2000

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

--
"Either help out or stop whining" - Evert

Peter Wang
Member #23
April 2000

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.

Go to: