Query: need_uconvert
OS: centos
Section: 3alleg4
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
need_uconvert(3alleg4) Allegro manual need_uconvert(3alleg4)NAMEneed_uconvert - Tells if a string requires encoding conversion. Allegro game programming library.SYNOPSIS#include <allegro.h> int need_uconvert(const char *s, int type, int newtype);DESCRIPTIONGiven a pointer to a string (`s'), a description of the type of the string (`type'), and the type that you would like this string to be converted into (`newtype'), this function tells you whether any conversion is required. No conversion will be needed if `type' and `new- type' are the same, or if one type is ASCII, the other is UTF-8, and the string contains only character values less than 128. As a conve- nience shortcut, you can pass the value U_CURRENT as either of the type parameters, to represent whatever text encoding format is currently selected. Example: if (need_uconvert(text, U_UTF8, U_CURRENT)) { /* conversion is required */ }RETURN VALUEReturns non-zero if any conversion is required or zero otherwise.SEE ALSOset_uformat(3alleg4), get_uformat(3alleg4), do_uconvert(3alleg4), uconvert(3alleg4) Allegro version 4.4.2 need_uconvert(3alleg4)
Related Man Pages |
---|
uconvert(3alleg4) - centos |
uconvert(3alleg4) - opendarwin |
uconvert(3alleg4) - netbsd |
uconvert(3alleg4) - php |
need_uconvert(3alleg4) - v7 |
Similar Topics in the Unix Linux Community |
---|
Binary to text format conversion |
inmemory conversion equivalent in c++ |
Hex string conversion? |
Selective case conversion of a file |
ASCII to netcdf conversion..in C programming |