Networking papers in post-Bristol mailing

194 views
Skip to first unread message

Kyle Kloepper

unread,
May 9, 2013, 4:40:17 PM5/9/13
to netwo...@isocpp.org
N3625 - A URI Library for C++
N3646 - Network byte order conversion

Note that we will be shaping N3646 into the working draft for the upcoming Networking TS. If you find any defects or would like to see additions, please open an issue on the SG4 github issues page.

-Kyle

Cleiton Santoia

unread,
Apr 11, 2014, 4:31:34 AM4/11/14
to netwo...@isocpp.org


I´m just reading URI paper when I saw the ranged parts


URI partRangeString
scheme[a, b)"http"
user_info nullopt
host[c, d)"www.example.com"
port nullopt
path[d, e)"/path/"
query[f, g)"key=value"
fragment[h, i)"fragment"

I think that is possible to skip the need to use nullopt, if we use an empty string_view, pointing URI part begin() and end() to same address, for example, "user info" be pointed to [b,b).


Glyn Matthews

unread,
Apr 11, 2014, 7:20:13 AM4/11/14
to netwo...@isocpp.org
There is a distinction between saying whether a part is empty and when it is not present. For example, if we re-write the URI in example above as:

http://www.example.com:/path/?key=value#fragment

The port is now an empty sub-string, instead of not being present.

Regards,
Glyn

Reply all
Reply to author
Forward
0 new messages