1register_uformat(3)             Allegro manual             register_uformat(3)
2
3
4

NAME

6       register_uformat  -  Installs handler functions for a new text encoding
7       format. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void register_uformat(int  type,  int  (*u_getc)(const  char  *s),  int
14       (*u_getx)(char    **s),    int   (*u_setc)(char   *s,   int   c),   int
15       (*u_width)(const char *s), int (*u_cwidth)(int  c),  int  (*u_isok)(int
16       c));
17

DESCRIPTION

19       Installs a set of custom handler functions for a new text encoding for‐
20       mat. The `type' is the ID code for your new format, which should  be  a
21       4-character  string  as  produced  by  the AL_ID() macro, and which can
22       later be passed to functions like  set_uformat()  and  uconvert().  The
23       function  parameters  are  handlers that implement the character access
24       for your new type: see below for details of these.
25
26

SEE ALSO

28       set_uformat(3), uconvert(3), ugetc(3), ugetx(3),  usetc(3),  uwidth(3),
29       ucwidth(3), uisok(3)
30
31
32
33Allegro                          version 4.4.3             register_uformat(3)
Impressum