Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2021-10-13 23:52:48


On Wed, Oct 13, 2021 at 4:09 PM Gavin Lambert via Boost
<boost_at_[hidden]> wrote:
> ...

Given the following path:

    /path/to/file.txt

What should iterating the segments return?

    { "path", "to", "file.txt" }
    or
    { "/path", "/to", "/file.txt" }

or something else?

Given this path:

    my/download/folder/

What should iterating the segments return?

    { "my", "download", "folder", "" }
    or
    { "my/", "download/", "folder/" }
    or
    { "my", "/download", "/folder", "/" }

or something else?

Given an empty relative-ref (empty string) in a url u, what is the
encoded path after executing this statement?

    u.segments().push_back( "index.htm" );

Anyone feel free to answer!

Thanks


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk