al_ustr_find_cset(3alleg5)
β¨ NAME β¨
al_ustr_find_cset β bestie, it's part of the Allegro 5 API π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
int al_ustr_find_cset(const ALLEGRO_USTR *us, int start_pos,
const ALLEGRO_USTR *reject);
π¦ DESCRIPTION π¦
okay so picture this: you've got this string us, right? And you're like, "bestie, where's the first code point that is NOT on my little reject list?" That's literally what this function does π
It hunts through us, starting from the byte offset start_pos, and finds the very first code point that does not match any code point in reject. In other words β and this is the iconic part β it finds a code point in the complementary set of reject β¨
And what does it give you back? The byte position of that code point, if there even is one. If there isn't? It hits you with a -1. no cap π
π SEE ALSO π
k byeeee, this lil page came straight out of the Allegro reference manual, the al_ustr_find_cset(3alleg5) one π stay slay, go find those complementary code points, mwah π«Ά
π¦ 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