al_ustr_find_replace(3alleg5)
π al_ustr_find_replace β Allegro 5 API π
okay bestie, so this one is literally from the Allegro 5 API and it's giving "find and replace but make it C" energy. no cap, it's a whole vibe. π¦
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_ustr_find_replace(ALLEGRO_USTR *us, int start_pos,
const ALLEGRO_USTR *find, const ALLEGRO_USTR *replace)
πΈ DESCRIPTION πΈ
so what this does is replace all occurrences of find in us with replace</p>, and it starts hunting from byte offset start_pos. π―
the find string must be non-empty β that's not optional, that's the rules, periodt. π
ββοΈ
it returns true on success and false on error. that's it, that's the whole thing, and honestly? iconic. π
π SEE ALSO π
al_ustr_find_replace_cstr(3alleg5)β the cstr-flavoured sibling, go say hi π«Ά
okay that's the whole page bestie, mwah π
this lil transmission came to you straight from the Allegro reference manual, page al_ustr_find_replace(3alleg5) β stan forever, no skips, fr fr πβ¨
π¦ 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