get_uformat

Finds out what text encoding format is currently selected.

Description

int get_uformat(void);
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;
	 ...
      }
Returns the currently selected text encoding format. See the documentation of set_uformat() for a list of encoding formats.
See Also:

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: