al_ustr_get_next(3alleg5)
π al_ustr_get_next(3alleg5) π
okay so bestie, welcome to the Allegro 5 API β¨ this one lives in the al_ustr_get_next(3alleg5) girlies' club and she is so useful. come sit, we're gonna read code points together π
πΈ NAME πΈ
al_ustr_get_next β Allegro 5 API π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
int32_t al_ustr_get_next(const ALLEGRO_USTR *us, int *pos)
like. look at her. two args, one int32_t return, zero drama π¦
π DESCRIPTION π
okay so what she does is: she finds the code point in us that begins at byte offset *pos, and then she advances you over to the next code point. literally a glow-up for your pointer π«
here's the tea on what you get back, no cap:
- on success β she returns the code point value π₯³ iconic, we love her
- if
poswas out of bounds (like, e.g. past the end of the string) β she returns-1π - on an error, such as an invalid byte sequence β she returns
-2π
also, fr fr, just like al_ustr_next(3alleg5) does: invalid byte sequences may be skipped while advancing. so don't be shocked when your position hops further than you expected π«Ά
π SEE ALSO π
Allegro reference manual π version 3alleg5 β mwah, that's the whole page bestie, you ate, go write some string-walking code, periodt π
β¨π¦
π¦ 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