al_utf8_width(3alleg5)
π 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 π
al_utf8_encode(3alleg5)β go read this next, bestie π«Άal_utf16_width(3alleg5)β and this one too, fr fr β¨
Allegro reference manual, al_utf8_width(3alleg5) β no date given on this page, just pure Allegro energy. bye bestie ππ
π¦ 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