al_utf8_width(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ¦‹ 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