al_utf8_width(3alleg5)

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

πŸŽ€ NAME πŸŽ€

okay bestie, this is the manual page for al_utf8_width(3alleg5), and it's literally the Allegro 5 API πŸ’…βœ¨


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

size_t al_utf8_width(int32_t c)

πŸ’– DESCRIPTION πŸ’–

so like, this function returns the number of bytes that would be occupied by the specified code point when encoded in UTF-8, no cap πŸ¦‹

for legal code point values, that number is between 1 and 4 bytes. otherwise? it returns 0 πŸ’€

that's the whole vibe. c is the code point you're checking, and the function tells you how wide it would be in UTF-8 bytes. iconic.


🌈 SEE ALSO 🌈


Allegro reference manual, al_utf8_width(3alleg5) β€” no date given on this page, just pure Allegro energy. bye bestie πŸŽ€πŸ’œ

πŸ“¦ where this page comes from