summaryrefslogtreecommitdiff
path: root/src/htscharset.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-30 17:46:46 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-30 17:46:46 +0000
commit01af2a5e73f53ebf8a092e4bda77cd1326c1da11 (patch)
tree5e5aa62a7472005bae2ba92b1b2b4df154ccf244 /src/htscharset.h
parentc842d0591d1bf5be7a6375393967d2525b0e92d8 (diff)
Added hts_writeUTF8()
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