--- psiconv/trunk/lib/psiconv/common.h 2000/12/22 22:31:50 71 +++ psiconv/trunk/lib/psiconv/common.h 2004/01/06 20:15:01 184 @@ -24,22 +24,23 @@ #define PSICONV_COMMON_H #include -#include +#include +#include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ -typedef psiconv_list psiconv_buffer; /* of u8 */ - /* *************** * misc.c * *************** */ -/* This function returns a copy of a string, that contains no ASCII codes - that are not printable. You should free this string yourself when you are +/* This function returns a copy of a Unicode string, converted to plain ASCII. + Anything codepage dependent (> 128) is sanitized away. + You should free this string yourself when you are done with it. Returns NULL if there is not enough memory left. */ -extern char *psiconv_make_printable(const char *s); +extern char *psiconv_make_printable(const psiconv_config config, + const psiconv_string_t s); /* **************