diff options
-rw-r--r-- | src/htscharset.h | 14 | ||||
-rw-r--r-- | src/htscoremain.c | 1 |
2 files changed, 8 insertions, 7 deletions
diff --git a/src/htscharset.h b/src/htscharset.h index bb7f3da..c22978e 100644 --- a/src/htscharset.h +++ b/src/htscharset.h @@ -128,6 +128,13 @@ extern char *hts_convertUCS4StringToUTF8(const hts_UCS4 *s, size_t nChars); **/ extern size_t hts_stringLengthUCS4(const hts_UCS4 *s); +/** + * Write the Unicode character 'uc' in 'dest' of maximum size 'size'. + * Return the number of bytes written, or 0 upon error. + * Note: does not \0-terminate the destination buffer. + **/ +extern size_t hts_writeUTF8(hts_UCS4 uc, char *dest, size_t size); + /* WIN32 specific. */ #ifdef _WIN32 @@ -147,13 +154,6 @@ extern char *hts_convertUCS2StringToUTF8(LPWSTR woutput, int wsize); **/ extern char *hts_convertStringSystemToUTF8(const char *s, size_t size); -/** - * Write the Unicode character 'uc' in 'dest' of maximum size 'size'. - * Return the number of bytes written, or 0 upon error. - * Note: does not \0-terminate the destination buffer. - **/ -extern size_t hts_writeUTF8(hts_UCS4 uc, char *dest, size_t size); - #endif #endif diff --git a/src/htscoremain.c b/src/htscoremain.c index c2ff520..cbc5971 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -45,6 +45,7 @@ Please visit our Website: http://www.httrack.com #include "htsmodules.h" #include "htszlib.h" #include "htscharset.h" +#include "htsencoding.h" #include <ctype.h> #if USE_BEGINTHREAD |