al_ustr_prev_get(3alleg5)
β¨ al_ustr_prev_get(3alleg5) β¨
okay bestie, welcome to the al_ustr_prev_get(3alleg5) page β yes, that's the manual name and the function, all up in here. This is Allegro 5 API business, and we're about to get into it. π«Ά
πΈ NAME πΈ
al_ustr_prev_get β Allegro 5 API π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
int32_t al_ustr_prev_get(const ALLEGRO_USTR *us, int *pos)
π DESCRIPTION π
So like, this function finds the beginning of a code point before byte offset *pos, then returns it. Note this performs a pre-increment. Periodt. π
On success it returns the code point value. If pos was out of bounds (e.g. past the end of the string), it returns -1. On an error, such as an invalid byte sequence, it returns -2. π
β οΈ Also, as with al_ustr_prev(3alleg5), invalid byte sequences may be skipped while advancing. So don't be surprised if it lowkey slides past them. π§
π₯ SEE ALSO π₯
al_ustr_get_next(3alleg5)β the other one, bestie, go check it out π
Allegro reference manual β that's the source/version tea, and there's no date on this page so I'm not inventing one. Stay iconic, bestie. π β¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms