20 lines
431 B
C
20 lines
431 B
C
#ifndef FLUFFOS_ICONV_H
|
|
#define FLUFFOS_ICONV_H
|
|
#include "std.h"
|
|
#ifdef USE_ICONV
|
|
#include <iconv.h>
|
|
#else
|
|
typedef void *iconv_t;
|
|
#endif
|
|
struct translation{
|
|
char *name;
|
|
iconv_t incoming;
|
|
iconv_t outgoing;
|
|
struct translation *next;
|
|
};
|
|
|
|
char *translate(iconv_t tr, const char *mes, int inlen, int *outlen);
|
|
char *translate_easy(iconv_t tr, char *mes);
|
|
struct translation *get_translator(const char *encoding);
|
|
#endif
|