logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

get_uformat - Finds out what text encoding format is currently selected. Allegro game programming

Description

       Finds out what text encoding format is currently selected. This function is probably useful only  if  you
       are writing an Allegro addon dealing with text strings and you use a different codepath for each possible
       format.  Example:

          switch(get_uformat()) {
             case U_ASCII:
                do_something();
                break;
             case U_UTF8:
                do_something_else();
                break;
             ...
          }

Name

       get_uformat  -  Finds  out  what  text  encoding  format  is currently selected. Allegro game programming
       library.

Return Value

       Returns the currently selected text encoding format. See the documentation of set_uformat() for a list of
       encoding formats.

See Also

set_uformat(3alleg4)

Allegro                                           version 4.4.3                             get_uformat(3alleg4)

Synopsis

#include<allegro.h>intget_uformat(void);

See Also