summaryrefslogtreecommitdiff
path: root/src/htscharset.h
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-19 10:07:45 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-19 10:07:45 +0000
commit003cb47b95eb7676ca27791c97de7d884e83d058 (patch)
tree9ebb74dbf56c2efa3d1400a10f1922edcc64ab9f /src/htscharset.h
parentbb90afc68247b6158abd62430ae7ad4102683c47 (diff)
Added support for IDNA / RFC 3492 (Punycode) handling within URLs.
Diffstat (limited to 'src/htscharset.h')
-rw-r--r--src/htscharset.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/htscharset.h b/src/htscharset.h
index 2b9238a..cee644c 100644
--- a/src/htscharset.h
+++ b/src/htscharset.h
@@ -64,6 +64,16 @@ extern char *hts_convertStringFromUTF8(const char *s, size_t size,
extern char *hts_getCharsetFromMeta(const char *html, size_t size);
/**
+ * Is the given string an ASCII string ?
+ **/
+extern int hts_isStringAscii(const char *s, size_t size);
+
+/**
+ * Is the given charset the UTF-8 charset ?
+ **/
+extern int hts_isCharsetUTF8(const char *charset);
+
+/**
* Get an UTF-8 string length in characters.
**/
extern size_t hts_stringLengthUTF8(const char *s);
@@ -85,6 +95,11 @@ extern char *hts_convertUCS2StringToUTF8(LPWSTR woutput, int wsize);
**/
extern char *hts_convertStringSystemToUTF8(const char *s, size_t size);
+/**
+ * Convert an UTF-8 string to an IDNA (RFC 3492) string.
+ **/
+extern char *hts_convertStringUTF8ToIDNA(const char *s, size_t size);
+
#endif
#endif