~barry/ubuntu/precise/boost1.46/debian-merge

« back to all changes in this revision

Viewing changes to doc/html/boost/xpressive/regex_replace.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2011-03-13 00:37:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110313003735-r7j6jdk0hkywfzuw
Tags: 1.46.1-1
* New upstream.

* control: Add libboost-random1.46-dev to depends of -all-dev and
  suggests of -dev.  Closes: #615849.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
                <span class="keyword">typename</span> <span class="identifier">add_const</span><span class="special">&lt;</span> <span class="identifier">Char</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <span class="special">*</span> format<span class="special">,</span> 
80
80
                <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> flags <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span><span class="special">;</span></pre></div>
81
81
<div class="refsect1">
82
 
<a name="id3334768"></a><h2>Description</h2>
 
82
<a name="id3334802"></a><h2>Description</h2>
83
83
<p>Constructs a <code class="computeroutput">regex_iterator</code> object: <code class="computeroutput">regex_iterator&lt; BidiIter &gt; i(begin, end, re, flags)</code>, and uses <code class="computeroutput">i</code> to enumerate through all of the matches m of type <code class="computeroutput">match_results&lt; BidiIter &gt;</code> that occur within the sequence <code class="computeroutput">[begin, end)</code>. If no such matches are found and <code class="computeroutput">!(flags &amp; format_no_copy)</code> then calls <code class="computeroutput">std::copy(begin, end, out)</code>. Otherwise, for each match found, if <code class="computeroutput">!(flags &amp; format_no_copy)</code> calls <code class="computeroutput">std::copy(m.prefix().first, m.prefix().second, out)</code>, and then calls <code class="computeroutput">m.format(out, format, flags)</code>. Finally if <code class="computeroutput">!(flags &amp; format_no_copy)</code> calls <code class="computeroutput">std::copy(last_m.suffix().first, last_m.suffix().second, out)</code> where <code class="computeroutput">last_m</code> is a copy of the last match found.</p>
84
84
<p>If <code class="computeroutput">flags &amp; format_first_only</code> is non-zero then only the first match found is replaced.</p>
85
85
<p>