summaryrefslogtreecommitdiff
path: root/src/htscharset.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-07-12 15:24:59 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-07-12 15:24:59 +0000
commit676776e99be7a347eab5d4bbf4196204467571f5 (patch)
tree304523ad7f4b08713c4f4837bc8e93c0a9f45e79 /src/htscharset.h
parent98ea5be208a248bb7006748a64c1f5f59b2f5c6d (diff)
Added hts_isStringUTF8() function.
Diffstat (limited to 'src/htscharset.h')
-rw-r--r--src/htscharset.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/htscharset.h b/src/htscharset.h
index 92f8b7c..0b5b4f2 100644
--- a/src/htscharset.h
+++ b/src/htscharset.h
@@ -87,6 +87,11 @@ extern char *hts_getCharsetFromMeta(const char *html, size_t size);
extern int hts_isStringAscii(const char *s, size_t size);
/**
+ * Is the given string an UTF-8 string ?
+ **/
+extern int hts_isStringUTF8(const char *s, size_t size);
+
+/**
* Is the given charset the UTF-8 charset ?
**/
extern int hts_isCharsetUTF8(const char *charset);