Boost logo

Boost Users :

From: Bruno Lalande (bruno.lalande_at_[hidden])
Date: 2008-06-05 04:42:39


How about:

#include <boost/algorithm/string.hpp>
boost::algorithm::replace_all(str, "abc", "abc$$$");

(or replace_first if you'll never have more than one occurrence of abc)

Bruno


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