| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> |
| <title>Type match_flag_type</title> |
| <link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css"> |
| <meta name="generator" content="DocBook XSL Stylesheets V1.75.2"> |
| <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_constants_hpp" title="Header <boost/xpressive/regex_constants.hpp>"> |
| <link rel="prev" href="syntax_option_type.html" title="Type syntax_option_type"> |
| <link rel="next" href="error_type.html" title="Type error_type"> |
| </head> |
| <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| <table cellpadding="2" width="100%"><tr> |
| <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td> |
| <td align="center"><a href="../../../../../index.html">Home</a></td> |
| <td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td> |
| <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> |
| <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> |
| <td align="center"><a href="../../../../../more/index.htm">More</a></td> |
| </tr></table> |
| <hr> |
| <div class="spirit-nav"> |
| <a accesskey="p" href="syntax_option_type.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../xpressive/reference.html#header.boost.xpressive.regex_constants_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="error_type.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> |
| </div> |
| <div class="refentry"> |
| <a name="boost.xpressive.regex_constants.match_flag_type"></a><div class="titlepage"></div> |
| <div class="refnamediv"> |
| <h2><span class="refentrytitle">Type match_flag_type</span></h2> |
| <p>boost::xpressive::regex_constants::match_flag_type</p> |
| </div> |
| <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> |
| <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../../xpressive/reference.html#header.boost.xpressive.regex_constants_hpp" title="Header <boost/xpressive/regex_constants.hpp>">boost/xpressive/regex_constants.hpp</a>> |
| |
| </span> |
| |
| <span class="keyword">enum</span> <span class="identifier">match_flag_type</span> <span class="special">{</span> <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_default">match_default</a> = 0, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_not_bol">match_not_bol</a> = 1 << 1, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_not_eol">match_not_eol</a> = 1 << 2, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_not_bow">match_not_bow</a> = 1 << 3, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_not_eow">match_not_eow</a> = 1 << 4, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_any">match_any</a> = 1 << 7, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_not_null">match_not_null</a> = 1 << 8, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_continuous">match_continuous</a> = 1 << 10, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_partial">match_partial</a> = 1 << 11, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.match_prev_avail">match_prev_avail</a> = 1 << 12, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.format_default">format_default</a> = 0, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.format_sed">format_sed</a> = 1 << 13, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.format_perl">format_perl</a> = 1 << 14, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.format_no_copy">format_no_copy</a> = 1 << 15, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.format_first_only">format_first_only</a> = 1 << 16, |
| <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.format_literal">format_literal</a> = 1 << 17, <a class="link" href="match_flag_type.html#boost.xpressive.regex_constants.match_flag_type.format_all">format_all</a> = 1 << 18 <span class="special">}</span><span class="special">;</span></pre></div> |
| <div class="refsect1"> |
| <a name="id3180073"></a><h2>Description</h2> |
| <p>Flags used to customize the behavior of the regex algorithms </p> |
| <div class="variablelist"><dl> |
| <dt><span class="term"><code class="computeroutput">match_default</code><a name="boost.xpressive.regex_constants.match_flag_type.match_default"></a></span></dt> |
| <dd><p>Specifies that matching of regular expressions proceeds without any modification of the normal rules used in ECMA-262, ECMAScript Language Specification, Chapter 15 part 10, RegExp (Regular Expression) Objects (FWD.1) </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_not_bol</code><a name="boost.xpressive.regex_constants.match_flag_type.match_not_bol"></a></span></dt> |
| <dd><p>Specifies that the expression "^" should not be matched against the sub-sequence [first,first). </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_not_eol</code><a name="boost.xpressive.regex_constants.match_flag_type.match_not_eol"></a></span></dt> |
| <dd><p>Specifies that the expression "\$" should not be matched against the sub-sequence [last,last). </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_not_bow</code><a name="boost.xpressive.regex_constants.match_flag_type.match_not_bow"></a></span></dt> |
| <dd><p>Specifies that the expression "\\b" should not be matched against the sub-sequence [first,first). </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_not_eow</code><a name="boost.xpressive.regex_constants.match_flag_type.match_not_eow"></a></span></dt> |
| <dd><p>Specifies that the expression "\\b" should not be matched against the sub-sequence [last,last). </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_any</code><a name="boost.xpressive.regex_constants.match_flag_type.match_any"></a></span></dt> |
| <dd><p>Specifies that if more than one match is possible then any match is an acceptable result. </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_not_null</code><a name="boost.xpressive.regex_constants.match_flag_type.match_not_null"></a></span></dt> |
| <dd><p>Specifies that the expression can not be matched against an empty sequence. </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_continuous</code><a name="boost.xpressive.regex_constants.match_flag_type.match_continuous"></a></span></dt> |
| <dd><p>Specifies that the expression must match a sub-sequence that begins at first. </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_partial</code><a name="boost.xpressive.regex_constants.match_flag_type.match_partial"></a></span></dt> |
| <dd><p>Specifies that if no match can be found, then it is acceptable to return a match [from, last) where from != last, if there exists some sequence of characters [from,to) of which [from,last) is a prefix, and which would result in a full match. </p></dd> |
| <dt><span class="term"><code class="computeroutput">match_prev_avail</code><a name="boost.xpressive.regex_constants.match_flag_type.match_prev_avail"></a></span></dt> |
| <dd><p>Specifies that --first is a valid iterator position, when this flag is set then the flags match_not_bol and match_not_bow are ignored by the regular expression algorithms (RE.7) and iterators (RE.8). </p></dd> |
| <dt><span class="term"><code class="computeroutput">format_default</code><a name="boost.xpressive.regex_constants.match_flag_type.format_default"></a></span></dt> |
| <dd><p>Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using the rules used by the ECMAScript replace function in ECMA-262, ECMAScript Language Specification, Chapter 15 part 5.4.11 String.prototype.replace. (FWD.1). In addition during search and replace operations then all non-overlapping occurrences of the regular expression are located and replaced, and sections of the input that did not match the expression, are copied unchanged to the output string. </p></dd> |
| <dt><span class="term"><code class="computeroutput">format_sed</code><a name="boost.xpressive.regex_constants.match_flag_type.format_sed"></a></span></dt> |
| <dd><p>Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using the rules used by the Unix sed utility in IEEE Std 1003.1-2001, Portable Operating SystemInterface (POSIX), Shells and Utilities. </p></dd> |
| <dt><span class="term"><code class="computeroutput">format_perl</code><a name="boost.xpressive.regex_constants.match_flag_type.format_perl"></a></span></dt> |
| <dd><p>Specifies that when a regular expression match is to be replaced by a new string, that the new string is constructed using an implementation defined superset of the rules used by the ECMAScript replace function in ECMA-262, ECMAScript Language Specification, Chapter 15 part 5.4.11 String.prototype.replace (FWD.1). </p></dd> |
| <dt><span class="term"><code class="computeroutput">format_no_copy</code><a name="boost.xpressive.regex_constants.match_flag_type.format_no_copy"></a></span></dt> |
| <dd><p>When specified during a search and replace operation, then sections of the character container sequence being searched that do match the regular expression, are not copied to the output string. </p></dd> |
| <dt><span class="term"><code class="computeroutput">format_first_only</code><a name="boost.xpressive.regex_constants.match_flag_type.format_first_only"></a></span></dt> |
| <dd><p>When specified during a search and replace operation, then only the first occurrence of the regular expression is replaced. </p></dd> |
| <dt><span class="term"><code class="computeroutput">format_literal</code><a name="boost.xpressive.regex_constants.match_flag_type.format_literal"></a></span></dt> |
| <dd><p>Treat the format string as a literal. </p></dd> |
| <dt><span class="term"><code class="computeroutput">format_all</code><a name="boost.xpressive.regex_constants.match_flag_type.format_all"></a></span></dt> |
| <dd><p>Specifies that all syntax extensions are enabled, including conditional (?ddexpression1:expression2) replacements. </p></dd> |
| </dl></div> |
| </div> |
| </div> |
| <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> |
| <td align="left"></td> |
| <td align="right"><div class="copyright-footer">Copyright © 2007 Eric Niebler<p> |
| Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 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>) |
| </p> |
| </div></td> |
| </tr></table> |
| <hr> |
| <div class="spirit-nav"> |
| <a accesskey="p" href="syntax_option_type.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../../xpressive/reference.html#header.boost.xpressive.regex_constants_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="error_type.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a> |
| </div> |
| </body> |
| </html> |