al_ustr_length(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 🫢


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