summaryrefslogtreecommitdiff
path: root/utils/nsurl.h
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-07-17 19:18:20 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-10-24 15:12:56 +0100
commit5f5ca2c20587e035278163c9b444b36cfff6dced (patch)
treed5835847d6dc415b7da630c6ba070ef9b58b3a94 /utils/nsurl.h
parentc752c85618a57f8c82dc2e939ba2bf735e6c8372 (diff)
downloadnetsurf-5f5ca2c20587e035278163c9b444b36cfff6dced.tar.gz
netsurf-5f5ca2c20587e035278163c9b444b36cfff6dced.tar.bz2
Add a function to retrieve the decoded version of IDNA URLs
Diffstat (limited to 'utils/nsurl.h')
-rw-r--r--utils/nsurl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/nsurl.h b/utils/nsurl.h
index b84f55eed..4fbc17b49 100644
--- a/utils/nsurl.h
+++ b/utils/nsurl.h
@@ -181,6 +181,20 @@ const char *nsurl_access(const nsurl *url);
/**
+ * Access a NetSurf URL object as a UTF-8 string (for human readable IDNA)
+ *
+ * \param url NetSurf URL to retrieve a string pointer for.
+ * \return the required string
+ *
+ * It is up to the client to free the returned string when they have
+ * finished with it.
+ *
+ * The returned string has a trailing '\0'.
+ */
+const char *nsurl_access_utf8(const nsurl *url);
+
+
+/**
* Access a URL's path leaf as a string
*
* \param url NetSurf URL to retrieve a string pointer for.