Boost logo

Boost :

From: msackett_at_[hidden]
Date: 2001-08-16 21:39:38


--- In boost_at_y..., rwgk_at_y... wrote:
> --- In boost_at_y..., Jens Maurer <Jens.Maurer_at_g...> wrote:
> > > void trim(string& [, characters to trim]);
> > > void trim_beginning(string& [, characters to trim]);
> > > void trim_end(string& [, characters to trim]);
> >
> > I haven't felt an urgent need for these, yet.
>
> I do!
> Has the Python string module been mentioned in this context
> already?
> http://www.python.org/doc/current/lib/module-string.html
>
> Most frequently used by me:
> split, strip (seems equivalent to trim above), join,
> upper, lower, expandtabs, capitalize.
>
> Ralf

I must confess that when I prepared my feedback to Darin's original
proposal I used the inventory of functions in the python string
module as a guideline for suggestions for new functions.

What I think is most useful about Python's string module as a source
of ideas is the fact that it already consists of free functions, and
so can be mapped over to Standard C++ more easily and compatibly than
an approach that relies on creating a new string class.


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