summaryrefslogtreecommitdiff
path: root/src/htscharset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/htscharset.h')
-rw-r--r--src/htscharset.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/htscharset.h b/src/htscharset.h
index 04bb6c1..bb7f3da 100644
--- a/src/htscharset.h
+++ b/src/htscharset.h
@@ -147,6 +147,13 @@ 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