summaryrefslogtreecommitdiff
path: root/src/htscharset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/htscharset.h')
-rw-r--r--src/htscharset.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/htscharset.h b/src/htscharset.h
index c992d23..0551e88 100644
--- a/src/htscharset.h
+++ b/src/htscharset.h
@@ -93,6 +93,16 @@ extern int hts_isCharsetUTF8(const char *charset);
**/
extern size_t hts_stringLengthUTF8(const char *s);
+/**
+ * Copy at most 'nBytes' bytes from src to dest, not truncating UTF-8
+ * sequences.
+ * Returns the number of bytes copied, not including the terminating \0.
+ **/
+extern size_t hts_copyStringUTF8(char *dest, const char *src,
+ size_t nBytes);
+
+/* WIN32 specific. */
+
#ifdef _WIN32
/**