Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Function template replace_all_occurrences_of

boost::unit_test::utils::replace_all_occurrences_of — This algorithm replaces all occurrences of a set of substrings by another substrings.

Synopsis

// In header: <boost/test/utils/algorithm.hpp>


template<typename StringClass, typename ForwardIterator> 
  StringClass replace_all_occurrences_of(StringClass str, 
                                         ForwardIterator first1, 
                                         ForwardIterator last1, 
                                         ForwardIterator first2, 
                                         ForwardIterator last2);

Description

Parameters:

str

- string of operation

first1

- iterator to the beginning of the substrings to replace

last1

- iterator to the end of the substrings to replace

first2

- iterator to the beginning of the substrings to replace with

last2

- iterator to the end of the substrings to replace with


PrevUpHomeNext