al_ustr_rfind_chr(3)
al_ustr_rfind_chr(3) ๐
okay bestie, welcome to the Library Functions Manual โ this is the page for al_ustr_rfind_chr(3), and it's giving โsearch backwards for one code pointโ energy. Letโs get into it โจ
๐ธ NAME ๐ธ
al_ustr_rfind_chr โ Allegro 5 API ๐
โจ SYNOPSIS โจ
#include <allegro5/allegro.h>
int al_ustr_rfind_chr(const ALLEGRO_USTR *us, int end_pos, int32_t c)
๐ฆ DESCRIPTION ๐ฆ
So hereโs the vibe: youโre looking for the encoding of code point c inside us, and youโre searching backwards from byte offset end_pos โ which is exclusive, bestie, so itโs not included in the search. ๐
It returns the position where itโs found, or -1 if itโs not found. Thatโs it, thatโs the whole quest ๐
๐ SEE ALSO ๐
al_ustr_find_chr(3)โ the other find-chr page, go give it a look ๐ซถ
later, bestie ๐ โ source/version: Allegro reference manual / al_ustr_rfind_chr(3); date: not shown on this page, so no invented date, no cap ๐ซถ
๐ฆ where this page comes from
- arch rolling: allegro 5.2.11.3-2 ยท Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms