uwidth(3)
β¨ uwidth(3) β¨
okay bestie, welcome to the Allegro manual π this one's a lil baby page but she's important, i promise. it's a low level helper function for testing Unicode text data, straight out of the Allegro game programming library. yes, the game library. yes, she does Unicode. we love a multitalented queen π
πΈ NAME πΈ
uwidth β low level helper function for testing Unicode text data. that's it. that's the whole job. she's from the Allegro game programming library and she's here to help π
π SYNOPSIS π
#include <allegro.h>
int uwidth(const char *s);
that's the whole vibe. one include, one function, one const char *s. no cap π«Ά
π¦ DESCRIPTION π¦
low level helper function for testing Unicode text data.
fr fr, that's the entire description. she's low level, she's a helper, and she's all about peeking at your Unicode text data. think of her as the girl in the group chat who can tell you exactly how much space the first character in a string is taking up. main character energy, minimal words β¨
β RETURN VALUE β
she returns the number of bytes occupied by the first character of the specified string, in the current encoding format.
so like β first character only, bestie. not the whole string. the first one. and the byte count depends on whatever encoding you're rolling with at the moment π
π SEE ALSO π
the rest of the Unicode girlies, go say hi:
π reminder: this is a low level helper. she's not here to hold your hand, she's here to count bytes. use her wisely, icon π
and that's the page!! brought to you by Allegro, version 4.4.3 π ty for reading bestie, go write some Unicode-safe code and slay the day away πβ¨π¦
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms