register_uformat(3)
okay so bestie, welcome to register_uformat(3) from the Allegro manual π this is the one where you install handler functions for a whole new text encoding format, and it's lowkey iconic.
πΈ NAME πΈ
register_uformat β Installs handler functions for a new text encoding format. Allegro game programming library.
β¨ SYNOPSIS β¨
#include <allegro.h>
void register_uformat(int type, int (*u_getc)(const char *s), int
(*u_getx)(char **s), int (*u_setc)(char *s, int c), int (*u_width)(const
char *s), int (*u_cwidth)(int c), int (*u_isok)(int c));
π DESCRIPTION π
okay so this function installs a set of custom handler functions for a new text encoding format. The type is the ID code for your new format, and it should be a 4-character string as produced by the AL_ID() macro. That type can later be passed to functions like set_uformat() and uconvert(). The function parameters are handlers that implement the character access for your new type: see below for details of these.
Those handler params are the u_getc, u_getx, u_setc, u_width, u_cwidth, and u_isok functions from the synopsis, and they're doing the character-access work for your new format. π«Ά
heads up: the page says see below for details of these, so that's the lore, bestie. periodt.
π SEE ALSO π
and that's the whole page, periodt. Allegro, version 4.4.3, page register_uformat(3) β that's the footer vibe, no extra date, so we slay and go. πβ¨π
π¦ 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