get_uformat(3alleg)

get_uformat3alleg

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

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.