Boost logo

Boost Users :

From: gast128 (gast128_at_[hidden])
Date: 2007-04-02 10:22:20


Dear all,

I was trying to remove (replace, find...) characters from a string through the
handy classification class. Unfortunately there is no erase_if fct which can
be fed with this predicate functions. There is a trim_if function, but this
trims only.

It would be handy if all these '_if' variants where implemented for find,
repalce and erase. Also the 'any' (or contains_if with predicate) is something
we need regularly.

But maybe this functionality can be achieved in another way. Anyone an idea?
Remove_if/erase combination does of course work, but these are quite
cumbersome.

Wkr,
me


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