al_ustr_length(3alleg5)
β¨ NAME β¨
okay so bestie, welcome to al_ustr_length β it's part of the Allegro 5 API and it is literally the "how many characters are we even working with" girlie π
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
size_t al_ustr_length(const ALLEGRO_USTR *us)
like, that's the whole vibe. one function, one string, one number. periodt π
π DESCRIPTION π
so basically? al_ustr_length hands you back the number of code points in the string. that's it. that's the function. it counts the code points and returns them as a size_t and you go "slay, thank you" π¦
not bytes, bestie β code points. iykyk, that distinction is doing main character energy fr fr β¨
π«Ά SEE ALSO π«Ά
al_ustr_size(3alleg5)β when you wanna know about size instead πal_ustr_offset(3alleg5)β when you're hunting down an offset π₯
and that's the whole page, no cap π this was pulled straight from the Allegro reference manual, so go forth and count your code points, icon ππ
π¦ 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