uisok(3alleg4)
β¨ NAME β¨
uisok β the lowkey little helper that checks if your Unicode character is even allowed to exist in your current encoding bestie π It's part of the Allegro game programming library, and it's giving very much "supporting character, essential energy" π«Ά
πΈ SYNOPSIS πΈ
#include <allegro.h>
int uisok(int c);
π DESCRIPTION π
Okay so listen. uisok is a low level helper function for testing Unicode text data, and no it's not the main character, but it is the one holding the whole friend group together, fr fr π
What it does: it finds out if the character value c can actually be encoded correctly in the current format. That's it. That's the whole vibe check.
Why do you care? Because if you're converting from Unicode over to ASCII β or honestly any other encoding format where the range of valid characters is limited (looking at you, ASCII, you narrow little icon π) β you're gonna have some characters that simply do not fit. And uisok is the friend who tells you the truth before you embarrass yourself. Not every character gets to come to the party. Some of them get turned into question marks and cry about it π
So yeah, run your character through uisok first and save yourself the heartbreak.
β RETURN VALUE β
- Returns non-zero if the value can be correctly encoded. Slay! It fits! π
- Returns zero otherwise. Not this time, babe. π
π SEE ALSO π
The whole Unicode squad, together again π Go read them, they're all kind of iconic ngl.
Okay that's the whole page bestie, no cap π
This was Allegro, version 4.4.3, coming at you from the uisok(3alleg4) page β stay encoded correctly out there, mwah πβ¨
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms