Boost logo

Boost :

From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2022-08-15 17:52:25


On Mon, Aug 15, 2022 at 10:46 AM Andrey Semashev via Boost
<boost_at_[hidden]> wrote:
> What isn't clear in the code Vinnie posted earlier is what is
> supposed to be appended (percent-escaped string or not)

When pct_encoded_view is iterated it produces normal individual
characters. That is, any percent-escapes in the referenced character
buffer have the encoding removed.

> and how (path appending or dumb concatenation). That's the problem
> with the docs, it says "appends", but there are too many ways to "append".

The docs are correct in leaving the meaning of "append" unspecified.
It is only necessary to meet the syntactic requirements. It is up to
the user to decide whether or not the behavior of the mutable string's
'append' and/or 'assign' operations are appropriate to achieve the
desired outcome.

Thanks


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