Enca Library Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up |
int enca_charset_has_ucs2_map (int charset); int enca_charset_ucs2_map (int charset, unsigned int *buffer); size_t enca_number_of_charsets (void); const char* enca_analyser_langage (EncaAnalyser analyser); const char** enca_get_languages (size_t *n); int* enca_get_language_charsets (const char *langname, size_t *n); |
int enca_charset_has_ucs2_map (int charset); |
Find whether we have charset -> UCS-2 map.
int enca_charset_ucs2_map (int charset, unsigned int *buffer); |
Creates map from an 8bit charset to UCS-2.
The buffer must be at least 256*sizeof(unsigned int) long to hold the map.
size_t enca_number_of_charsets (void); |
Returns number of known charsets.
Charsets idetifiers are assigned successively starting from zero, so last charset has identifier enca_number_of_charsets() - 1.
const char* enca_analyser_langage (EncaAnalyser analyser); |
Returns name of language which was analyser initialized for.
The returned string must be considered constant and must NOT be freed.
const char** enca_get_languages (size_t *n); |
Returns list of known languages.
The returned strings are two-letter ISO-639 language codes, the same as enca_analyser_alloc() accepts.
The list of languages has to be freed by caller; the strings themselves must be considered constant and must NOT be freed.