Boost logo

Boost Users :

Subject: Re: [Boost-users] A library for "string chains"?
From: Richard (legalize+jeeves_at_[hidden])
Date: 2014-08-13 21:37:47


[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?

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.

-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>

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