diff options
Diffstat (limited to 'doc/html/boost/xpressive/mark_tag.html')
-rw-r--r-- | doc/html/boost/xpressive/mark_tag.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/html/boost/xpressive/mark_tag.html b/doc/html/boost/xpressive/mark_tag.html index aeb77390c9..3982071758 100644 --- a/doc/html/boost/xpressive/mark_tag.html +++ b/doc/html/boost/xpressive/mark_tag.html @@ -7,7 +7,7 @@ <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> <link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset"> <link rel="up" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_hpp" title="Header <boost/xpressive/regex_primitives.hpp>"> -<link rel="prev" href="../../BOOST_XPR_ENSURE_.html" title="Macro BOOST_XPR_ENSURE_"> +<link rel="prev" href="regex_iterator.html" title="Struct template regex_iterator"> <link rel="next" href="inf.html" title="Global inf"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> @@ -21,7 +21,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="../../BOOST_XPR_ENSURE_.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_hpp"><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="inf.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="regex_iterator.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_hpp"><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="inf.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> <div class="refentry"> <a name="boost.xpressive.mark_tag"></a><div class="titlepage"></div> @@ -35,13 +35,13 @@ </span> <span class="keyword">struct</span> <a class="link" href="mark_tag.html" title="Struct mark_tag">mark_tag</a> <span class="special">{</span> <span class="comment">// <a class="link" href="mark_tag.html#boost.xpressive.mark_tagconstruct-copy-destruct">construct/copy/destruct</a></span> - <a class="link" href="mark_tag.html#idm46563145421456-bb"><span class="identifier">mark_tag</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span> + <a class="link" href="mark_tag.html#idp1010483504-bb"><span class="identifier">mark_tag</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span> - <span class="comment">// <a class="link" href="mark_tag.html#idm46563145424848-bb">private static functions</a></span> - <span class="keyword">static</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a class="link" href="mark_tag.html#idm46563145424272-bb"><span class="identifier">make_tag</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span> + <span class="comment">// <a class="link" href="mark_tag.html#idp1010480112-bb">private static functions</a></span> + <span class="keyword">static</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a class="link" href="mark_tag.html#idp1010480688-bb"><span class="identifier">make_tag</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span><span class="special">;</span> <span class="special">}</span><span class="special">;</span></pre></div> <div class="refsect1"> -<a name="idm45927680637568"></a><h2>Description</h2> +<a name="idp716399872"></a><h2>Description</h2> <p><code class="computeroutput"><a class="link" href="mark_tag.html" title="Struct mark_tag">mark_tag</a></code> is the type of the global sub-match placeholders <code class="computeroutput">s0</code>, <code class="computeroutput">s1</code>, etc.. You can use the <code class="computeroutput"><a class="link" href="mark_tag.html" title="Struct mark_tag">mark_tag</a></code> type to create your own sub-match placeholders with more meaningful names. This is roughly equivalent to the "named capture" feature of dynamic regular expressions.</p> <p>To create a named sub-match placeholder, initialize it with a unique integer. The integer must only be unique within the regex in which the placeholder is used. Then you can use it within static regexes to created sub-matches by assigning a sub-expression to it, or to refer back to already created sub-matches.</p> <pre class="programlisting"><span class="identifier">mark_tag</span> <span class="identifier">number</span><span class="special">(</span><span class="number">1</span><span class="special">)</span><span class="special">;</span> <span class="comment">// "number" is now equivalent to "s1"</span> @@ -50,12 +50,12 @@ </pre> <p>After a successful <code class="computeroutput">regex_match()</code> or <code class="computeroutput">regex_search()</code>, the sub-match placeholder can be used to index into the <code class="computeroutput"><a class="link" href="match_results.html" title="Struct template match_results">match_results</a><></code> object to retrieve the corresponding sub-match. </p> <div class="refsect2"> -<a name="idm45927680614800"></a><h3> +<a name="idp716422624"></a><h3> <a name="boost.xpressive.mark_tagconstruct-copy-destruct"></a><code class="computeroutput">mark_tag</code> public construct/copy/destruct</h3> <div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"> -<pre class="literallayout"><a name="idm46563145421456-bb"></a><span class="identifier">mark_tag</span><span class="special">(</span><span class="keyword">int</span> mark_nbr<span class="special">)</span><span class="special">;</span></pre>Initialize a <code class="computeroutput"><a class="link" href="mark_tag.html" title="Struct mark_tag">mark_tag</a></code> placeholder. <p> +<pre class="literallayout"><a name="idp1010483504-bb"></a><span class="identifier">mark_tag</span><span class="special">(</span><span class="keyword">int</span> mark_nbr<span class="special">)</span><span class="special">;</span></pre>Initialize a <code class="computeroutput"><a class="link" href="mark_tag.html" title="Struct mark_tag">mark_tag</a></code> placeholder. <p> </p> <div class="variablelist"><table border="0" class="variablelist compact"> @@ -86,9 +86,9 @@ </li></ol></div> </div> <div class="refsect2"> -<a name="idm45927680598864"></a><h3> -<a name="idm46563145424848-bb"></a><code class="computeroutput">mark_tag</code> private static functions</h3> -<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="idm46563145424272-bb"></a><span class="identifier">make_tag</span><span class="special">(</span><span class="keyword">int</span> mark_nbr<span class="special">)</span><span class="special">;</span></pre></li></ol></div> +<a name="idp716438624"></a><h3> +<a name="idp1010480112-bb"></a><code class="computeroutput">mark_tag</code> private static functions</h3> +<div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><pre class="literallayout"><span class="keyword">static</span> <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <a name="idp1010480688-bb"></a><span class="identifier">make_tag</span><span class="special">(</span><span class="keyword">int</span> mark_nbr<span class="special">)</span><span class="special">;</span></pre></li></ol></div> </div> </div> </div> @@ -102,7 +102,7 @@ </tr></table> <hr> <div class="spirit-nav"> -<a accesskey="p" href="../../BOOST_XPR_ENSURE_.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_hpp"><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="inf.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> +<a accesskey="p" href="regex_iterator.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../xpressive/reference.html#header.boost.xpressive.regex_primitives_hpp"><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="inf.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a> </div> </body> </html> |