register_uformat - Installs handler functions for a new text encoding format. Allegro game programming
Contents
Description
Installs a set of custom handler functions for a new text encoding format. The `type' is the ID code for
your new format, which should be a 4-character string as produced by the AL_ID() macro, and which 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.
Name
register_uformat - Installs handler functions for a new text encoding format. Allegro game programming
library.
See Also
set_uformat(3alleg4), uconvert(3alleg4), ugetc(3alleg4), ugetx(3alleg4), usetc(3alleg4), uwidth(3alleg4), ucwidth(3alleg4), uisok(3alleg4) Allegro version 4.4.3 register_uformat(3alleg4)
Synopsis
#include<allegro.h>voidregister_uformat(inttype,int(*u_getc)(constchar*s),int(*u_getx)(char**s),int(*u_setc)(char*s,intc),int(*u_width)(constchar*s),int(*u_cwidth)(intc),int(*u_isok)(intc));
