al_utf8_width(3)
π¦ NAME π¦
al_utf8_widthβ Allegro 5 API
Okay bestie, welcome to the al_utf8_width(3) page from the Library Functions Manual β itβs literally here to tell you how many bytes a UTF-8 code point is gonna take up. β¨
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
size_t al_utf8_width(int32_t c)
π DESCRIPTION π
So al_utf8_width returns the number of bytes that would be occupied by the specified code point when encoded in UTF-8. That count is between 1 and 4 bytes for legal code point values. π
Otherwise, it returns 0. Periodt. Thatβs the vibe check, no cap. π«Ά
π₯ SEE ALSO π₯
xoxo, from the Allegro reference manual, page al_utf8_width(3) β π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms