Boost logo

Boost Users :

Subject: Re: [Boost-users] A library for "string chains"?
From: Jan Herrmann (jherrmann79_at_[hidden])
Date: 2014-08-15 03:10:10


On 14.08.2014 03:37, Richard wrote:
> [Please do not mail me a copy of your followup]
>
> legalize+jeeves_at_[hidden] (Richard) spake the secret code
> <lse4vi$fch$1_at_[hidden]> thusly:
>
>> Looks like string_ref is really close to what I was asking for; I'm
>> going to see if I can rework that gist with string_ref.
>
> Gist updated to use boost::string_ref:
> <https://gist.github.com/LegalizeAdulthood/7b67968bd93fbd4f9dbb>
>
> So string_ref took over the place of the string_chain_segment that I
> had before.
>
> Now the question remains... is there something that already exists
> that provides a string_view from a vector of string_ref's?

Range with
http://www.boost.org/doc/libs/1_56_0/libs/range/doc/html/range/reference/utilities/join.html
could help.

>
> As near as I can tell, string_view is a class defined in namespace std
> that provides a string-like interface over a single char* string. I'm
> looking to provide an abstraction over a vector<string_ref>.
>
> I can, of course, code one myself, but I'd rather not reinvent the
> wheel....
>
> Thanks to Jan Herrmann for the pointer to string_ref.
>

Jan Herrmann


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net