[glib: 7/15] guri: Add links to RFC 3986 in code comments




commit 41a21c35660da18e905dd2c7a6a489a19cd12681
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Aug 6 14:02:51 2020 +0100

    guri: Add links to RFC 3986 in code comments
    
    This should make the RFC easier to refer to in future.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 glib/guri.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/glib/guri.c b/glib/guri.c
index c7edf137b..62e8bbf49 100644
--- a/glib/guri.c
+++ b/glib/guri.c
@@ -1110,6 +1110,8 @@ g_uri_is_valid (const gchar  *uri_string,
 
 /* This does the "Remove Dot Segments" algorithm from section 5.2.4 of
  * RFC 3986, except that @path is modified in place.
+ *
+ * See https://tools.ietf.org/html/rfc3986#section-5.2.4
  */
 static void
 remove_dot_segments (gchar *path)
@@ -1247,6 +1249,8 @@ g_uri_parse_relative (GUri         *base_uri,
     {
       /* This is section 5.2.2 of RFC 3986, except that we're doing
        * it in place in @uri rather than copying from R to T.
+       *
+       * See https://tools.ietf.org/html/rfc3986#section-5.2.2
        */
       if (uri->scheme)
         remove_dot_segments (uri->path);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]