Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / test / doc / html / boost / unit_test / utils / replace_all_occurrences_of.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function template replace_all_occurrences_of</title>
5 <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="../../../index.html" title="Boost.Test">
8 <link rel="up" href="../../../header/boost/test/utils/algorithm_hpp.html" title="Header &lt;boost/test/utils/algorithm.hpp&gt;">
9 <link rel="prev" href="find_las_idm46279112331504.html" title="Function template find_last_not_of">
10 <link rel="next" href="replace__idm46279112313504.html" title="Function template replace_all_occurrences_with_wildcards">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../../more/index.htm">More</a></td>
20 </tr></table>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="find_las_idm46279112331504.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/test/utils/algorithm_hpp.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace__idm46279112313504.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry">
26 <a name="boost.unit_test.utils.replace_all_occurrences_of"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Function template replace_all_occurrences_of</span></h2>
29 <p>boost::unit_test::utils::replace_all_occurrences_of &#8212; This algorithm replaces all occurrences of a set of substrings by another substrings. </p>
30 </div>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../../header/boost/test/utils/algorithm_hpp.html" title="Header &lt;boost/test/utils/algorithm.hpp&gt;">boost/test/utils/algorithm.hpp</a>&gt;
33
34 </span>
35 <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> StringClass<span class="special">,</span> <span class="keyword">typename</span> ForwardIterator<span class="special">&gt;</span> 
36   <span class="identifier">StringClass</span> <span class="identifier">replace_all_occurrences_of</span><span class="special">(</span><span class="identifier">StringClass</span> str<span class="special">,</span> 
37                                          <span class="identifier">ForwardIterator</span> first1<span class="special">,</span> 
38                                          <span class="identifier">ForwardIterator</span> last1<span class="special">,</span> 
39                                          <span class="identifier">ForwardIterator</span> first2<span class="special">,</span> 
40                                          <span class="identifier">ForwardIterator</span> last2<span class="special">)</span><span class="special">;</span></pre></div>
41 <div class="refsect1">
42 <a name="idm45313882557248"></a><h2>Description</h2>
43 <p>
44 </p>
45 <div class="variablelist"><table border="0" class="variablelist compact">
46 <colgroup>
47 <col align="left" valign="top">
48 <col>
49 </colgroup>
50 <tbody><tr>
51 <td><p><span class="term">Parameters:</span></p></td>
52 <td><div class="variablelist"><table border="0" class="variablelist compact">
53 <colgroup>
54 <col align="left" valign="top">
55 <col>
56 </colgroup>
57 <tbody>
58 <tr>
59 <td><p><span class="term"><code class="computeroutput">first1</code></span></p></td>
60 <td><p>- iterator to the beginning of the substrings to replace </p></td>
61 </tr>
62 <tr>
63 <td><p><span class="term"><code class="computeroutput">first2</code></span></p></td>
64 <td><p>- iterator to the beginning of the substrings to replace with </p></td>
65 </tr>
66 <tr>
67 <td><p><span class="term"><code class="computeroutput">last1</code></span></p></td>
68 <td><p>- iterator to the end of the substrings to replace </p></td>
69 </tr>
70 <tr>
71 <td><p><span class="term"><code class="computeroutput">last2</code></span></p></td>
72 <td><p>- iterator to the end of the substrings to replace with </p></td>
73 </tr>
74 <tr>
75 <td><p><span class="term"><code class="computeroutput">str</code></span></p></td>
76 <td><p>- string of operation </p></td>
77 </tr>
78 </tbody>
79 </table></div></td>
80 </tr></tbody>
81 </table></div>
82 </div>
83 </div>
84 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
85 <td align="left"></td>
86 <td align="right"><div class="copyright-footer">Copyright &#169; 2001-2019 Boost.Test
87       contributors<p>
88         Distributed under the Boost Software License, Version 1.0. (See accompanying
89         file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
90       </p>
91 </div></td>
92 </tr></table>
93 <hr>
94 <div class="spirit-nav">
95 <a accesskey="p" href="find_las_idm46279112331504.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../header/boost/test/utils/algorithm_hpp.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="replace__idm46279112313504.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
96 </div>
97 </body>
98 </html>