1get_uformat(3) Allegro manual get_uformat(3)
2
3
4
6 get_uformat - Finds out what text encoding format is currently
7 selected. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 int get_uformat(void);
14
16 Finds out what text encoding format is currently selected. This func‐
17 tion is probably useful only if you are writing an Allegro addon deal‐
18 ing with text strings and you use a different codepath for each possi‐
19 ble format. Example:
20
21 switch(get_uformat()) {
22 case U_ASCII:
23 do_something();
24 break;
25 case U_UTF8:
26 do_something_else();
27 break;
28 ...
29 }
30
32 Returns the currently selected text encoding format. See the documenta‐
33 tion of set_uformat() for a list of encoding formats.
34
35
37 set_uformat(3)
38
39
40
41Allegro version 4.4.2 get_uformat(3)