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

This is the documentation for a snapshot of the master branch, built from commit a231b0a164.
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:

first1

- iterator to the beginning of the substrings to replace

first2

- iterator to the beginning of the substrings to replace with

last1

- iterator to the end of the substrings to replace

last2

- iterator to the end of the substrings to replace with

str

- string of operation


PrevUpHomeNext