set_uformat(3alleg4) Allegro manual set_uformat(3alleg4)NAME
set_uformat - Set the global current text encoding format. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void set_uformat(int type);
DESCRIPTION
Sets the current text encoding format. This will affect all parts of Allegro, wherever you see a function that returns a char *, or takes a
char * as a parameter. `type' should be one of these values:
U_ASCII - fixed size, 8-bit ASCII characters
U_ASCII_CP - alternative 8-bit codepage (see set_ucodepage())
U_UNICODE - fixed size, 16-bit Unicode characters
U_UTF8 - variable size, UTF-8 format Unicode characters
Although you can change the text format on the fly, this is not a good idea. Many strings, for example the names of your hardware drivers
and any language translations, are loaded when you call allegro_init(), so if you change the encoding format after this, they will be in
the wrong format, and things will not work properly. Generally you should only call set_uformat() once, before allegro_init(), and then
leave it on the same setting for the duration of your program.
SEE ALSO get_uformat(3alleg4), register_uformat(3alleg4), set_ucodepage(3alleg4), set_uformat(3alleg4), uconvert(3alleg4), ustrsize(3alleg4),
ugetc(3alleg4), ugetx(3alleg4), usetc(3alleg4), uwidth(3alleg4), ucwidth(3alleg4), uisok(3alleg4), uoffset(3alleg4), ugetat(3alleg4), use-
tat(3alleg4), uinsert(3alleg4), uremove(3alleg4), allegro_init(3alleg4), exunicod(3alleg4)Allegro version 4.4.2 set_uformat(3alleg4)
hi to all
im having some 20,000 files in that im having some contents say the tabulation of biophysics lab readings ... and i want read tat file and look into tat wether a number say -18.90 is there r not .. and if there print tat no wit file name beside
thank you:D (1 Reply)
hi to all
im having 20 text file ..say in tat a string called "humson" is common in all the text files
and im using grep to find tat string presence and what i need is when ever tis string comes in the text file after tat...what ever comes i need to load it into the array ... it should not... (0 Replies)
hi to all ....
i have txt file , tat contains list of file name ... i hav to put it into the array ..
say list.txt
in tat
kay.ldf
hak.ldf
warper.ldf
like tat
thanks (6 Replies)
what my code is doing, it is executing a sql file and the resullset of the query is getting stored in the text file in a fixed format. for that fixed format i have used the following code::
Code:
awk -F":"... (2 Replies)
Hey guys.
The problem is :
i need to change encoding (to be more precise UTF-8) or change the language . You see , when i log in , manuals are shown in 'Some symbols' (being written in 'Not English') and its very confusing to work. Please Help :) (3 Replies)