register_uformat(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

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