al_ustr_rfind_chr(3)

๐Ÿ“ฆ
version 5.2.11.3 ยท 3 versions
, in arch rolling

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 ๐Ÿ’œ


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