get_uformat(3alleg4)

get_uformat3alleg4

Finds out what text encoding format is currently selected. allegro game programming library.

Usage

#include <allegro.h>

int get_uformat(void);

Overview

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;
      ...
   }

Return value

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

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.