Clarify docs for g_uri_escape_string (#508773)
authorAlexander Larsson <alexl@redhat.com>
Mon, 14 Jan 2008 14:39:28 +0000 (14:39 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Mon, 14 Jan 2008 14:39:28 +0000 (14:39 +0000)
2008-01-14  Alexander Larsson  <alexl@redhat.com>

        * glib/gurifuncs.c:
Clarify docs for g_uri_escape_string (#508773)

svn path=/trunk/; revision=6304

ChangeLog
glib/gurifuncs.c

index f0204cb..7aede89 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-14  Alexander Larsson  <alexl@redhat.com>
+
+        * glib/gurifuncs.c:
+       Clarify docs for g_uri_escape_string (#508773)
+
 2008-01-12  Andre Klapper  <a9016009@gmx.de>
 
        * configure.in: ALL_LINGUAS: remove line breaks from previous 
index 8b728c0..0af480b 100644 (file)
@@ -200,6 +200,13 @@ g_uri_get_scheme (const char  *uri)
  * @allow_utf8: %TRUE if the result can include UTF-8 characters.
  * 
  * Escapes a string for use in a URI.
+ *
+ * Normally all characters that are not "unreserved" (i.e. ASCII alphanumerical
+ * characters plus dash, dot, underscore and tilde) are escaped.
+ * But if you specify characters in @reserved_chars_allowed they are not
+ * escaped. This is useful for the "reserved" characters in the URI
+ * specification, since those are allowed unescaped in some portions of
+ * a URI. 
  * 
  * Returns: an escaped version of @unescaped. The returned string should be 
  * freed when no longer needed.