Boost logo

Boost Users :

Subject: Re: [Boost-users] A library for "string chains"?
From: Ben Pope (benpope81_at_[hidden])
Date: 2014-08-11 02:55:12


On Saturday, August 09, 2014 11:44 AM, Richard wrote:
>
> I'm interested to know if anyone is aware of a "string chain" library
> that provides a (read-only) API similar to std::string, but is
> fundamentally just managing (b,e) pointer pairs into some larger
> buffer.
>
> Boost.Test has a funky string class hiding in it called basic_cstring,
> but it wasn't created for this purpose.

I don't know how useful it would be for your purpose, but you could look
at joined_range and string_algo:

http://www.boost.org/doc/libs/1_56_0/doc/html/string_algo/design.html#string_algo.string

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

Ben


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