|
Boost-Commit : |
From: john_at_[hidden]
Date: 2007-12-14 05:16:43
Author: johnmaddock
Date: 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
New Revision: 42026
URL: http://svn.boost.org/trac/boost/changeset/42026
Log:
Merged typo fixes from trunk.
Text files modified:
branches/release/libs/regex/doc/Jamfile.v2 | 3
branches/release/libs/regex/doc/concepts.qbk | 7
branches/release/libs/regex/doc/html/boost_regex/background_information.html | 33 -
branches/release/libs/regex/doc/html/boost_regex/background_information/acknowledgements.html | 20
branches/release/libs/regex/doc/html/boost_regex/background_information/examples.html | 54 +-
branches/release/libs/regex/doc/html/boost_regex/background_information/faq.html | 67 ++-
branches/release/libs/regex/doc/html/boost_regex/background_information/futher.html | 21
branches/release/libs/regex/doc/html/boost_regex/background_information/headers.html | 22
branches/release/libs/regex/doc/html/boost_regex/background_information/history.html | 45 +-
branches/release/libs/regex/doc/html/boost_regex/background_information/locale.html | 87 ++--
branches/release/libs/regex/doc/html/boost_regex/background_information/performance.html | 17
branches/release/libs/regex/doc/html/boost_regex/background_information/redist.html | 18
branches/release/libs/regex/doc/html/boost_regex/background_information/standards.html | 56 +-
branches/release/libs/regex/doc/html/boost_regex/background_information/thread_safety.html | 44 +-
branches/release/libs/regex/doc/html/boost_regex/captures.html | 72 ++--
branches/release/libs/regex/doc/html/boost_regex/configuration.html | 14
branches/release/libs/regex/doc/html/boost_regex/configuration/algorithm.html | 18
branches/release/libs/regex/doc/html/boost_regex/configuration/compiler.html | 19
branches/release/libs/regex/doc/html/boost_regex/configuration/linkage.html | 19
branches/release/libs/regex/doc/html/boost_regex/configuration/locale.html | 22
branches/release/libs/regex/doc/html/boost_regex/configuration/tuning.html | 18
branches/release/libs/regex/doc/html/boost_regex/format.html | 32 -
branches/release/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html | 46 +-
branches/release/libs/regex/doc/html/boost_regex/format/perl_format.html | 19
branches/release/libs/regex/doc/html/boost_regex/format/sed_format.html | 18
branches/release/libs/regex/doc/html/boost_regex/install.html | 101 +++--
branches/release/libs/regex/doc/html/boost_regex/introduction_and_overview.html | 73 ++--
branches/release/libs/regex/doc/html/boost_regex/partial_matches.html | 41 +-
branches/release/libs/regex/doc/html/boost_regex/ref.html | 41 -
branches/release/libs/regex/doc/html/boost_regex/ref/bad_expression.html | 63 +-
branches/release/libs/regex/doc/html/boost_regex/ref/basic_regex.html | 622 +++++++++++++++++-------------------
branches/release/libs/regex/doc/html/boost_regex/ref/concepts.html | 20
branches/release/libs/regex/doc/html/boost_regex/ref/concepts/charT_concept.html | 31
branches/release/libs/regex/doc/html/boost_regex/ref/concepts/iterator_concepts.html | 21
branches/release/libs/regex/doc/html/boost_regex/ref/concepts/traits_concept.html | 117 ++----
branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces.html | 26 -
branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html | 233 ++++++------
branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html | 60 +-
branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html | 76 +--
branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html | 55 +-
branches/release/libs/regex/doc/html/boost_regex/ref/error_type.html | 35 +-
branches/release/libs/regex/doc/html/boost_regex/ref/match_flag_type.html | 48 +-
branches/release/libs/regex/doc/html/boost_regex/ref/match_results.html | 232 ++++++-------
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings.html | 25
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu.html | 25
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/intro.html | 28
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html | 85 ++--
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html | 83 ++--
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html | 74 +--
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html | 25
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html | 125 +++----
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html | 30 -
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html | 76 ++--
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html | 32 -
branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html | 32 -
branches/release/libs/regex/doc/html/boost_regex/ref/posix.html | 106 +++---
branches/release/libs/regex/doc/html/boost_regex/ref/regex_iterator.html | 179 ++++-----
branches/release/libs/regex/doc/html/boost_regex/ref/regex_match.html | 157 ++++----
branches/release/libs/regex/doc/html/boost_regex/ref/regex_replace.html | 101 ++---
branches/release/libs/regex/doc/html/boost_regex/ref/regex_search.html | 145 ++++----
branches/release/libs/regex/doc/html/boost_regex/ref/regex_token_iterator.html | 152 ++++----
branches/release/libs/regex/doc/html/boost_regex/ref/regex_traits.html | 47 +-
branches/release/libs/regex/doc/html/boost_regex/ref/sub_match.html | 516 +++++++++++++-----------------
branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type.html | 19
branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_basic.html | 59 +-
branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_extended.html | 44 +-
branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_literal.html | 23
branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_overview.html | 49 +-
branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_perl.html | 47 +-
branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_synopsis.html | 30
branches/release/libs/regex/doc/html/boost_regex/syntax.html | 38 -
branches/release/libs/regex/doc/html/boost_regex/syntax/basic_extended.html | 460 +++++++++++++--------------
branches/release/libs/regex/doc/html/boost_regex/syntax/basic_syntax.html | 244 ++++++-------
branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes.html | 24
branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/optional_char_class_names.html | 26
branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/std_char_clases.html | 25
branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names.html | 19
branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/digraphs.html | 19
branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/named_unicode.html | 28
branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/posix_symbolic_names.html | 23
branches/release/libs/regex/doc/html/boost_regex/syntax/leftmost_longest_rule.html | 23
branches/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html | 676 +++++++++++++++++++--------------------
branches/release/libs/regex/doc/html/boost_regex/unicode.html | 45 +-
branches/release/libs/regex/doc/html/index.html | 24 -
branches/release/libs/regex/doc/regex.qbk | 2
branches/release/libs/regex/doc/regex_traits.qbk | 4
86 files changed, 3108 insertions(+), 3572 deletions(-)
Modified: branches/release/libs/regex/doc/Jamfile.v2
==============================================================================
--- branches/release/libs/regex/doc/Jamfile.v2 (original)
+++ branches/release/libs/regex/doc/Jamfile.v2 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -34,7 +34,7 @@
# PDF Options:
# TOC Generation: this is needed for FOP-0.9 and later:
- #<xsl:param>fop1.extensions=1
+ <xsl:param>fop1.extensions=0
# Or enable this if you're using XEP:
<xsl:param>xep.extensions=1
# TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
@@ -55,3 +55,4 @@
;
+
Modified: branches/release/libs/regex/doc/concepts.qbk
==============================================================================
--- branches/release/libs/regex/doc/concepts.qbk (original)
+++ branches/release/libs/regex/doc/concepts.qbk 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -67,10 +67,9 @@
[[v.lookup_classname(F1, F2)][X::char_class_type][Converts the character sequence designated by the iterator range \[F1,F2) into a bitmask type that can subsequently be passed to isctype. Values returned from lookup_classname can be safely bitwise or'ed together. Returns 0 if the character sequence is not the name of a character class recognized by X. The value returned shall be independent of the case of the characters in the sequence.]]
[[v.lookup_collatename(F1, F2)][X::string_type][Returns a sequence of characters that represents the collating element consisting of the character sequence designated by the iterator range \[F1, F2). Returns an empty string if the character sequence is not a valid collating element.]]
[[v.isctype(c, v.lookup_classname (F1, F2))][bool][Returns true if character c is a member of the character class designated by the iterator range \[F1, F2), false otherwise.]]
-[[v.value(c, i)][int][Returns the value represented by the digit c in base I if the character c is a valid digit in base I; otherwise returns -1. \[Note: the value of I will only be 8, 10, or 16. -end note\]]]
+[[v.value(c, I)][int][Returns the value represented by the digit c in base I if the character c is a valid digit in base I; otherwise returns -1. \[Note: the value of I will only be 8, 10, or 16. -end note\]]]
[[u.imbue(loc)][X::locale_type][Imbues u with the locale loc, returns the previous locale used by u if any. ]]
[[v.getloc()][X::locale_type][Returns the current locale used by v if any. ]]
-[[v.error_string(i)][std::string][Returns a human readable error string for the error condition i, where i is one of the values enumerated by type regex_constants::error_type. If the value i is not recognized then returns the string "Unknown error" or a localized equivalent.]]
]
[h4 Additional Optional Requirements]
@@ -89,14 +88,14 @@
[[v.escape_syntax_type(c)][regex_constants::escape_syntax_type][Returns a symbolic value of type regex_constants::escape_syntax_type, that signifies the meaning of character c within the regular expression grammar, when c has been preceded by an escape character. Precondition: if b is the character preceding c in the expression being parsed then: `v.syntax_type(b) == syntax_escape`]]
[[v.translate(c, b)][X::char_type][Returns a character d such that: for any character d that is to be considered equivalent to c then `v.translate(c,false)==v.translate(d,false)`. Likewise for all characters C that are to be considered equivalent to c when comparisons are to be performed without regard to case, then `v.translate(c,true)==v.translate(C,true)`.]]
[[v.toi(I1, I2, i)][An integer type capable of holding either a charT or an int.][Behaves as follows: if `p == q` or if `*p` is not a digit character then returns -1. Otherwise performs formatted numeric input on the sequence \[p,q) and returns the result as an int. Postcondition: either p == q or *p is a non-digit character.]]
-[[v.error_string(i)][std::string][Returns a human readable error string for the error condition i, where i is one of the values enumerated by type regex_constants::error_type. If the value i is not recognized then returns the string "Unknown error" or a localized equivalent.]]
+[[v.error_string(I)][std::string][Returns a human readable error string for the error condition i, where i is one of the values enumerated by type regex_constants::error_type. If the value /I/ is not recognized then returns the string "Unknown error" or a localized equivalent.]]
[[v.tolower(c)][X::char_type][Converts c to lower case, used for Perl-style \l and \L formating operations.]]
[[v.toupper(c)][X::char_type][Converts c to upper case, used for Perl-style \u and \U formating operations.]]
]
[endsect]
-[section:iterator_concepts Iterator Rrequirements]
+[section:iterator_concepts Iterator Requirements]
The regular expression algorithms (and iterators) take all require a
Bidirectional-Iterator.
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -3,12 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Background Information</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="ref/deprecated_interfaces/old_regex.html" title=" High
- Level Class RegEx (Deprecated)">
-<link rel="next" href="background_information/headers.html" title=" Headers">
+<link rel="prev" href="ref/deprecated_interfaces/old_regex.html" title="High Level Class RegEx (Deprecated)">
+<link rel="next" href="background_information/headers.html" title="Headers">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.background_information"></a>Background Information</h2></div></div></div>
+<a name="boost_regex.background_information"></a>Background Information
+</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="section"> Headers</span></dt>
<dt><span class="section"> Localization</span></dt>
@@ -44,31 +44,14 @@
Acknowledgements</a></span></dt>
<dt><span class="section"> History</span></dt>
</dl></div>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/acknowledgements.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/acknowledgements.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/acknowledgements.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Acknowledgements</title>
+<title>Acknowledgements</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="redist.html" title=" Redistributables">
-<link rel="next" href="history.html" title=" History">
+<link rel="prev" href="redist.html" title="Redistributables">
+<link rel="next" href="history.html" title="History">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.acknowledgements"></a><a href="acknowledgements.html" title="
- Acknowledgements">
- Acknowledgements</a></h3></div></div></div>
+<a name="boost_regex.background_information.acknowledgements"></a><a href="acknowledgements.html" title="Acknowledgements">
+ Acknowledgements</a>
+</h3></div></div></div>
<p>
The author can be contacted at john - at - johnmaddock.co.uk; the home page
for this library is at www.boost.org.
@@ -75,10 +74,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/examples.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/examples.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/examples.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Test and
- Example Programs</title>
+<title>Test and Example Programs</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="thread_safety.html" title=" Thread
- Safety">
-<link rel="next" href="futher.html" title=" References
- and Further Information">
+<link rel="prev" href="thread_safety.html" title="Thread Safety">
+<link rel="next" href="futher.html" title="References and Further Information">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,16 +24,16 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.examples"></a><a href="examples.html" title=" Test and
- Example Programs"> Test and
- Example Programs</a></h3></div></div></div>
-<a name="boost_regex.background_information.examples.test_programs"></a><h4>
-<a name="id614398"></a>
+<a name="boost_regex.background_information.examples"></a><a href="examples.html" title="Test and Example Programs"> Test and
+ Example Programs</a>
+</h3></div></div></div>
+<a name="boost_regex.background_information.examples.test_programs"></a><h5>
+<a name="id647187"></a>
<a href="examples.html#boost_regex.background_information.examples.test_programs">Test
Programs</a>
- </h4>
+ </h5>
<p>
- <span class="bold"><b>regress:</b></span>
+ <span class="bold"><strong>regress:</strong></span>
</p>
<p>
A regression test application that gives the matching/searching algorithms
@@ -52,7 +49,7 @@
Files: See directory.
</p>
<p>
- <span class="bold"><b>bad_expression_test:</b></span>
+ <span class="bold"><strong>bad_expression_test:</strong></span>
</p>
<p>
Verifies that "bad" regular expressions don't cause the matcher
@@ -65,7 +62,7 @@
Files: bad_expression_test.cpp.
</p>
<p>
- <span class="bold"><b>recursion_test:</b></span>
+ <span class="bold"><strong>recursion_test:</strong></span>
</p>
<p>
Verifies that the matcher can't overrun the stack (no matter what the expression).
@@ -77,7 +74,7 @@
Files: recursion_test.cpp.
</p>
<p>
- <span class="bold"><b>concepts:</b></span>
+ <span class="bold"><strong>concepts:</strong></span>
</p>
<p>
Verifies that the library meets all documented concepts (a compile only test).
@@ -89,7 +86,7 @@
Files: concept_check.cpp.
</p>
<p>
- <span class="bold"><b>captures_test:</b></span>
+ <span class="bold"><strong>captures_test:</strong></span>
</p>
<p>
Test code for captures.
@@ -100,13 +97,13 @@
<p>
Files: captures_test.cpp.
</p>
-<a name="boost_regex.background_information.examples.example_programs"></a><h4>
-<a name="id614615"></a>
+<a name="boost_regex.background_information.examples.example_programs"></a><h5>
+<a name="id647395"></a>
<a href="examples.html#boost_regex.background_information.examples.example_programs">Example
programs</a>
- </h4>
+ </h5>
<p>
- <span class="bold"><b>grep</b></span>
+ <span class="bold"><strong>grep</strong></span>
</p>
<p>
A simple grep implementation, run with the -h command line option to find
@@ -116,7 +113,7 @@
Files: grep.cpp
</p>
<p>
- <span class="bold"><b>timer.exe</b></span>
+ <span class="bold"><strong>timer.exe</strong></span>
</p>
<p>
A simple interactive expression matching application, the results of all
@@ -126,11 +123,11 @@
<p>
Files: regex_timer.cpp.
</p>
-<a name="boost_regex.background_information.examples.code_snippets"></a><h4>
-<a name="id614698"></a>
+<a name="boost_regex.background_information.examples.code_snippets"></a><h5>
+<a name="id647476"></a>
<a href="examples.html#boost_regex.background_information.examples.code_snippets">Code
snippets</a>
- </h4>
+ </h5>
<p>
The snippets examples contain the code examples used in the documentation:
</p>
@@ -211,10 +208,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/faq.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/faq.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/faq.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> FAQ</title>
+<title>FAQ</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="futher.html" title=" References
- and Further Information">
-<link rel="next" href="performance.html" title=" Performance">
+<link rel="prev" href="futher.html" title="References and Further Information">
+<link rel="next" href="performance.html" title="Performance">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,13 +24,14 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.faq"></a> FAQ</h3></div></div></div>
+<a name="boost_regex.background_information.faq"></a> FAQ
+</h3></div></div></div>
<p>
- <span class="bold"><b>Q.</b></span> I can't get regex++ to work with escape
+ <span class="bold"><strong>Q.</strong></span> I can't get regex++ to work with escape
characters, what's going on?
</p>
<p>
- <span class="bold"><b>A.</b></span> If you embed regular expressions in C++
+ <span class="bold"><strong>A.</strong></span> If you embed regular expressions in C++
code, then remember that escape characters are processed twice: once by the
C++ compiler, and once by the Boost.Regex expression compiler, so to pass
the regular expression \d+ to Boost.Regex, you need to embed "\d+"
@@ -39,21 +39,21 @@
"\\" in your code.
</p>
<p>
- <span class="bold"><b>Q.</b></span> No matter what I do regex_match always
+ <span class="bold"><strong>Q.</strong></span> No matter what I do regex_match always
returns false, what's going on?
</p>
<p>
- <span class="bold"><b>A.</b></span> The algorithm regex_match only succeeds
- if the expression matches <span class="bold"><b>all</b></span> of the text,
- if you want to <span class="bold"><b>find</b></span> a sub-string within
+ <span class="bold"><strong>A.</strong></span> The algorithm regex_match only succeeds
+ if the expression matches <span class="bold"><strong>all</strong></span> of the text,
+ if you want to <span class="bold"><strong>find</strong></span> a sub-string within
the text that matches the expression then use regex_search instead.
</p>
<p>
- <span class="bold"><b>Q.</b></span> Why does using parenthesis in a POSIX
+ <span class="bold"><strong>Q.</strong></span> Why does using parenthesis in a POSIX
regular expression change the result of a match?
</p>
<p>
- <span class="bold"><b>A.</b></span> For POSIX (extended and basic) regular
+ <span class="bold"><strong>A.</strong></span> For POSIX (extended and basic) regular
expressions, but not for perl regexes, parentheses don't only mark; they
determine what the best match is as well. When the expression is compiled
as a POSIX basic or extended regex then Boost.Regex follows the POSIX standard
@@ -85,11 +85,11 @@
as the expression.
</p>
<p>
- <span class="bold"><b>Q.</b></span> Why don't character ranges work properly
+ <span class="bold"><strong>Q.</strong></span> Why don't character ranges work properly
(POSIX mode only)?
</p>
<p>
- <span class="bold"><b>A.</b></span> The POSIX standard specifies that character
+ <span class="bold"><strong>A.</strong></span> The POSIX standard specifies that character
range expressions are locale sensitive - so for example the expression [A-Z]
will match any collating element that collates between 'A' and 'Z'. That
means that for most locales other than "C" or "POSIX",
@@ -97,39 +97,39 @@
most people expect - or at least not what most people have come to expect
from regular expression engines. For this reason, the default behaviour of
Boost.Regex (perl mode) is to turn locale sensitive collation off by not
- setting the <tt class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">collate</span></tt>
+ setting the <code class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">collate</span></code>
compile time flag. However if you set a non-default compile time flag - for
- example <tt class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">extended</span></tt> or <tt class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">basic</span></tt>,
+ example <code class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">extended</span></code> or <code class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">basic</span></code>,
then locale dependent collation will be enabled, this also applies to the
- POSIX API functions which use either <tt class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">extended</span></tt>
- or <tt class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">basic</span></tt> internally. [Note - when <tt class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">nocollate</span></tt> in effect, the library behaves
+ POSIX API functions which use either <code class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">extended</span></code>
+ or <code class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">basic</span></code> internally. [Note - when <code class="computeroutput"><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">nocollate</span></code> in effect, the library behaves
"as if" the LC_COLLATE locale category were always "C",
regardless of what its actually set to - end note].
</p>
<p>
- <span class="bold"><b>Q.</b></span> Why are there no throw specifications
+ <span class="bold"><strong>Q.</strong></span> Why are there no throw specifications
on any of the functions? What exceptions can the library throw?
</p>
<p>
- <span class="bold"><b>A.</b></span> Not all compilers support (or honor)
+ <span class="bold"><strong>A.</strong></span> Not all compilers support (or honor)
throw specifications, others support them but with reduced efficiency. Throw
specifications may be added at a later date as compilers begin to handle
this better. The library should throw only three types of exception: [boost::regex_error]
- can be thrown by basic_regex when compiling a regular
- expression, <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt> can be thrown when a call
- to <tt class="computeroutput"><span class="identifier">basic_regex</span><span class="special">::</span><span class="identifier">imbue</span></tt> tries to open a message catalogue
- that doesn't exist, or when a call to regex_search or regex_match results in an "everlasting"
- search, or when a call to <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">GrepFiles</span></tt>
- or <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">FindFiles</span></tt> tries to open a file that cannot
- be opened, finally <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">bad_alloc</span></tt> can be thrown by just about any
+ can be thrown by basic_regex
when compiling a regular
+ expression, <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code> can be thrown when a call
+ to <code class="computeroutput"><span class="identifier">basic_regex</span><span class="special">::</span><span class="identifier">imbue</span></code> tries to open a message catalogue
+ that doesn't exist, or when a call to regex_search
or regex_match
results in an "everlasting"
+ search, or when a call to <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">GrepFiles</span></code>
+ or <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">FindFiles</span></code> tries to open a file that cannot
+ be opened, finally <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">bad_alloc</span></code> can be thrown by just about any
of the functions in this library.
</p>
<p>
- <span class="bold"><b>Q.</b></span> Why can't I use the "convenience"
+ <span class="bold"><strong>Q.</strong></span> Why can't I use the "convenience"
versions of regex_match / regex_search / regex_grep / regex_format / regex_merge?
</p>
<p>
- <span class="bold"><b>A.</b></span> These versions may or may not be available
+ <span class="bold"><strong>A.</strong></span> These versions may or may not be available
depending upon the capabilities of your compiler, the rules determining the
format of these functions are quite complex - and only the versions visible
to a standard compliant compiler are given in the help. To find out what
@@ -141,10 +141,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/futher.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/futher.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/futher.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> References
- and Further Information</title>
+<title>References and Further Information</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="examples.html" title=" Test and
- Example Programs">
-<link rel="next" href="faq.html" title=" FAQ">
+<link rel="prev" href="examples.html" title="Test and Example Programs">
+<link rel="next" href="faq.html" title="FAQ">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.futher"></a><a href="futher.html" title=" References
- and Further Information"> References
- and Further Information</a></h3></div></div></div>
+<a name="boost_regex.background_information.futher"></a><a href="futher.html" title="References and Further Information"> References
+ and Further Information</a>
+</h3></div></div></div>
<p>
Short tutorials on regular expressions can be <a href="http://etext.lib.virginia.edu/helpsheets/regex.html" target="_top">found
here</a> and here.
@@ -64,10 +62,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/headers.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/headers.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/headers.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Headers</title>
+<title>Headers</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
<link rel="prev" href="../background_information.html" title="Background Information">
-<link rel="next" href="locale.html" title=" Localization">
+<link rel="next" href="locale.html" title="Localization">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,25 +24,27 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.headers"></a> Headers</h3></div></div></div>
+<a name="boost_regex.background_information.headers"></a> Headers
+</h3></div></div></div>
<p>
- There are two main headers used by this library: <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>
- provides full access to the main template library, while <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>
+ There are two main headers used by this library: <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
+ provides full access to the main template library, while <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
provides access to the (deprecated) high level class RegEx, and the POSIX
API functions.
</p>
<p>
- There is also a header containing only forward declarations <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex_fwd</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>
- for use when an interface is dependent upon basic_regex, but otherwise does
+ There is also a header containing only forward declarations <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex_fwd</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
+ for use when an interface is dependent upon basic_regex
, but otherwise does
not need the full definitions.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/history.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/history.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/history.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,12 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> History</title>
+<title>History</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="acknowledgements.html" title="
- Acknowledgements">
+<link rel="prev" href="acknowledgements.html" title="Acknowledgements">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,12 +23,13 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.history"></a> History</h3></div></div></div>
-<a name="boost_regex.background_information.history.boost_1_34"></a><h4>
-<a name="id616902"></a>
+<a name="boost_regex.background_information.history"></a> History
+</h3></div></div></div>
+<a name="boost_regex.background_information.history.boost_1_34"></a><h5>
+<a name="id649643"></a>
<a href="history.html#boost_regex.background_information.history.boost_1_34">Boost
1.34</a>
- </h4>
+ </h5>
<div class="itemizedlist"><ul type="disc">
<li>
Fix for non-greedy repeats and partial matches not working correctly in
@@ -48,11 +48,11 @@
the same as |.
</li>
</ul></div>
-<a name="boost_regex.background_information.history.boost_1_33_1"></a><h4>
-<a name="id616955"></a>
+<a name="boost_regex.background_information.history.boost_1_33_1"></a><h5>
+<a name="id649694"></a>
<a href="history.html#boost_regex.background_information.history.boost_1_33_1">Boost
1.33.1</a>
- </h4>
+ </h5>
<div class="itemizedlist"><ul type="disc">
<li>
Fixed broken makefiles.
@@ -118,11 +118,11 @@
Fixed bug that allowed some invalid expressions to be accepted.
</li>
</ul></div>
-<a name="boost_regex.background_information.history.boost_1_33_0"></a><h4>
-<a name="id617086"></a>
+<a name="boost_regex.background_information.history.boost_1_33_0"></a><h5>
+<a name="id649824"></a>
<a href="history.html#boost_regex.background_information.history.boost_1_33_0">Boost
1.33.0</a>
- </h4>
+ </h5>
<div class="itemizedlist"><ul type="disc">
<li>
Completely rewritten expression parsing code, and traits class support;
@@ -173,19 +173,19 @@
in the expression the error occured.
</li>
</ul></div>
-<a name="boost_regex.background_information.history.boost_1_32_1"></a><h4>
-<a name="id617194"></a>
+<a name="boost_regex.background_information.history.boost_1_32_1"></a><h5>
+<a name="id649923"></a>
<a href="history.html#boost_regex.background_information.history.boost_1_32_1">Boost
1.32.1</a>
- </h4>
+ </h5>
<div class="itemizedlist"><ul type="disc"><li>
Fixed bug in partial matches of bounded repeats of '.'.
</li></ul></div>
-<a name="boost_regex.background_information.history.boost_1_31_0"></a><h4>
-<a name="id617229"></a>
+<a name="boost_regex.background_information.history.boost_1_31_0"></a><h5>
+<a name="id649957"></a>
<a href="history.html#boost_regex.background_information.history.boost_1_31_0">Boost
1.31.0</a>
- </h4>
+ </h5>
<div class="itemizedlist"><ul type="disc">
<li>
Completely rewritten pattern matching code - it is now up to 10 times faster
@@ -220,10 +220,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/locale.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/locale.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/locale.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Localization</title>
+<title>Localization</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="headers.html" title=" Headers">
-<link rel="next" href="thread_safety.html" title=" Thread
- Safety">
+<link rel="prev" href="headers.html" title="Headers">
+<link rel="next" href="thread_safety.html" title="Thread Safety">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.locale"></a> Localization</h3></div></div></div>
+<a name="boost_regex.background_information.locale"></a> Localization
+</h3></div></div></div>
<p>
Boost.Regex provides extensive support for run-time localization, the localization
model used can be split into two parts: front-end and back-end.
@@ -57,52 +57,50 @@
<p>
There are three separate localization mechanisms supported by Boost.Regex:
</p>
-<a name="boost_regex.background_information.locale.win32_localization_model_"></a><h4>
-<a name="id610859"></a>
+<a name="boost_regex.background_information.locale.win32_localization_model_"></a><h5>
+<a name="id643689"></a>
<a href="locale.html#boost_regex.background_information.locale.win32_localization_model_">Win32
localization model.</a>
- </h4>
+ </h5>
<p>
This is the default model when the library is compiled under Win32, and is
- encapsulated by the traits class <tt class="computeroutput"><span class="identifier">w32_regex_traits</span></tt>.
- When this model is in effect each basic_regex object gets it's own
+ encapsulated by the traits class <code class="computeroutput"><span class="identifier">w32_regex_traits</span></code>.
+ When this model is in effect each basic_regex
object gets it's own
LCID, by default this is the users default setting as returned by GetUserDefaultLCID,
- but you can call imbue on the <tt class="computeroutput"><span class="identifier">basic_regex</span></tt>
+ but you can call imbue on the <code class="computeroutput"><span class="identifier">basic_regex</span></code>
object to set it's locale to some other LCID if you wish. All the settings
used by Boost.Regex are acquired directly from the operating system bypassing
the C run time library. Front-end localization requires a resource dll, containing
a string table with the user-defined strings. The traits class exports the
function:
</p>
-<pre class="programlisting">
-<span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">);</span>
+<pre class="programlisting"><span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">);</span>
</pre>
<p>
which needs to be called with a string identifying the name of the resource
dll, before your code compiles any regular expressions (but not necessarily
- before you construct any <tt class="computeroutput"><span class="identifier">basic_regex</span></tt>
+ before you construct any <code class="computeroutput"><span class="identifier">basic_regex</span></code>
instances):
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">w32_regex_traits</span><span class="special"><</span><span class="keyword">char</span><span class="special">>::</span><span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="string">"mydll.dll"</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">w32_regex_traits</span><span class="special"><</span><span class="keyword">char</span><span class="special">>::</span><span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="string">"mydll.dll"</span><span class="special">);</span>
</pre>
<p>
The library provides full Unicode support under NT, under Windows 9x the
library degrades gracefully - characters 0 to 255 are supported, the remainder
are treated as "unknown" graphic characters.
</p>
-<a name="boost_regex.background_information.locale.c_localization_model_"></a><h4>
-<a name="id611109"></a>
+<a name="boost_regex.background_information.locale.c_localization_model_"></a><h5>
+<a name="id643933"></a>
<a href="locale.html#boost_regex.background_information.locale.c_localization_model_">C
localization model.</a>
- </h4>
+ </h5>
<p>
This model has been deprecated in favor of the C++ locale for all non-Windows
compilers that support it. This locale is encapsulated by the traits class
- <tt class="computeroutput"><span class="identifier">c_regex_traits</span></tt>, Win32 users
+ <code class="computeroutput"><span class="identifier">c_regex_traits</span></code>, Win32 users
can force this model to take effect by defining the pre-processor symbol
BOOST_REGEX_USE_C_LOCALE. When this model is in effect there is a single
- global locale, as set by <tt class="computeroutput"><span class="identifier">setlocale</span></tt>.
+ global locale, as set by <code class="computeroutput"><span class="identifier">setlocale</span></code>.
All settings are acquired from your run time library, consequently Unicode
support is dependent upon your run time library implementation.
</p>
@@ -111,54 +109,52 @@
</p>
<p>
Note that calling setlocale invalidates all compiled regular expressions,
- calling <tt class="computeroutput"><span class="identifier">setlocale</span><span class="special">(</span><span class="identifier">LC_ALL</span><span class="special">,</span> <span class="string">"C"</span><span class="special">)</span></tt>
+ calling <code class="computeroutput"><span class="identifier">setlocale</span><span class="special">(</span><span class="identifier">LC_ALL</span><span class="special">,</span> <span class="string">"C"</span><span class="special">)</span></code>
will make this library behave equivalent to most traditional regular expression
libraries including version 1 of this library.
</p>
-<a name="boost_regex.background_information.locale.c___localization_model_"></a><h4>
-<a name="id611224"></a>
+<a name="boost_regex.background_information.locale.c___localization_model_"></a><h5>
+<a name="id644045"></a>
<a href="locale.html#boost_regex.background_information.locale.c___localization_model_">C++
localization model.</a>
- </h4>
+ </h5>
<p>
This model is the default for non-Windows compilers.
</p>
<p>
- When this model is in effect each instance of basic_regex has its own instance
- of <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span></tt>, class basic_regex also has a member function
- <tt class="computeroutput"><span class="identifier">imbue</span></tt> which allows the locale
+ When this model is in effect each instance of basic_regex
has its own instance
+ of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">locale</span></code>, class basic_regex
also has a member function
+ <code class="computeroutput"><span class="identifier">imbue</span></code> which allows the locale
for the expression to be set on a per-instance basis. Front end localization
- requires a POSIX message catalogue, which will be loaded via the <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">messages</span></tt>
+ requires a POSIX message catalogue, which will be loaded via the <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">messages</span></code>
facet of the expression's locale, the traits class exports the symbol:
</p>
-<pre class="programlisting">
-<span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">);</span>
+<pre class="programlisting"><span class="keyword">static</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">);</span>
</pre>
<p>
which needs to be called with a string identifying the name of the message
catalogue, before your code compiles any regular expressions (but not necessarily
before you construct any basic_regex instances):
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">cpp_regex_traits</span><span class="special"><</span><span class="keyword">char</span><span class="special">>::</span><span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="string">"mycatalogue"</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">cpp_regex_traits</span><span class="special"><</span><span class="keyword">char</span><span class="special">>::</span><span class="identifier">set_message_catalogue</span><span class="special">(</span><span class="string">"mycatalogue"</span><span class="special">);</span>
</pre>
<p>
- Note that calling <tt class="computeroutput"><span class="identifier">basic_regex</span><span class="special"><>::</span><span class="identifier">imbue</span></tt>
- will invalidate any expression currently compiled in that instance of basic_regex.
+ Note that calling <code class="computeroutput"><span class="identifier">basic_regex</span><span class="special"><>::</span><span class="identifier">imbue</span></code>
+ will invalidate any expression currently compiled in that instance of basic_regex
.
</p>
<p>
Finally note that if you build the library with a non-default localization
model, then the appropriate pre-processor symbol (BOOST_REGEX_USE_C_LOCALE
or BOOST_REGEX_USE_CPP_LOCALE) must be defined both when you build the support
- library, and when you include <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>
- or <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>
- in your code. The best way to ensure this is to add the #define to <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">user</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>.
+ library, and when you include <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
+ or <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
+ in your code. The best way to ensure this is to add the #define to <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">user</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>.
</p>
-<a name="boost_regex.background_information.locale.providing_a_message_catalogue"></a><h4>
-<a name="id611693"></a>
+<a name="boost_regex.background_information.locale.providing_a_message_catalogue"></a><h5>
+<a name="id644505"></a>
<a href="locale.html#boost_regex.background_information.locale.providing_a_message_catalogue">Providing
a message catalogue</a>
- </h4>
+ </h5>
<p>
In order to localize the front end of the library, you need to provide the
library with the appropriate message strings contained either in a resource
@@ -1272,7 +1268,7 @@
</td>
<td>
<p>
- "Unmatched [ or <tt class="literal">" </tt>
+ "Unmatched [ or <code class="literal">" </code>
</p>
</td>
<td>
@@ -1779,10 +1775,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/performance.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/performance.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/performance.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Performance</title>
+<title>Performance</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="faq.html" title=" FAQ">
-<link rel="next" href="standards.html" title=" Standards
- Conformance">
+<link rel="prev" href="faq.html" title="FAQ">
+<link rel="next" href="standards.html" title="Standards Conformance">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.performance"></a> Performance</h3></div></div></div>
+<a name="boost_regex.background_information.performance"></a> Performance
+</h3></div></div></div>
<p>
The performance of Boost.Regex in both recursive and non-recursive modes
should be broadly comparable to other regular expression libraries: recursive
@@ -46,10 +46,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/redist.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/redist.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/redist.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Redistributables</title>
+<title>Redistributables</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="standards.html" title=" Standards
- Conformance">
-<link rel="next" href="acknowledgements.html" title="
- Acknowledgements">
+<link rel="prev" href="standards.html" title="Standards Conformance">
+<link rel="next" href="acknowledgements.html" title="Acknowledgements">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.redist"></a> Redistributables</h3></div></div></div>
+<a name="boost_regex.background_information.redist"></a> Redistributables
+</h3></div></div></div>
<p>
If you are using Microsoft or Borland C++ and link to a dll version of the
run time library, then you can choose to also link to a dll version of Boost.Regex
@@ -48,10 +47,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/standards.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/standards.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/standards.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Standards
- Conformance</title>
+<title>Standards Conformance</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="performance.html" title=" Performance">
-<link rel="next" href="redist.html" title=" Redistributables">
+<link rel="prev" href="performance.html" title="Performance">
+<link rel="next" href="redist.html" title="Redistributables">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,22 +24,22 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.standards"></a><a href="standards.html" title=" Standards
- Conformance"> Standards
- Conformance</a></h3></div></div></div>
-<a name="boost_regex.background_information.standards.c__"></a><h4>
-<a name="id615703"></a>
+<a name="boost_regex.background_information.standards"></a><a href="standards.html" title="Standards Conformance"> Standards
+ Conformance</a>
+</h3></div></div></div>
+<a name="boost_regex.background_information.standards.c__"></a><h5>
+<a name="id648468"></a>
<a href="standards.html#boost_regex.background_information.standards.c__">C++</a>
- </h4>
+ </h5>
<p>
Boost.Regex is intended to conform to the <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf" target="_top">Technical
Report on C++ Library Extensions</a>.
</p>
-<a name="boost_regex.background_information.standards.ecmascript___javascript"></a><h4>
-<a name="id615743"></a>
+<a name="boost_regex.background_information.standards.ecmascript___javascript"></a><h5>
+<a name="id648507"></a>
<a href="standards.html#boost_regex.background_information.standards.ecmascript___javascript">ECMAScript
/ JavaScript</a>
- </h4>
+ </h5>
<p>
All of the ECMAScript regular expression syntax features are supported, except
that:
@@ -49,10 +48,10 @@
The escape sequence \u matches any upper case character (the same as [[:upper:]])
rather than a Unicode escape sequence; use \x{DDDD} for Unicode escape sequences.
</p>
-<a name="boost_regex.background_information.standards.perl"></a><h4>
-<a name="id615784"></a>
+<a name="boost_regex.background_information.standards.perl"></a><h5>
+<a name="id648546"></a>
<a href="standards.html#boost_regex.background_information.standards.perl">Perl</a>
- </h4>
+ </h5>
<p>
Almost all Perl features are supported, except for:
</p>
@@ -62,10 +61,10 @@
<p>
(??{code}) Not implementable in a compiled strongly typed language.
</p>
-<a name="boost_regex.background_information.standards.posix"></a><h4>
-<a name="id615824"></a>
+<a name="boost_regex.background_information.standards.posix"></a><h5>
+<a name="id648584"></a>
<a href="standards.html#boost_regex.background_information.standards.posix">POSIX</a>
- </h4>
+ </h5>
<p>
All the POSIX basic and extended regular expression features are supported,
except that:
@@ -82,10 +81,10 @@
implementation doesn't work on your platform, then you will need to supply
a custom traits class.
</p>
-<a name="boost_regex.background_information.standards.unicode"></a><h4>
-<a name="id615873"></a>
+<a name="boost_regex.background_information.standards.unicode"></a><h5>
+<a name="id648632"></a>
<a href="standards.html#boost_regex.background_information.standards.unicode">Unicode</a>
- </h4>
+ </h5>
<p>
The following comments refer to <a href="http://unicode.org/reports/tr18/" target="_top">Unicode
Technical Standard #18: Unicode Regular Expressions version 11</a>.
@@ -165,13 +164,13 @@
Indirectly support by forward-lookahead:
</p>
<p>
- <tt class="computeroutput"><span class="special">(?=[[:</span><span class="identifier">X</span><span class="special">:]])[[:</span><span class="identifier">Y</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">(?=[[:</span><span class="identifier">X</span><span class="special">:]])[[:</span><span class="identifier">Y</span><span class="special">:]]</span></code>
</p>
<p>
Gives the intersection of character properties X and Y.
</p>
<p>
- <tt class="computeroutput"><span class="special">(?![[:</span><span class="identifier">X</span><span class="special">:]])[[:</span><span class="identifier">Y</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">(?![[:</span><span class="identifier">X</span><span class="special">:]])[[:</span><span class="identifier">Y</span><span class="special">:]]</span></code>
</p>
<p>
Gives everything in Y that is not in X (subtraction).
@@ -469,7 +468,7 @@
</td>
<td>
<p>
- Supported: pass the flag <tt class="computeroutput"><span class="identifier">match_partial</span></tt>
+ Supported: pass the flag <code class="computeroutput"><span class="identifier">match_partial</span></code>
to the regex algorithms.
</p>
</td>
@@ -550,10 +549,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/background_information/thread_safety.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/background_information/thread_safety.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/background_information/thread_safety.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Thread
- Safety</title>
+<title>Thread Safety</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
<link rel="up" href="../background_information.html" title="Background Information">
-<link rel="prev" href="locale.html" title=" Localization">
-<link rel="next" href="examples.html" title=" Test and
- Example Programs">
+<link rel="prev" href="locale.html" title="Localization">
+<link rel="next" href="examples.html" title="Test and Example Programs">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,44 +24,43 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.background_information.thread_safety"></a><a href="thread_safety.html" title=" Thread
- Safety"> Thread
- Safety</a></h3></div></div></div>
+<a name="boost_regex.background_information.thread_safety"></a><a href="thread_safety.html" title="Thread Safety"> Thread
+ Safety</a>
+</h3></div></div></div>
<p>
The Boost.Regex library is thread safe when Boost is: you can verify that
- Boost is in thread safe mode by checking to see if <tt class="computeroutput"><span class="identifier">BOOST_HAS_THREADS</span></tt>
+ Boost is in thread safe mode by checking to see if <code class="computeroutput"><span class="identifier">BOOST_HAS_THREADS</span></code>
is defined: this macro is set automatically by the config system when threading
support is turned on in your compiler.
</p>
<p>
- Class basic_regex
+ Class basic_regex
and its typedefs regex and wregex are thread safe, in that compiled regular
expressions can safely be shared between threads. The matching algorithms
- regex_match,
- regex_search,
- and regex_replace
- are all re-entrant and thread safe. Class match_results is now thread safe,
+ regex_match
,
+ regex_search
,
+ and regex_replace
+ are all re-entrant and thread safe. Class match_results
is now thread safe,
in that the results of a match can be safely copied from one thread to another
- (for example one thread may find matches and push match_results instances onto a queue,
+ (for example one thread may find matches and push match_results
instances onto a queue,
while another thread pops them off the other end), otherwise use a separate
- instance of match_results
+ instance of match_results
per thread.
</p>
<p>
- The POSIX API functions are
+ The POSIX API functions are
all re-entrant and thread safe, regular expressions compiled with regcomp
can also be shared between threads.
</p>
<p>
- The <a href="../ref/deprecated_interfaces/old_regex.html" title=" High
- Level Class RegEx (Deprecated)">class
+ The <a href="../ref/deprecated_interfaces/old_regex.html" title="High Level Class RegEx (Deprecated)">class
RegEx</a> is only thread safe if each thread gets its own RegEx instance
(apartment threading) - this is a consequence of RegEx handling both compiling
and matching regular expressions.
</p>
<p>
Finally note that changing the global locale invalidates all compiled regular
- expressions, therefore calling <tt class="computeroutput"><span class="identifier">set_locale</span></tt>
+ expressions, therefore calling <code class="computeroutput"><span class="identifier">set_locale</span></code>
from one thread while another uses regular expressions will produce unpredictable
results.
</p>
@@ -74,10 +71,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/captures.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/captures.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/captures.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Understanding Marked Sub-Expressions
- and Captures</title>
+<title>Understanding Marked Sub-Expressions and Captures</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="unicode.html" title=" Unicode and Boost.Regex">
-<link rel="next" href="partial_matches.html" title=" Partial Matches">
+<link rel="prev" href="unicode.html" title="Unicode and Boost.Regex">
+<link rel="next" href="partial_matches.html" title="Partial Matches">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.captures"></a><a href="captures.html" title=" Understanding Marked Sub-Expressions
- and Captures"> Understanding Marked Sub-Expressions
- and Captures</a></h2></div></div></div>
+<a name="boost_regex.captures"></a><a href="captures.html" title="Understanding Marked Sub-Expressions and Captures"> Understanding Marked Sub-Expressions
+ and Captures</a>
+</h2></div></div></div>
<p>
Captures are the iterator ranges that are "captured" by marked sub-expressions
as a regular expression gets matched. Each marked sub-expression can result
@@ -35,12 +34,12 @@
how captures and marked sub-expressions in Boost.Regex are represented and
accessed.
</p>
-<a name="boost_regex.captures.marked_sub_expressions"></a><h4>
-<a name="id459027"></a>
+<a name="boost_regex.captures.marked_sub_expressions"></a><h5>
+<a name="id492844"></a>
<a href="captures.html#boost_regex.captures.marked_sub_expressions">Marked sub-expressions</a>
- </h4>
+ </h5>
<p>
- Every time a Perl regular expression contains a parenthesis group <tt class="computeroutput"><span class="special">()</span></tt>, it spits out an extra field, known as a
+ Every time a Perl regular expression contains a parenthesis group <code class="computeroutput"><span class="special">()</span></code>, it spits out an extra field, known as a
marked sub-expression, for example the expression:
</p>
<pre class="programlisting">(\w+)\W+(\w+)</pre>
@@ -48,7 +47,7 @@
Has two marked sub-expressions (known as $1 and $2 respectively), in addition
the complete match is known as $&, everything before the first match as
$`, and everything after the match as $'. So if the above expression is searched
- for within <tt class="computeroutput"><span class="string">"@abc def--"</span></tt>,
+ for within <code class="computeroutput"><span class="string">"@abc def--"</span></code>,
then we obtain:
</p>
<div class="informaltable"><table class="table">
@@ -132,11 +131,10 @@
</tbody>
</table></div>
<p>
- In Boost.Regex all these are accessible via the match_results class that gets filled
- in when calling one of the regular expression matching algorithms ( regex_search, regex_match, or regex_iterator). So given:
+ In Boost.Regex all these are accessible via the match_results
class that gets filled
+ in when calling one of the regular expression matching algorithms ( regex_search
, regex_match
, or regex_iterator
). So given:
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">IteratorType</span><span class="special">></span> <span class="identifier">m</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">IteratorType</span><span class="special">></span> <span class="identifier">m</span><span class="special">;</span>
</pre>
<p>
The Perl and Boost.Regex equivalents are as follows:
@@ -167,7 +165,7 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">()</span></code>
</p>
</td>
</tr>
@@ -179,7 +177,7 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">]</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">]</span></code>
</p>
</td>
</tr>
@@ -191,7 +189,7 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">]</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">]</span></code>
</p>
</td>
</tr>
@@ -203,26 +201,26 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">()</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
<p>
- In Boost.Regex each sub-expression match is represented by a sub_match object, this is basically
+ In Boost.Regex each sub-expression match is represented by a sub_match
object, this is basically
just a pair of iterators denoting the start and end position of the sub-expression
match, but there are some additional operators provided so that objects of
- type sub_match
- behave a lot like a <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></tt>: for example they are implicitly
- convertible to a <tt class="computeroutput"><span class="identifier">basic_string</span></tt>,
+ type sub_match
+ behave a lot like a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code>: for example they are implicitly
+ convertible to a <code class="computeroutput"><span class="identifier">basic_string</span></code>,
they can be compared to a string, added to a string, or streamed out to an
output stream.
</p>
-<a name="boost_regex.captures.unmatched_sub_expressions"></a><h4>
-<a name="id459648"></a>
+<a name="boost_regex.captures.unmatched_sub_expressions"></a><h5>
+<a name="id493467"></a>
<a href="captures.html#boost_regex.captures.unmatched_sub_expressions">Unmatched Sub-Expressions</a>
- </h4>
+ </h5>
<p>
When a regular expression match is found there is no need for all of the marked
sub-expressions to have participated in the match, for example the expression:
@@ -230,12 +228,12 @@
<pre class="programlisting">(abc)|(def)</pre>
<p>
can match either $1 or $2, but never both at the same time. In Boost.Regex
- you can determine which sub-expressions matched by accessing the <tt class="computeroutput"><span class="identifier">sub_match</span><span class="special">::</span><span class="identifier">matched</span></tt> data member.
+ you can determine which sub-expressions matched by accessing the <code class="computeroutput"><span class="identifier">sub_match</span><span class="special">::</span><span class="identifier">matched</span></code> data member.
</p>
-<a name="boost_regex.captures.repeated_captures"></a><h4>
-<a name="id459714"></a>
+<a name="boost_regex.captures.repeated_captures"></a><h5>
+<a name="id493529"></a>
<a href="captures.html#boost_regex.captures.repeated_captures">Repeated Captures</a>
- </h4>
+ </h5>
<p>
When a marked sub-expression is repeated, then the sub-expression gets "captured"
multiple times, however normally only the final capture is available, for example
@@ -252,13 +250,12 @@
</p>
<p>
However, Boost.Regex has an experimental feature that allows all the capture
- information to be retained - this is accessed either via the <tt class="computeroutput"><span class="identifier">match_results</span><span class="special">::</span><span class="identifier">captures</span></tt> member function or the <tt class="computeroutput"><span class="identifier">sub_match</span><span class="special">::</span><span class="identifier">captures</span></tt> member function. These functions
+ information to be retained - this is accessed either via the <code class="computeroutput"><span class="identifier">match_results</span><span class="special">::</span><span class="identifier">captures</span></code> member function or the <code class="computeroutput"><span class="identifier">sub_match</span><span class="special">::</span><span class="identifier">captures</span></code> member function. These functions
return a container that contains a sequence of all the captures obtained during
the regular expression matching. The following example program shows how this
information may be used:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
<span class="keyword">void</span> <span class="identifier">print_captures</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">regx</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">text</span><span class="special">)</span>
@@ -372,10 +369,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/configuration.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/configuration.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/configuration.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Configuration</title>
+<title>Configuration</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
<link rel="prev" href="../index.html" title="Boost.Regex">
-<link rel="next" href="configuration/compiler.html" title=" Compiler Setup">
+<link rel="next" href="configuration/compiler.html" title="Compiler Setup">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.configuration"></a> Configuration</h2></div></div></div>
+<a name="boost_regex.configuration"></a> Configuration
+</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="section"> Compiler Setup</span></dt>
<dt><span class="section"><a href="configuration/locale.html"> Locale and traits
@@ -36,10 +37,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/configuration/algorithm.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/configuration/algorithm.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/configuration/algorithm.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Algorithm Selection</title>
+<title>Algorithm Selection</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../configuration.html" title=" Configuration">
-<link rel="prev" href="linkage.html" title=" Linkage Options">
-<link rel="next" href="tuning.html" title=" Algorithm Tuning">
+<link rel="up" href="../configuration.html" title="Configuration">
+<link rel="prev" href="linkage.html" title="Linkage Options">
+<link rel="next" href="tuning.html" title="Algorithm Tuning">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.configuration.algorithm"></a> Algorithm Selection</h3></div></div></div>
+<a name="boost_regex.configuration.algorithm"></a> Algorithm Selection
+</h3></div></div></div>
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -78,10 +79,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/configuration/compiler.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/configuration/compiler.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/configuration/compiler.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Compiler Setup</title>
+<title>Compiler Setup</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../configuration.html" title=" Configuration">
-<link rel="prev" href="../configuration.html" title=" Configuration">
-<link rel="next" href="locale.html" title=" Locale and traits
- class selection">
+<link rel="up" href="../configuration.html" title="Configuration">
+<link rel="prev" href="../configuration.html" title="Configuration">
+<link rel="next" href="locale.html" title="Locale and traits class selection">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.configuration.compiler"></a> Compiler Setup</h3></div></div></div>
+<a name="boost_regex.configuration.compiler"></a> Compiler Setup
+</h3></div></div></div>
<p>
You shouldn't need to do anything special to configure Boost.Regex for use
with your compiler - the <a href="../../../../../config/index.html" target="_top">Boost.Config
@@ -36,10 +36,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/configuration/linkage.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/configuration/linkage.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/configuration/linkage.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Linkage Options</title>
+<title>Linkage Options</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../configuration.html" title=" Configuration">
-<link rel="prev" href="locale.html" title=" Locale and traits
- class selection">
-<link rel="next" href="algorithm.html" title=" Algorithm Selection">
+<link rel="up" href="../configuration.html" title="Configuration">
+<link rel="prev" href="locale.html" title="Locale and traits class selection">
+<link rel="next" href="algorithm.html" title="Algorithm Selection">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.configuration.linkage"></a> Linkage Options</h3></div></div></div>
+<a name="boost_regex.configuration.linkage"></a> Linkage Options
+</h3></div></div></div>
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -77,10 +77,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/configuration/locale.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/configuration/locale.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/configuration/locale.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Locale and traits
- class selection</title>
+<title>Locale and traits class selection</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../configuration.html" title=" Configuration">
-<link rel="prev" href="compiler.html" title=" Compiler Setup">
-<link rel="next" href="linkage.html" title=" Linkage Options">
+<link rel="up" href="../configuration.html" title="Configuration">
+<link rel="prev" href="compiler.html" title="Compiler Setup">
+<link rel="next" href="linkage.html" title="Linkage Options">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.configuration.locale"></a><a href="locale.html" title=" Locale and traits
- class selection"> Locale and traits
- class selection</a></h3></div></div></div>
+<a name="boost_regex.configuration.locale"></a><a href="locale.html" title="Locale and traits class selection"> Locale and traits
+ class selection</a>
+</h3></div></div></div>
<p>
The following macros (see user.hpp)
control how Boost.Regex interacts with the user's locale:
@@ -96,10 +95,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/configuration/tuning.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/configuration/tuning.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/configuration/tuning.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Algorithm Tuning</title>
+<title>Algorithm Tuning</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../configuration.html" title=" Configuration">
-<link rel="prev" href="algorithm.html" title=" Algorithm Selection">
-<link rel="next" href="../install.html" title=" Building and Installing the Library">
+<link rel="up" href="../configuration.html" title="Configuration">
+<link rel="prev" href="algorithm.html" title="Algorithm Selection">
+<link rel="next" href="../install.html" title="Building and Installing the Library">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.configuration.tuning"></a> Algorithm Tuning</h3></div></div></div>
+<a name="boost_regex.configuration.tuning"></a> Algorithm Tuning
+</h3></div></div></div>
<p>
The following option applies only if BOOST_REGEX_RECURSIVE is set.
</p>
@@ -139,10 +140,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/format.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/format.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/format.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Search and Replace Format String Syntax</title>
+<title>Search and Replace Format String Syntax</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="syntax/leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule">
-<link rel="next" href="format/sed_format.html" title=" Sed Format String Syntax">
+<link rel="prev" href="syntax/leftmost_longest_rule.html" title="The Leftmost Longest Rule">
+<link rel="next" href="format/sed_format.html" title="Sed Format String Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.format"></a> Search and Replace Format String Syntax</h2></div></div></div>
+<a name="boost_regex.format"></a> Search and Replace Format String Syntax
+</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="section"> Sed Format String Syntax</span></dt>
<dt><span class="section"> Perl Format String Syntax</span></dt>
@@ -33,32 +33,26 @@
Format String Syntax</a></span></dt>
</dl></div>
<p>
- Format strings are used by the algorithm regex_replace and by match_results<>::format, and are used to transform
+ Format strings are used by the algorithm regex_replace
and by match_results<>::format
, and are used to transform
one string into another.
</p>
<p>
- There are three kind of format string: Sed,
- Perl and <a href="format/boost_format_syntax.html" title=" Boost-Extended
- Format String Syntax">Boost-Extended</a>.
+ There are three kind of format string: Sed,
+ Perl and Boost-Extended.
</p>
<p>
- Alternatively, when the flag <tt class="computeroutput"><span class="identifier">format_literal</span></tt>
+ Alternatively, when the flag <code class="computeroutput"><span class="identifier">format_literal</span></code>
is passed to one of these functions, then the format string is treated as a
string literal, and is copied unchanged to the output.
</p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Boost-Extended
- Format String Syntax</title>
+<title>Boost-Extended Format String Syntax</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../format.html" title=" Search and Replace Format String Syntax">
-<link rel="prev" href="perl_format.html" title=" Perl Format String Syntax">
-<link rel="next" href="../ref.html" title=" Reference">
+<link rel="up" href="../format.html" title="Search and Replace Format String Syntax">
+<link rel="prev" href="perl_format.html" title="Perl Format String Syntax">
+<link rel="next" href="../ref.html" title="Reference">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,25 +24,25 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.format.boost_format_syntax"></a><a href="boost_format_syntax.html" title=" Boost-Extended
- Format String Syntax"> Boost-Extended
- Format String Syntax</a></h3></div></div></div>
+<a name="boost_regex.format.boost_format_syntax"></a><a href="boost_format_syntax.html" title="Boost-Extended Format String Syntax"> Boost-Extended
+ Format String Syntax</a>
+</h3></div></div></div>
<p>
Boost-Extended format strings treat all characters as literals except for
'$', '\', '(', ')', '?', and ':'.
</p>
-<a name="boost_regex.format.boost_format_syntax.grouping"></a><h4>
-<a name="id481845"></a>
+<a name="boost_regex.format.boost_format_syntax.grouping"></a><h5>
+<a name="id515430"></a>
<a href="boost_format_syntax.html#boost_regex.format.boost_format_syntax.grouping">Grouping</a>
- </h4>
+ </h5>
<p>
The characters '(' and ')' perform lexical grouping, so use \( and \) if
you want a to output literal parenthesis.
</p>
-<a name="boost_regex.format.boost_format_syntax.conditionals"></a><h4>
-<a name="id481877"></a>
+<a name="boost_regex.format.boost_format_syntax.conditionals"></a><h5>
+<a name="id515461"></a>
<a href="boost_format_syntax.html#boost_regex.format.boost_format_syntax.conditionals">Conditionals</a>
- </h4>
+ </h5>
<p>
The character '?' begins a conditional expression, the general form is:
</p>
@@ -66,11 +65,11 @@
match found with "foo" if the sub-expression $1 was matched, and
with "bar" otherwise.
</p>
-<a name="boost_regex.format.boost_format_syntax.placeholder_sequences"></a><h4>
-<a name="id481936"></a>
+<a name="boost_regex.format.boost_format_syntax.placeholder_sequences"></a><h5>
+<a name="id515518"></a>
<a href="boost_format_syntax.html#boost_regex.format.boost_format_syntax.placeholder_sequences">Placeholder
Sequences</a>
- </h4>
+ </h5>
<p>
Placeholder sequences specify that some part of what matched the regular
expression should be sent to output as follows:
@@ -161,11 +160,11 @@
Any $-placeholder sequence not listed above, results in '$' being treated
as a literal.
</p>
-<a name="boost_regex.format.boost_format_syntax.escape_sequences"></a><h4>
-<a name="id482109"></a>
+<a name="boost_regex.format.boost_format_syntax.escape_sequences"></a><h5>
+<a name="id515689"></a>
<a href="boost_format_syntax.html#boost_regex.format.boost_format_syntax.escape_sequences">Escape
Sequences</a>
- </h4>
+ </h5>
<p>
An escape character followed by any character x, outputs that character unless
x is one of the escape sequences shown below.
@@ -390,10 +389,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/format/perl_format.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/format/perl_format.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/format/perl_format.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Perl Format String Syntax</title>
+<title>Perl Format String Syntax</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../format.html" title=" Search and Replace Format String Syntax">
-<link rel="prev" href="sed_format.html" title=" Sed Format String Syntax">
-<link rel="next" href="boost_format_syntax.html" title=" Boost-Extended
- Format String Syntax">
+<link rel="up" href="../format.html" title="Search and Replace Format String Syntax">
+<link rel="prev" href="sed_format.html" title="Sed Format String Syntax">
+<link rel="next" href="boost_format_syntax.html" title="Boost-Extended Format String Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.format.perl_format"></a> Perl Format String Syntax</h3></div></div></div>
+<a name="boost_regex.format.perl_format"></a> Perl Format String Syntax
+</h3></div></div></div>
<p>
Perl-style format strings treat all characters as literals except '$' and
'\' which start placeholder and escape sequences respectively.
@@ -344,10 +344,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/format/sed_format.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/format/sed_format.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/format/sed_format.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Sed Format String Syntax</title>
+<title>Sed Format String Syntax</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../format.html" title=" Search and Replace Format String Syntax">
-<link rel="prev" href="../format.html" title=" Search and Replace Format String Syntax">
-<link rel="next" href="perl_format.html" title=" Perl Format String Syntax">
+<link rel="up" href="../format.html" title="Search and Replace Format String Syntax">
+<link rel="prev" href="../format.html" title="Search and Replace Format String Syntax">
+<link rel="next" href="perl_format.html" title="Perl Format String Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.format.sed_format"></a> Sed Format String Syntax</h3></div></div></div>
+<a name="boost_regex.format.sed_format"></a> Sed Format String Syntax
+</h3></div></div></div>
<p>
Sed-style format strings treat all characters as literals except:
</p>
@@ -234,10 +235,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/install.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/install.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/install.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Building and Installing the Library</title>
+<title>Building and Installing the Library</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="configuration/tuning.html" title=" Algorithm Tuning">
-<link rel="next" href="introduction_and_overview.html" title="Introduction and
- Overview">
+<link rel="prev" href="configuration/tuning.html" title="Algorithm Tuning">
+<link rel="next" href="introduction_and_overview.html" title="Introduction and Overview">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.install"></a> Building and Installing the Library</h2></div></div></div>
+<a name="boost_regex.install"></a> Building and Installing the Library
+</h2></div></div></div>
<p>
When you extract the library from its zip file, you must preserve its internal
directory structure (for example by using the -d option when extracting). If
@@ -48,20 +48,20 @@
it is necessary to build the library's support code into a library or archive
file before you can use it, instructions for specific platforms are as follows:
</p>
-<a name="boost_regex.install.building_with_bjam"></a><h4>
-<a name="id386451"></a>
+<a name="boost_regex.install.building_with_bjam"></a><h5>
+<a name="id440369"></a>
<a href="install.html#boost_regex.install.building_with_bjam">Building with bjam</a>
- </h4>
+ </h5>
<p>
This is now the preferred method for building and installing this library,
please refer to the <a href="../../../../../more/getting_started.html" target="_top">getting
started guide</a> for more information.
</p>
-<a name="boost_regex.install.building_with_unicode_and_icu_support"></a><h4>
-<a name="id386488"></a>
+<a name="boost_regex.install.building_with_unicode_and_icu_support"></a><h5>
+<a name="id440403"></a>
<a href="install.html#boost_regex.install.building_with_unicode_and_icu_support">Building
With Unicode and ICU Support</a>
- </h4>
+ </h5>
<p>
A default build of this library does not enable Unciode support via ICU. There
is no need to enable this support if you don't need it, but if you use ICU
@@ -75,16 +75,16 @@
</p>
<p>
If you're building on a Unix-like platform, and ICU is already installed in
- your compilers search path (with an install prefix of <tt class="computeroutput"><span class="special">/</span><span class="identifier">usr</span></tt> or <tt class="computeroutput"><span class="special">/</span><span class="identifier">usr</span><span class="special">/</span><span class="identifier">local</span></tt>
- for example), then set the environment variable <tt class="computeroutput"><span class="identifier">HAVE_ICU</span></tt>
+ your compilers search path (with an install prefix of <code class="computeroutput"><span class="special">/</span><span class="identifier">usr</span></code> or <code class="computeroutput"><span class="special">/</span><span class="identifier">usr</span><span class="special">/</span><span class="identifier">local</span></code>
+ for example), then set the environment variable <code class="computeroutput"><span class="identifier">HAVE_ICU</span></code>
to enable ICU support. For example you might build with the command line:
</p>
<pre class="programlisting">bjam -sHAVE_ICU=1 --toolset=toolset-name install</pre>
<p>
If ICU is not already in your compiler's path then you need to set the environment
- variable <tt class="computeroutput"><span class="identifier">ICU_PATH</span></tt> to point
+ variable <code class="computeroutput"><span class="identifier">ICU_PATH</span></code> to point
to the root directory of your ICU installation, for example if ICU was installed
- to <tt class="computeroutput"><span class="special">/</span><span class="identifier">usr</span><span class="special">/</span><span class="identifier">local</span><span class="special">/</span><span class="identifier">icu</span><span class="special">/</span><span class="number">3.3</span></tt>
+ to <code class="computeroutput"><span class="special">/</span><span class="identifier">usr</span><span class="special">/</span><span class="identifier">local</span><span class="special">/</span><span class="identifier">icu</span><span class="special">/</span><span class="number">3.3</span></code>
you might use:
</p>
<pre class="programlisting">bjam -sICU_PATH=/usr/local/icu/3.3 --toolset=toolset-name install</pre>
@@ -95,17 +95,17 @@
ensure that this is the case: it is up to you to ensure that the version of
ICU you are using is binary compatible with the toolset you use to build Boost.
</p>
-<a name="boost_regex.install.building_via_makefiles"></a><h4>
-<a name="id385474"></a>
+<a name="boost_regex.install.building_via_makefiles"></a><h5>
+<a name="id436006"></a>
<a href="install.html#boost_regex.install.building_via_makefiles">Building via makefiles</a>
- </h4>
-<a name="boost_regex.install.borland_c___builder_"></a><h5>
-<a name="id385498"></a>
- Borland C++ Builder:
</h5>
+<a name="boost_regex.install.borland_c___builder_"></a><h6>
+<a name="id436029"></a>
+ Borland C++ Builder:
+ </h6>
<div class="itemizedlist"><ul type="disc">
<li>
- Open up a console window and change to the <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>\</span><span class="identifier">libs</span><span class="special">\</span><span class="identifier">regex</span><span class="special">\</span><span class="identifier">build</span></tt>
+ Open up a console window and change to the <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>\</span><span class="identifier">libs</span><span class="special">\</span><span class="identifier">regex</span><span class="special">\</span><span class="identifier">build</span></code>
directory.
</li>
<li>
@@ -127,7 +127,7 @@
</p>
<pre class="programlisting">make -fbcb5.mak install</pre>
<p>
- library files will be copied to <tt class="computeroutput"><span class="special"><</span><span class="identifier">BCROOT</span><span class="special">>/</span><span class="identifier">lib</span></tt> and the dll's to <tt class="computeroutput"><span class="special"><</span><span class="identifier">BCROOT</span><span class="special">>/</span><span class="identifier">bin</span></tt>, where <tt class="computeroutput"><span class="special"><</span><span class="identifier">BCROOT</span><span class="special">></span></tt>
+ library files will be copied to <code class="computeroutput"><span class="special"><</span><span class="identifier">BCROOT</span><span class="special">>/</span><span class="identifier">lib</span></code> and the dll's to <code class="computeroutput"><span class="special"><</span><span class="identifier">BCROOT</span><span class="special">>/</span><span class="identifier">bin</span></code>, where <code class="computeroutput"><span class="special"><</span><span class="identifier">BCROOT</span><span class="special">></span></code>
corresponds to the install path of your Borland C++ tools.
</p>
<p>
@@ -136,7 +136,7 @@
</p>
<pre class="programlisting">make -fbcb5.mak clean</pre>
<p>
- Finally when you use Boost.Regex it is only necessary for you to add the <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">></span></tt> root director to your list of include directories
+ Finally when you use Boost.Regex it is only necessary for you to add the <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">></span></code> root director to your list of include directories
for that project. It is not necessary for you to manually add a .lib file to
the project; the headers will automatically select the correct .lib file for
your build mode and tell the linker to include it. There is one caveat however:
@@ -159,17 +159,17 @@
build of the lib) then define BOOST_REGEX_NO_LIB.
</p>
<p>
- If you are building with C++ Builder 6, you will find that <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>
- can not be used in a pre-compiled header (the actual problem is in <tt class="computeroutput"><span class="special"><</span><span class="identifier">locale</span><span class="special">></span></tt> which gets included by <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>),
+ If you are building with C++ Builder 6, you will find that <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
+ can not be used in a pre-compiled header (the actual problem is in <code class="computeroutput"><span class="special"><</span><span class="identifier">locale</span><span class="special">></span></code> which gets included by <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>),
if this causes problems for you, then try defining BOOST_NO_STD_LOCALE when
building, this will disable some features throughout boost, but may save you
a lot in compile times!
</p>
-<a name="boost_regex.install.microsoft_visual_c___6__7__7_1_and_8"></a><h4>
-<a name="id456273"></a>
+<a name="boost_regex.install.microsoft_visual_c___6__7__7_1_and_8"></a><h5>
+<a name="id490078"></a>
<a href="install.html#boost_regex.install.microsoft_visual_c___6__7__7_1_and_8">Microsoft
Visual C++ 6, 7, 7.1 and 8</a>
- </h4>
+ </h5>
<p>
You need version 6 or later of MSVC to build this library. If you are using
VC5 then you may want to look at one of the previous releases of this library.
@@ -177,7 +177,7 @@
<p>
Open up a command prompt, which has the necessary MSVC environment variables
defined (for example by using the batch file Vcvars32.bat installed by the
- Visual Studio installation), and change to the <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>\</span><span class="identifier">libs</span><span class="special">\</span><span class="identifier">regex</span><span class="special">\</span><span class="identifier">build</span> <span class="identifier">directory</span></tt>.
+ Visual Studio installation), and change to the <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>\</span><span class="identifier">libs</span><span class="special">\</span><span class="identifier">regex</span><span class="special">\</span><span class="identifier">build</span> <span class="identifier">directory</span></code>.
</p>
<p>
Select the correct makefile - vc6.mak for "vanilla" Visual C++ 6
@@ -193,7 +193,7 @@
</p>
<pre class="programlisting">nmake -fvc6.mak install</pre>
<p>
- The lib files will be copied to your <tt class="computeroutput"><span class="special"><</span><span class="identifier">VC6</span><span class="special">>\</span><span class="identifier">lib</span></tt> directory and the dll files to <tt class="computeroutput"><span class="special"><</span><span class="identifier">VC6</span><span class="special">>\</span><span class="identifier">bin</span></tt>, where <tt class="computeroutput"><span class="special"><</span><span class="identifier">VC6</span><span class="special">></span></tt> is
+ The lib files will be copied to your <code class="computeroutput"><span class="special"><</span><span class="identifier">VC6</span><span class="special">>\</span><span class="identifier">lib</span></code> directory and the dll files to <code class="computeroutput"><span class="special"><</span><span class="identifier">VC6</span><span class="special">>\</span><span class="identifier">bin</span></code>, where <code class="computeroutput"><span class="special"><</span><span class="identifier">VC6</span><span class="special">></span></code> is
the root of your Visual C++ 6 installation.
</p>
<p>
@@ -207,7 +207,7 @@
</p>
<pre class="programlisting">nmake ICU_PATH=c:\open-source\icu -fvc71.mak install</pre>
<p>
- Finally when you use Boost.Regex it is only necessary for you to add the <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">></span></tt> root directory to your list of include
+ Finally when you use Boost.Regex it is only necessary for you to add the <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">></span></code> root directory to your list of include
directories for that project. It is not necessary for you to manually add a
.lib file to the project; the headers will automatically select the correct
.lib file for your build mode and tell the linker to include it.
@@ -252,12 +252,12 @@
to modify the makefile to add /Zc:wchar_t before building the library.
</li>
</ul></div>
-<a name="boost_regex.install.gcc_2_95_and_later_"></a><h5>
-<a name="id456584"></a>
+<a name="boost_regex.install.gcc_2_95_and_later_"></a><h6>
+<a name="id490390"></a>
<a href="install.html#boost_regex.install.gcc_2_95_and_later_">GCC(2.95 and later)</a>
- </h5>
+ </h6>
<p>
- You can build with gcc using the normal boost Jamfile in <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span></tt>, alternatively
+ You can build with gcc using the normal boost Jamfile in <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span></code>, alternatively
there is a conservative makefile for the g++ compiler. From the command prompt
change to the <boost>/libs/regex/build directory and type:
</p>
@@ -298,16 +298,16 @@
LIBS: additional library files.
</p>
<p>
- For the more adventurous there is a configure script in <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">config</span></tt>;
+ For the more adventurous there is a configure script in <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">config</span></code>;
see the config library documentation.
</p>
-<a name="boost_regex.install.sun_workshop_6_1"></a><h5>
-<a name="id456781"></a>
+<a name="boost_regex.install.sun_workshop_6_1"></a><h6>
+<a name="id490591"></a>
<a href="install.html#boost_regex.install.sun_workshop_6_1">Sun Workshop 6.1</a>
- </h5>
+ </h6>
<p>
There is a makefile for the sun (6.1) compiler (C++ version 3.12). From the
- command prompt change to the <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span></tt> directory
+ command prompt change to the <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span></code> directory
and type:
</p>
<pre class="programlisting">dmake -f sunpro.mak </pre>
@@ -316,7 +316,7 @@
single and multithread versions of the library (libboost_regex.a, libboost_regex.so,
libboost_regex_mt.a and libboost_regex_mt.so). When you build projects that
use Boost.Regex, you will need to add the boost install directory to your list
- of include paths and add <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span><span class="special">/</span><span class="identifier">sunpro</span><span class="special">/</span></tt> to
+ of include paths and add <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span><span class="special">/</span><span class="identifier">sunpro</span><span class="special">/</span></code> to
your library search path.
</p>
<p>
@@ -342,26 +342,27 @@
This makefile does not set any architecture specific options like -xarch=v9,
you can set these by defining the appropriate macros, for example:
</p>
-<pre class="programlisting">dmake CXXFLAGS="-xarch<tt class="literal">v9" LDFLAGS</tt>"-xarch<tt class="literal">v9" LIBSUFFIX</tt>"_v9" -f sunpro.mak</pre>
+<pre class="programlisting">dmake CXXFLAGS="-xarch<code class="literal">v9" LDFLAGS</code>"-xarch<code class="literal">v9" LIBSUFFIX</code>"_v9" -f sunpro.mak</pre>
<p>
will build v9 variants of the regex library named libboost_regex_v9.a etc.
</p>
-<a name="boost_regex.install.makefiles_for_other_compilers"></a><h5>
-<a name="id457001"></a>
+<a name="boost_regex.install.makefiles_for_other_compilers"></a><h6>
+<a name="id490813"></a>
<a href="install.html#boost_regex.install.makefiles_for_other_compilers">Makefiles
for Other compilers</a>
- </h5>
+ </h6>
<p>
- There is a generic makefile (generic.mak ) provided in <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">-</span><span class="identifier">root</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span></tt> - see that makefile for details of
+ There is a generic makefile (generic.mak ) provided in <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">-</span><span class="identifier">root</span><span class="special">>/</span><span class="identifier">libs</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">build</span></code> - see that makefile for details of
environment variables that need to be set before use.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/introduction_and_overview.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/introduction_and_overview.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/introduction_and_overview.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>Introduction and
- Overview</title>
+<title>Introduction and Overview</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="install.html" title=" Building and Installing the Library">
-<link rel="next" href="unicode.html" title=" Unicode and Boost.Regex">
+<link rel="prev" href="install.html" title="Building and Installing the Library">
+<link rel="next" href="unicode.html" title="Unicode and Boost.Regex">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.introduction_and_overview"></a><a href="introduction_and_overview.html" title="Introduction and
- Overview">Introduction and
- Overview</a></h2></div></div></div>
+<a name="boost_regex.introduction_and_overview"></a><a href="introduction_and_overview.html" title="Introduction and Overview">Introduction and
+ Overview</a>
+</h2></div></div></div>
<p>
Regular expressions are a form of pattern-matching that are often used in text
processing; many users will be familiar with the Unix utilities grep, sed and
@@ -40,16 +39,15 @@
libraries can not do.
</p>
<p>
- The class basic_regex
+ The class basic_regex
is the key class in this library; it represents a "machine readable"
- regular expression, and is very closely modeled on <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></tt>,
+ regular expression, and is very closely modeled on <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code>,
think of it as a string plus the actual state-machine required by the regular
- expression algorithms. Like <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></tt>
+ expression algorithms. Like <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code>
there are two typedefs that are almost always the means by which this class
is referenced:
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">traits</span> <span class="special">=</span> <span class="identifier">regex_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="special">></span>
@@ -87,8 +85,7 @@
Now let's take that expression and place it in some C++ code to validate the
format of a credit card number:
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="identifier">validate_card_format</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">)</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="identifier">validate_card_format</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">)</span>
<span class="special">{</span>
<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e</span><span class="special">(</span><span class="string">"(\\d{4}[- ]){3}\\d{4}"</span><span class="special">);</span>
<span class="keyword">return</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="identifier">e</span><span class="special">);</span>
@@ -100,7 +97,7 @@
regular expression engine, consequently escapes in regular expressions have
to be doubled up when embedding them in C/C++ code. Also note that all the
examples assume that your compiler supports argument-dependent-lookup lookup,
- if yours doesn't (for example VC6), then you will have to add some <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span></tt> prefixes
+ if yours doesn't (for example VC6), then you will have to add some <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span></code> prefixes
to some of the function calls in the examples.
</p>
<p>
@@ -113,11 +110,10 @@
the utilities sed and Perl will already be ahead here; we need two strings
- one a regular expression - the other a "format string" that provides
a description of the text to replace the match with. In Boost.Regex this search
- and replace operation is performed with the algorithm regex_replace, for our credit card
+ and replace operation is performed with the algorithm regex_replace
, for our credit card
example we can write two algorithms like this to provide the format conversions:
</p>
-<pre class="programlisting">
-<span class="comment">// match any format with the regular expression:
+<pre class="programlisting"><span class="comment">// match any format with the regular expression:
</span><span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e</span><span class="special">(</span><span class="string">"\\A(\\d{3,4})[- ]?(\\d{4})[- ]?(\\d{4})[- ]?(\\d{4})\\z"</span><span class="special">);</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">machine_format</span><span class="special">(</span><span class="string">"\\1\\2\\3\\4"</span><span class="special">);</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">human_format</span><span class="special">(</span><span class="string">"\\1-\\2-\\3-\\4"</span><span class="special">);</span>
@@ -142,11 +138,10 @@
expression match, however in general the result of a match contains a number
of sub-expression matches in addition to the overall match. When the library
needs to report a regular expression match it does so using an instance of
- the class match_results,
+ the class match_results
,
as before there are typedefs of this class for the most common cases:
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
<span class="keyword">typedef</span> <span class="identifier">match_results</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span> <span class="identifier">cmatch</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">match_results</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">wchar_t</span><span class="special">*></span> <span class="identifier">wcmatch</span><span class="special">;</span>
@@ -156,12 +151,12 @@
<span class="special">}</span>
</pre>
<p>
- The algorithms regex_search
- and regex_match
- make use of match_results
- to report what matched; the difference between these algorithms is that regex_match
+ The algorithms regex_search
+ and regex_match
+ make use of match_results
+ to report what matched; the difference between these algorithms is that regex_match
will only find matches that consume <span class="emphasis"><em>all</em></span> of the input text,
- where as regex_search
+ where as regex_search
will search for a match anywhere within the text being matched.
</p>
<p>
@@ -170,22 +165,21 @@
of seamlessly searching almost any kind of data.
</p>
<p>
- For search and replace operations, in addition to the algorithm regex_replace that we have already
- seen, the match_results
- class has a <tt class="computeroutput"><span class="identifier">format</span></tt> member that
+ For search and replace operations, in addition to the algorithm regex_replace
that we have already
+ seen, the match_results
+ class has a <code class="computeroutput"><span class="identifier">format</span></code> member that
takes the result of a match and a format string, and produces a new string
by merging the two.
</p>
<p>
For iterating through all occurences of an expression within a text, there
- are two iterator types: regex_iterator will enumerate over
- the match_results
- objects found, while regex_token_iterator will enumerate
+ are two iterator types: regex_iterator
will enumerate over
+ the match_results
+ objects found, while regex_token_iterator
will enumerate
a series of strings (similar to perl style split operations).
</p>
<p>
- For those that dislike templates, there is a high level wrapper class <a href="ref/deprecated_interfaces/old_regex.html" title=" High
- Level Class RegEx (Deprecated)"><tt class="computeroutput"><span class="identifier">RegEx</span></tt></a>
+ For those that dislike templates, there is a high level wrapper class RegEx
that is an encapsulation of the lower level template code - it provides a simplified
interface for those that don't need the full power of the library, and supports
only narrow characters, and the "extended" regular expression syntax.
@@ -193,12 +187,12 @@
C++ standard library proposal.
</p>
<p>
- The POSIX API functions: regcomp, regexec, regfree and [regerr], are available
+ The POSIX API functions: regcomp
, regexec
, regfree
and [regerr], are available
in both narrow character and Unicode versions, and are provided for those who
need compatibility with these API's.
</p>
<p>
- Finally, note that the library now has <a href="background_information/locale.html" title=" Localization">run-time
+ Finally, note that the library now has <a href="background_information/locale.html" title="Localization">run-time
localization support</a>, and recognizes the full POSIX regular expression
syntax - including advanced features like multi-character collating elements
and equivalence classes - as well as providing compatibility with other regular
@@ -207,10 +201,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/partial_matches.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/partial_matches.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/partial_matches.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Partial Matches</title>
+<title>Partial Matches</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="captures.html" title=" Understanding Marked Sub-Expressions
- and Captures">
-<link rel="next" href="syntax.html" title=" Regular Expression Syntax">
+<link rel="prev" href="captures.html" title="Understanding Marked Sub-Expressions and Captures">
+<link rel="next" href="syntax.html" title="Regular Expression Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,13 +24,13 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.partial_matches"></a> Partial Matches</h2></div></div></div>
+<a name="boost_regex.partial_matches"></a> Partial Matches
+</h2></div></div></div>
<p>
- The match_flag_type
- <tt class="computeroutput"><span class="identifier">match_partial</span></tt> can be passed
- to the following algorithms: regex_match, regex_search, and <a href="ref/deprecated_interfaces/regex_grep.html" title="
- regex_grep (Deprecated)"><tt class="computeroutput"><span class="identifier">regex_grep</span></tt></a>, and used with the iterator
- regex_iterator.
+ The match_flag_type
+ <code class="computeroutput"><span class="identifier">match_partial</span></code> can be passed
+ to the following algorithms: regex_match
, regex_search
, and regex_grep
, and used with the iterator
+ regex_iterator
.
When used it indicates that partial as well as full matches should be found.
A partial match is one that matched one or more characters at the end of the
text input, but did not match all of the regular expression (although it may
@@ -41,10 +40,9 @@
into memory (or even into a memory mapped file), or are of indeterminate length
(for example the source may be a socket or similar). Partial and full matches
can be differentiated as shown in the following table (the variable M represents
- an instance of match_results as filled in by regex_match,
- regex_search
- or <a href="ref/deprecated_interfaces/regex_grep.html" title="
- regex_grep (Deprecated)"><tt class="computeroutput"><span class="identifier">regex_grep</span></tt></a>):
+ an instance of match_results
as filled in by regex_match
,
+ regex_search
+ or regex_grep
):
</p>
<div class="informaltable"><table class="table">
<colgroup>
@@ -186,7 +184,7 @@
<p>
The following example tests to see whether the text could be a valid credit
card number, as the user presses a key, the character entered would be added
- to the string being built up, and passed to <tt class="computeroutput"><span class="identifier">is_possible_card_number</span></tt>.
+ to the string being built up, and passed to <code class="computeroutput"><span class="identifier">is_possible_card_number</span></code>.
If this returns true then the text could be a valid card number, so the user
interface's OK button would be enabled. If it returns false, then this is not
yet a valid card number, but could be with more input, so the user interface
@@ -194,8 +192,7 @@
the input could never become a valid number, and the inputted character must
be discarded, and a suitable error indication displayed to the user.
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
@@ -230,8 +227,7 @@
if a partial match was encountered, then the partial match gets searched a
second time as the start of the next batch of text:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">fstream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">sstream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
@@ -297,10 +293,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Reference</title>
+<title>Reference</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="format/boost_format_syntax.html" title=" Boost-Extended
- Format String Syntax">
-<link rel="next" href="ref/basic_regex.html" title=" basic_regex">
+<link rel="prev" href="format/boost_format_syntax.html" title="Boost-Extended Format String Syntax">
+<link rel="next" href="ref/basic_regex.html" title="basic_regex">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.ref"></a> Reference</h2></div></div></div>
+<a name="boost_regex.ref"></a> Reference
+</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="section"> basic_regex</span></dt>
<dt><span class="section"> match_results</span></dt>
@@ -91,7 +91,7 @@
<dt><span class="section"><a href="ref/concepts/traits_concept.html"> Traits Class
Requirements</a></span></dt>
<dt><span class="section"><a href="ref/concepts/iterator_concepts.html"> Iterator
- Rrequirements</a></span></dt>
+ Requirements</a></span></dt>
</dl></dd>
<dt><span class="section">Deprecated Interfaces</span></dt>
<dd><dl>
@@ -105,35 +105,14 @@
Level Class RegEx (Deprecated)</a></span></dt>
</dl></dd>
</dl></div>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/bad_expression.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/bad_expression.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/bad_expression.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> bad_expression</title>
+<title>bad_expression</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="regex_token_iterator.html" title=" regex_token_iterator">
-<link rel="next" href="syntax_option_type.html" title=" syntax_option_type">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="regex_token_iterator.html" title="regex_token_iterator">
+<link rel="next" href="syntax_option_type.html" title="syntax_option_type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,21 +24,20 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.bad_expression"></a> bad_expression</h3></div></div></div>
-<a name="boost_regex.ref.bad_expression.synopsis"></a><h4>
-<a name="id563003"></a>
+<a name="boost_regex.ref.bad_expression"></a> bad_expression
+</h3></div></div></div>
+<a name="boost_regex.ref.bad_expression.synopsis"></a><h5>
+<a name="id596250"></a>
<a href="bad_expression.html#boost_regex.ref.bad_expression.synopsis">Synopsis</a>
- </h4>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">pattern_except</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">pattern_except</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- The class <tt class="computeroutput"><span class="identifier">regex_error</span></tt> defines
+ The class <code class="computeroutput"><span class="identifier">regex_error</span></code> defines
the type of objects thrown as exceptions to report errors during the conversion
from a string representing a regular expression to a finite state machine.
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
<span class="keyword">class</span> <span class="identifier">regex_error</span> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span>
<span class="special">{</span>
@@ -54,49 +53,47 @@
</span>
<span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
-<a name="boost_regex.ref.bad_expression.description"></a><h4>
-<a name="id563510"></a>
+<a name="boost_regex.ref.bad_expression.description"></a><h5>
+<a name="id596753"></a>
<a href="bad_expression.html#boost_regex.ref.bad_expression.description">Description</a>
- </h4>
-<pre class="programlisting">
-<span class="identifier">regex_error</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">error_type</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <span class="identifier">pos</span><span class="special">);</span>
+ </h5>
+<pre class="programlisting"><span class="identifier">regex_error</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">error_type</span> <span class="identifier">err</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <span class="identifier">pos</span><span class="special">);</span>
<span class="identifier">regex_error</span><span class="special">(</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">error_type</span> <span class="identifier">err</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects:</b></span> Constructs an object of class regex_error.
+ <span class="bold"><strong>Effects:</strong></span> Constructs an object of class regex_error.
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">error_type</span> <span class="identifier">code</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">error_type</span> <span class="identifier">code</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects:</b></span> returns the error code that represents
+ <span class="bold"><strong>Effects:</strong></span> returns the error code that represents
parsing error that occurred.
</p>
-<pre class="programlisting">
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <span class="identifier">position</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <span class="identifier">position</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects:</b></span> returns the location in the expression
+ <span class="bold"><strong>Effects:</strong></span> returns the location in the expression
where parsing stopped.
</p>
<p>
- Footnotes: the choice of <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
- as the base class for <tt class="computeroutput"><span class="identifier">regex_error</span></tt>
+ Footnotes: the choice of <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
+ as the base class for <code class="computeroutput"><span class="identifier">regex_error</span></code>
is moot; depending upon how the library is used exceptions may be either
logic errors (programmer supplied expressions) or run time errors (user supplied
- expressions). The library previously used <tt class="computeroutput"><span class="identifier">bad_pattern</span></tt>
- and <tt class="computeroutput"><span class="identifier">bad_expression</span></tt> for errors,
- these have been replaced by the single class <tt class="computeroutput"><span class="identifier">regex_error</span></tt>
+ expressions). The library previously used <code class="computeroutput"><span class="identifier">bad_pattern</span></code>
+ and <code class="computeroutput"><span class="identifier">bad_expression</span></code> for errors,
+ these have been replaced by the single class <code class="computeroutput"><span class="identifier">regex_error</span></code>
to keep the library in synchronization with the <a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf" target="_top">Technical
Report on C++ Library Extensions</a>.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/basic_regex.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/basic_regex.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/basic_regex.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> basic_regex</title>
+<title>basic_regex</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="../ref.html" title=" Reference">
-<link rel="next" href="match_results.html" title=" match_results">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="../ref.html" title="Reference">
+<link rel="next" href="match_results.html" title="match_results">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,43 +24,40 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.basic_regex"></a> basic_regex</h3></div></div></div>
-<a name="boost_regex.ref.basic_regex.synopsis"></a><h4>
-<a name="id482525"></a>
+<a name="boost_regex.ref.basic_regex"></a> basic_regex
+</h3></div></div></div>
+<a name="boost_regex.ref.basic_regex.synopsis"></a><h5>
+<a name="id516103"></a>
<a href="basic_regex.html#boost_regex.ref.basic_regex.synopsis">Synopsis</a>
- </h4>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- The template class <tt class="computeroutput"><span class="identifier">basic_regex</span></tt>
+ The template class <code class="computeroutput"><span class="identifier">basic_regex</span></code>
encapsulates regular expression parsing and compilation. The class takes
two template parameters:
</p>
<div class="itemizedlist"><ul type="disc">
<li>
-<tt class="computeroutput"><span class="identifier">charT</span></tt>: determines the character
- type, i.e. either <tt class="computeroutput"><span class="keyword">char</span></tt> or
- <tt class="computeroutput"><span class="keyword">wchar_t</span></tt>; see <a href="concepts/charT_concept.html" title=" charT Requirements">charT
+<code class="computeroutput"><span class="identifier">charT</span></code>: determines the character
+ type, i.e. either <code class="computeroutput"><span class="keyword">char</span></code> or
+ <code class="computeroutput"><span class="keyword">wchar_t</span></code>; see <a href="concepts/charT_concept.html" title="charT Requirements">charT
concept</a>.
</li>
<li>
-<tt class="computeroutput"><span class="identifier">traits</span></tt>: determines the
+<code class="computeroutput"><span class="identifier">traits</span></code>: determines the
behavior of the character type, for example which character class names
- are recognized. A default traits class is provided: <tt class="computeroutput"><span class="identifier">regex_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span></tt>. See also <a href="concepts/traits_concept.html" title=" Traits Class
- Requirements">traits
+ are recognized. A default traits class is provided: <code class="computeroutput"><span class="identifier">regex_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span></code>. See also <a href="concepts/traits_concept.html" title="Traits Class Requirements">traits
concept</a>.
</li>
</ul></div>
<p>
- For ease of use there are two typedefs that define the two standard <tt class="computeroutput"><span class="identifier">basic_regex</span></tt> instances, unless you want
+ For ease of use there are two typedefs that define the two standard <code class="computeroutput"><span class="identifier">basic_regex</span></code> instances, unless you want
to use custom traits classes or non-standard character types (for example
- see <a href="non_std_strings/icu.html" title=" Working With
- Unicode and ICU String Types">unicode support</a>),
+ see unicode support),
you won't need to use anything other than these:
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span> <span class="special">=</span> <span class="identifier">regex_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="special">></span>
<span class="keyword">class</span> <span class="identifier">basic_regex</span><span class="special">;</span>
@@ -71,12 +68,11 @@
<span class="special">}</span>
</pre>
<p>
- The definition of <tt class="computeroutput"><span class="identifier">basic_regex</span></tt>
- follows: it is based very closely on class <tt class="computeroutput"><span class="identifier">basic_string</span></tt>,
- and fulfils the requirements for a constant-container of <tt class="computeroutput"><span class="identifier">charT</span></tt>.
+ The definition of <code class="computeroutput"><span class="identifier">basic_regex</span></code>
+ follows: it is based very closely on class <code class="computeroutput"><span class="identifier">basic_string</span></code>,
+ and fulfils the requirements for a constant-container of <code class="computeroutput"><span class="identifier">charT</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span> <span class="special">=</span> <span class="identifier">regex_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="special">></span>
<span class="keyword">class</span> <span class="identifier">basic_regex</span> <span class="special">{</span>
@@ -89,66 +85,66 @@
<span class="keyword">typedef</span> <span class="keyword">const</span> <span class="identifier">charT</span><span class="special">&</span> <span class="identifier">const_reference</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">ptrdiff_t</span> <span class="identifier">difference_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">size_type</span><span class="special">;</span>
- <span class="keyword">typedef</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">flag_type</span><span class="special">;</span>
+ <span class="keyword">typedef</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">flag_type</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">traits</span><span class="special">::</span><span class="identifier">locale_type</span> <span class="identifier">locale_type</span><span class="special">;</span>
<span class="comment">// constants:
</span> <span class="comment">// main option selection:
-</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">normal</span>
+</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">normal</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">ECMAScript</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">ECMAScript</span>
<span class="special">=</span> <span class="identifier">normal</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">JavaScript</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">JavaScript</span>
<span class="special">=</span> <span class="identifier">normal</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">JScript</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">JScript</span>
<span class="special">=</span> <span class="identifier">normal</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">basic</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">basic</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">basic</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">extended</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">extended</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">extended</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">awk</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">awk</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">awk</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">grep</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">grep</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">grep</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">egrep</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">egrep</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">egrep</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">sed</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">sed</span>
<span class="special">=</span> <span class="identifier">basic</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">sed</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">perl</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">perl</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">literal</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">literal</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">literal</span><span class="special">;</span>
<span class="comment">// modifiers specific to perl expressions:
-</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_mod_m</span>
+</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_mod_m</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_mod_m</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_mod_s</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_mod_s</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_mod_s</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">mod_s</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">mod_s</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">mod_s</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">mod_x</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">mod_x</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">mod_x</span><span class="special">;</span>
<span class="comment">// modifiers specific to POSIX basic expressions:
-</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">bk_plus_qm</span>
+</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">bk_plus_qm</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">bk_plus_qm</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">bk_vbar</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">bk_vbar</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">bk_vbar</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_char_classes</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_char_classes</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_char_classes</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_intervals</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_intervals</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_intervals</span>
<span class="comment">// common modifiers:
-</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">nosubs</span>
+</span> <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">nosubs</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">nosubs</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">optimize</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">optimize</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">optimize</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">collate</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">collate</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">collate</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">newline_alt</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">newline_alt</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">newline_alt</span><span class="special">;</span>
- <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_except</span>
+ <span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_except</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">newline_alt</span><span class="special">;</span>
<span class="comment">// construct/copy/destroy:
@@ -246,94 +242,92 @@
<span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
-<a name="boost_regex.ref.basic_regex.description"></a><h4>
-<a name="id488473"></a>
+<a name="boost_regex.ref.basic_regex.description"></a><h5>
+<a name="id522034"></a>
<a href="basic_regex.html#boost_regex.ref.basic_regex.description">Description</a>
- </h4>
+ </h5>
<p>
- Class <tt class="computeroutput"><span class="identifier">basic_regex</span></tt> has the
+ Class <code class="computeroutput"><span class="identifier">basic_regex</span></code> has the
following public members:
</p>
-<pre class="programlisting">
-<span class="comment">// main option selection:
-</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">normal</span>
+<pre class="programlisting"><span class="comment">// main option selection:
+</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">normal</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">ECMAScript</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">ECMAScript</span>
<span class="special">=</span> <span class="identifier">normal</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">JavaScript</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">JavaScript</span>
<span class="special">=</span> <span class="identifier">normal</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">JScript</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">JScript</span>
<span class="special">=</span> <span class="identifier">normal</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">basic</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">basic</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">basic</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">extended</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">extended</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">extended</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">awk</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">awk</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">awk</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">grep</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">grep</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">grep</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">egrep</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">egrep</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">egrep</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">sed</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">sed</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">sed</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">perl</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">perl</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">literal</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">literal</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">literal</span><span class="special">;</span>
<span class="comment">// modifiers specific to perl expressions:
-</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_mod_m</span>
+</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_mod_m</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_mod_m</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_mod_s</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_mod_s</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_mod_s</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">mod_s</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">mod_s</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">mod_s</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">mod_x</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">mod_x</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">mod_x</span><span class="special">;</span>
<span class="comment">// modifiers specific to POSIX basic expressions:
-</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">bk_plus_qm</span>
+</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">bk_plus_qm</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">bk_plus_qm</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">bk_vbar</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">bk_vbar</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">bk_vbar</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_char_classes</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_char_classes</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_char_classes</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">no_intervals</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">no_intervals</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">no_intervals</span>
<span class="comment">// common modifiers:
-</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">nosubs</span>
+</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">nosubs</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">nosubs</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">optimize</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">optimize</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">optimize</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">collate</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">collate</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">collate</span><span class="special">;</span>
-<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type <span class="identifier">newline_alt</span>
+<span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">regex_constants</span><span class="special">::</span> syntax_option_type
<span class="identifier">newline_alt</span>
<span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">newline_alt</span><span class="special">;</span>
</pre>
<p>
- The meaning of these options is documented in the syntax_option_type section.
+ The meaning of these options is documented in the syntax_option_type
section.
</p>
<p>
The static constant members are provided as synonyms for the constants declared
- in namespace <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span></tt>; for each constant of type
- syntax_option_type
- declared in namespace <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span></tt>
+ in namespace <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span></code>; for each constant of type
+ syntax_option_type
+ declared in namespace <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span></code>
then a constant with the same name, type and value is declared within the
scope of basic_regex.
</p>
<a name="boost_regex.basic_regex.construct1"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">();</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">();</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- <tt class="computeroutput"><span class="identifier">basic_regex</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ <code class="computeroutput"><span class="identifier">basic_regex</span></code>.
</p>
<div class="table">
-<a name="id490413"></a><p class="title"><b>Table 1. basic_regex default construction postconditions</b></p>
-<table class="table" summary="basic_regex default construction postconditions">
+<a name="id523970"></a><p class="title"><b>Table 1. basic_regex default construction postconditions</b></p>
+<div class="table-contents"><table class="table" summary="basic_regex default construction postconditions">
<colgroup>
<col>
<col>
@@ -354,67 +348,66 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">true</span></tt>
+ <code class="computeroutput"><span class="keyword">true</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="number">0</span></tt>
+ <code class="computeroutput"><span class="number">0</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">str</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">str</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>()</span></tt>
+ <code class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>()</span></code>
</p>
</td>
</tr>
</tbody>
-</table>
+</table></div>
</div>
-<a name="boost_regex.basic_regex.construct2"></a><p>
+<br class="table-break"><a name="boost_regex.basic_regex.construct2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: <span class="emphasis"><em>p</em></span> shall not
+ <span class="bold"><strong>Requires</strong></span>: <span class="emphasis"><em>p</em></span> shall not
be a null pointer.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: bad_expression if <span class="emphasis"><em>p</em></span>
- is not a valid regular expression, unless the flag <tt class="computeroutput"><span class="identifier">no_except</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: bad_expression
if <span class="emphasis"><em>p</em></span>
+ is not a valid regular expression, unless the flag <code class="computeroutput"><span class="identifier">no_except</span></code>
is set in <span class="emphasis"><em>f</em></span>.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- basic_regex;
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ basic_regex
;
the object's internal finite state machine is constructed from the regular
expression contained in the null-terminated string <span class="emphasis"><em>p</em></span>,
- and interpreted according to the <a href="syntax_option_type.html" title=" syntax_option_type">option
+ and interpreted according to the <a href="syntax_option_type.html" title="syntax_option_type">option
flags</a> specified in <span class="emphasis"><em>f</em></span>.
</p>
<div class="table">
-<a name="id490814"></a><p class="title"><b>Table 2. Postconditions for basic_regex construction</b></p>
-<table class="table" summary="Postconditions for basic_regex construction">
+<a name="id524369"></a><p class="title"><b>Table 2. Postconditions for basic_regex construction</b></p>
+<div class="table-contents"><table class="table" summary="Postconditions for basic_regex construction">
<colgroup>
<col>
<col>
@@ -435,43 +428,43 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>::</span><span class="identifier">length</span><span class="special">(</span><span class="identifier">p</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>::</span><span class="identifier">length</span><span class="special">(</span><span class="identifier">p</span><span class="special">)</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">str</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">str</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">p</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">p</span><span class="special">)</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -483,7 +476,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -493,34 +486,33 @@
</td>
</tr>
</tbody>
-</table>
+</table></div>
</div>
-<a name="boost_regex.basic_regex.construct3"></a><p>
+<br class="table-break"><a name="boost_regex.basic_regex.construct3"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p1</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p2</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p1</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p2</span><span class="special">,</span>
<span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: <span class="emphasis"><em>p1</em></span> and <span class="emphasis"><em>p2</em></span>
- are not null pointers, <tt class="computeroutput"><span class="identifier">p1</span> <span class="special"><</span> <span class="identifier">p2</span></tt>.
+ <span class="bold"><strong>Requires</strong></span>: <span class="emphasis"><em>p1</em></span> and <span class="emphasis"><em>p2</em></span>
+ are not null pointers, <code class="computeroutput"><span class="identifier">p1</span> <span class="special"><</span> <span class="identifier">p2</span></code>.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: bad_expression if [p1,p2) is not
- a valid regular expression, unless the flag <tt class="computeroutput"><span class="identifier">no_except</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: bad_expression if [p1,p2) is not
+ a valid regular expression, unless the flag <code class="computeroutput"><span class="identifier">no_except</span></code>
is set in <span class="emphasis"><em>f</em></span>.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- basic_regex;
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ basic_regex
;
the object's internal finite state machine is constructed from the regular
expression contained in the sequence of characters [p1,p2), and interpreted
- according the option flags
+ according the option flags
specified in <span class="emphasis"><em>f</em></span>.
</p>
<div class="table">
-<a name="id491362"></a><p class="title"><b>Table 3. Postconditions for basic_regex construction</b></p>
-<table class="table" summary="Postconditions for basic_regex construction">
+<a name="id524915"></a><p class="title"><b>Table 3. Postconditions for basic_regex construction</b></p>
+<div class="table-contents"><table class="table" summary="Postconditions for basic_regex construction">
<colgroup>
<col>
<col>
@@ -541,43 +533,43 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">distance</span><span class="special">(</span><span class="identifier">p1</span><span class="special">,</span><span class="identifier">p2</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">distance</span><span class="special">(</span><span class="identifier">p1</span><span class="special">,</span><span class="identifier">p2</span><span class="special">)</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">str</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">str</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">p1</span><span class="special">,</span><span class="identifier">p2</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">p1</span><span class="special">,</span><span class="identifier">p2</span><span class="special">)</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -589,7 +581,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -599,33 +591,32 @@
</td>
</tr>
</tbody>
-</table>
+</table></div>
</div>
-<a name="boost_regex.basic_regex.construct4"></a><p>
+<br class="table-break"><a name="boost_regex.basic_regex.construct4"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="identifier">len</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">size_type</span> <span class="identifier">len</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: <span class="emphasis"><em>p</em></span> shall not
- be a null pointer, <tt class="computeroutput"><span class="identifier">len</span> <span class="special"><</span>
- <span class="identifier">max_size</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Requires</strong></span>: <span class="emphasis"><em>p</em></span> shall not
+ be a null pointer, <code class="computeroutput"><span class="identifier">len</span> <span class="special"><</span>
+ <span class="identifier">max_size</span><span class="special">()</span></code>.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: bad_expression if <span class="emphasis"><em>p</em></span>
- is not a valid regular expression, unless the flag <tt class="computeroutput"><span class="identifier">no_except</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: bad_expression
if <span class="emphasis"><em>p</em></span>
+ is not a valid regular expression, unless the flag <code class="computeroutput"><span class="identifier">no_except</span></code>
is set in <span class="emphasis"><em>f</em></span>.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- basic_regex;
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ basic_regex
;
the object's internal finite state machine is constructed from the regular
expression contained in the sequence of characters [p, p+len), and interpreted
according the option flags specified in <span class="emphasis"><em>f</em></span>.
</p>
<div class="table">
-<a name="id491897"></a><p class="title"><b>Table 4. Postconditions for basic_regex construction</b></p>
-<table class="table" summary="Postconditions for basic_regex construction">
+<a name="id525448"></a><p class="title"><b>Table 4. Postconditions for basic_regex construction</b></p>
+<div class="table-contents"><table class="table" summary="Postconditions for basic_regex construction">
<colgroup>
<col>
<col>
@@ -646,19 +637,19 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -670,19 +661,19 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">str</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">str</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">p</span><span class="special">,</span> <span class="identifier">len</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">p</span><span class="special">,</span> <span class="identifier">len</span><span class="special">)</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -694,7 +685,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -704,41 +695,39 @@
</td>
</tr>
</tbody>
-</table>
+</table></div>
</div>
-<a name="boost_regex.basic_regex.construct5"></a><p>
+<br class="table-break"><a name="boost_regex.basic_regex.construct5"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- basic_regex
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ basic_regex
as a copy of the object <span class="emphasis"><em>e</em></span>.
</p>
<a name="boost_regex.basic_regex.construct6"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">></span>
<span class="identifier">basic_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Throws</b></span>: bad_expression if <span class="emphasis"><em>s</em></span>
- is not a valid regular expression, unless the flag <tt class="computeroutput"><span class="identifier">no_except</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: bad_expression
if <span class="emphasis"><em>s</em></span>
+ is not a valid regular expression, unless the flag <code class="computeroutput"><span class="identifier">no_except</span></code>
is set in <span class="emphasis"><em>f</em></span>.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- basic_regex;
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ basic_regex
;
the object's internal finite state machine is constructed from the regular
expression contained in the string <span class="emphasis"><em>s</em></span>, and interpreted
- according to the <a href="syntax_option_type.html" title=" syntax_option_type">option
+ according to the <a href="syntax_option_type.html" title="syntax_option_type">option
flags</a> specified in <span class="emphasis"><em>f</em></span>.
</p>
<div class="table">
-<a name="id492536"></a><p class="title"><b>Table 5. Postconditions for basic_regex construction</b></p>
-<table class="table" summary="Postconditions for basic_regex construction">
+<a name="id526084"></a><p class="title"><b>Table 5. Postconditions for basic_regex construction</b></p>
+<div class="table-contents"><table class="table" summary="Postconditions for basic_regex construction">
<colgroup>
<col>
<col>
@@ -759,31 +748,31 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">s</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">s</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">str</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">str</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -795,7 +784,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -807,7 +796,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -817,31 +806,30 @@
</td>
</tr>
</tbody>
-</table>
+</table></div>
</div>
-<a name="boost_regex.basic_regex.construct7"></a><p>
+<br class="table-break"><a name="boost_regex.basic_regex.construct7"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ForwardIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ForwardIterator</span><span class="special">></span>
<span class="identifier">basic_regex</span><span class="special">(</span><span class="identifier">ForwardIterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">ForwardIterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Throws</b></span>: bad_expression if the sequence [first,
- last) is not a valid regular expression, unless the flag <tt class="computeroutput"><span class="identifier">no_except</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: bad_expression
if the sequence [first,
+ last) is not a valid regular expression, unless the flag <code class="computeroutput"><span class="identifier">no_except</span></code>
is set in <span class="emphasis"><em>f</em></span>.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- basic_regex;
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ basic_regex
;
the object's internal finite state machine is constructed from the regular
expression contained in the sequence of characters [first, last), and interpreted
- according to the <a href="syntax_option_type.html" title=" syntax_option_type">option
+ according to the <a href="syntax_option_type.html" title="syntax_option_type">option
flags</a> specified in <span class="emphasis"><em>f</em></span>.
</p>
<div class="table">
-<a name="id493013"></a><p class="title"><b>Table 6. Postconditions for basic_regex construction</b></p>
-<table class="table" summary="Postconditions for basic_regex construction">
+<a name="id526559"></a><p class="title"><b>Table 6. Postconditions for basic_regex construction</b></p>
+<div class="table-contents"><table class="table" summary="Postconditions for basic_regex construction">
<colgroup>
<col>
<col>
@@ -862,43 +850,43 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">distance</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">last</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="identifier">distance</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">last</span><span class="special">)</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">str</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">str</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">last</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">first</span><span class="special">,</span><span class="identifier">last</span><span class="special">)</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -910,7 +898,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -920,139 +908,126 @@
</td>
</tr>
</tbody>
-</table>
+</table></div>
</div>
-<a name="boost_regex.basic_regex.opeq1"></a><p>
+<br class="table-break"><a name="boost_regex.basic_regex.opeq1"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">assign</span><span class="special">(</span><span class="identifier">e</span><span class="special">.</span><span class="identifier">str</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">flags</span><span class="special">())</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">assign</span><span class="special">(</span><span class="identifier">e</span><span class="special">.</span><span class="identifier">str</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">flags</span><span class="special">())</span></code>.
</p>
<a name="boost_regex.basic_regex.opeq2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">ptr</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">ptr</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: <span class="emphasis"><em>p</em></span> shall not
+ <span class="bold"><strong>Requires</strong></span>: <span class="emphasis"><em>p</em></span> shall not
be a null pointer.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">assign</span><span class="special">(</span><span class="identifier">ptr</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">assign</span><span class="special">(</span><span class="identifier">ptr</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.basic_regex.opeq3"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">></span>
<span class="identifier">basic_regex</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>&</span> <span class="identifier">p</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">assign</span><span class="special">(</span><span class="identifier">p</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">assign</span><span class="special">(</span><span class="identifier">p</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.basic_regex.begin"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">const_iterator</span> <span class="identifier">begin</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">const_iterator</span> <span class="identifier">begin</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a starting iterator to
+ <span class="bold"><strong>Effects</strong></span>: Returns a starting iterator to
a sequence of characters representing the regular expression.
</p>
<a name="boost_regex.basic_regex.end"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">const_iterator</span> <span class="identifier">end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">const_iterator</span> <span class="identifier">end</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns termination iterator to
+ <span class="bold"><strong>Effects</strong></span>: Returns termination iterator to
a sequence of characters representing the regular expression.
</p>
<a name="boost_regex.basic_regex.size"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">size_type</span> <span class="identifier">size</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">size_type</span> <span class="identifier">size</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the length of the sequence
+ <span class="bold"><strong>Effects</strong></span>: Returns the length of the sequence
of characters representing the regular expression.
</p>
<a name="boost_regex.basic_regex.max_size"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">size_type</span> <span class="identifier">max_size</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">size_type</span> <span class="identifier">max_size</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the maximum length of the
+ <span class="bold"><strong>Effects</strong></span>: Returns the maximum length of the
sequence of characters representing the regular expression.
</p>
<a name="boost_regex.basic_regex.empty"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="identifier">empty</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="identifier">empty</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns true if the object does
+ <span class="bold"><strong>Effects</strong></span>: Returns true if the object does
not contain a valid regular expression, otherwise false.
</p>
<a name="boost_regex.basic_regex.mark_count"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">unsigned</span> <span class="identifier">mark_count</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">unsigned</span> <span class="identifier">mark_count</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the number of marked sub-expressions
+ <span class="bold"><strong>Effects</strong></span>: Returns the number of marked sub-expressions
within the regular expresion.
</p>
<a name="boost_regex.basic_regex.assign1"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns assign(that.str(), that.flags()).
+ <span class="bold"><strong>Effects</strong></span>: Returns assign(that.str(), that.flags())
.
</p>
<a name="boost_regex.basic_regex.assign2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">ptr</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">ptr</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns assign(string_type(ptr), f).
+ <span class="bold"><strong>Effects</strong></span>: Returns assign(string_type(ptr), f)
.
</p>
<a name="boost_regex.basic_regex.assign3"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">ptr</span><span class="special">,</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">len</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">ptr</span><span class="special">,</span> <span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">len</span><span class="special">,</span> <span class="identifier">flag_type</span> <span class="identifier">f</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns assign(string_type(ptr, len), f).
+ <span class="bold"><strong>Effects</strong></span>: Returns assign(string_type(ptr, len), f)
.
</p>
<a name="boost_regex.basic_regex.assign4"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">string_traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">string_traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">></span>
<span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">string_traits</span><span class="special">,</span> <span class="identifier">A</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Throws</b></span>: bad_expression if <span class="emphasis"><em>s</em></span>
- is not a valid regular expression, unless the flag <tt class="computeroutput"><span class="identifier">no_except</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: bad_expression
if <span class="emphasis"><em>s</em></span>
+ is not a valid regular expression, unless the flag <code class="computeroutput"><span class="identifier">no_except</span></code>
is set in <span class="emphasis"><em>f</em></span>.
</p>
<p>
- <span class="bold"><b>Returns</b></span>: *this.
+ <span class="bold"><strong>Returns</strong></span>: *this.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Assigns the regular expression
+ <span class="bold"><strong>Effects</strong></span>: Assigns the regular expression
contained in the string <span class="emphasis"><em>s</em></span>, interpreted according the
- option flags specified
+ option flags specified
in <span class="emphasis"><em>f</em></span>.
</p>
<div class="table">
-<a name="id494890"></a><p class="title"><b>Table 7. Postconditions for basic_regex::assign</b></p>
-<table class="table" summary="Postconditions for basic_regex::assign">
+<a name="id528412"></a><p class="title"><b>Table 7. Postconditions for basic_regex::assign</b></p>
+<div class="table-contents"><table class="table" summary="Postconditions for basic_regex::assign">
<colgroup>
<col>
<col>
@@ -1073,31 +1048,31 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">s</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">s</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">str</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">str</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -1109,7 +1084,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -1121,7 +1096,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
<td>
@@ -1131,222 +1106,207 @@
</td>
</tr>
</tbody>
-</table>
+</table></div>
</div>
-<a name="boost_regex.basic_regex.assign5"></a><p>
+<br class="table-break"><a name="boost_regex.basic_regex.assign5"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">InputIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">InputIterator</span><span class="special">></span>
<span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">assign</span><span class="special">(</span><span class="identifier">InputIterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">InputIterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="identifier">flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: The type <tt class="computeroutput"><span class="identifier">InputIterator</span></tt>
+ <span class="bold"><strong>Requires</strong></span>: The type <code class="computeroutput"><span class="identifier">InputIterator</span></code>
corresponds to the <a href="http://input_iterator" target="_top">Input Iterator requirements
(24.1.1)</a>.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Returns assign(string_type(first, last), f).
+ <span class="bold"><strong>Effects</strong></span>: Returns assign(string_type(first, last), f)
.
</p>
<a name="boost_regex.basic_regex.flags"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">flag_type</span> <span class="identifier">flags</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">flag_type</span> <span class="identifier">flags</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a copy of the <a href="syntax_option_type.html" title=" syntax_option_type">regular
+ <span class="bold"><strong>Effects</strong></span>: Returns a copy of the <a href="syntax_option_type.html" title="syntax_option_type">regular
expression syntax flags</a> that were passed to the object's constructor,
- or the last call to <tt class="computeroutput"><span class="identifier">assign</span></tt>.
+ or the last call to <code class="computeroutput"><span class="identifier">assign</span></code>.
</p>
<a name="boost_regex.basic_regex.status"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">int</span> <span class="identifier">status</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">status</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns zero if the expression
+ <span class="bold"><strong>Effects</strong></span>: Returns zero if the expression
contains a valid regular expression, otherwise an error code. This member
function is retained for use in environments that cannot use exception handling.
</p>
<a name="boost_regex.basic_regex.str"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="identifier">str</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="identifier">str</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a copy of the character
+ <span class="bold"><strong>Effects</strong></span>: Returns a copy of the character
sequence passed to the object's constructor, or the last call to assign.
</p>
<a name="boost_regex.basic_regex.compare"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: If <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span> <span class="special">==</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">flags</span><span class="special">()</span></tt> then returns <tt class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">e</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></tt>,
- otherwise returns <tt class="computeroutput"><span class="identifier">flags</span><span class="special">()</span>
- <span class="special">-</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">flags</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: If <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span> <span class="special">==</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">flags</span><span class="special">()</span></code> then returns <code class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">e</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></code>,
+ otherwise returns <code class="computeroutput"><span class="identifier">flags</span><span class="special">()</span>
+ <span class="special">-</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">flags</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.basic_regex.imbue"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">locale_type</span> <span class="identifier">imbue</span><span class="special">(</span><span class="identifier">locale_type</span> <span class="identifier">l</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">locale_type</span> <span class="identifier">imbue</span><span class="special">(</span><span class="identifier">locale_type</span> <span class="identifier">l</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">traits_inst</span><span class="special">.</span><span class="identifier">imbue</span><span class="special">(</span><span class="identifier">l</span><span class="special">)</span></tt> where
- <tt class="computeroutput"><span class="identifier">traits_inst</span></tt> is a (default
- initialized) instance of the template parameter <tt class="computeroutput"><span class="identifier">traits</span></tt>
- stored within the object. Calls to <tt class="computeroutput"><span class="identifier">imbue</span></tt>
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">traits_inst</span><span class="special">.</span><span class="identifier">imbue</span><span class="special">(</span><span class="identifier">l</span><span class="special">)</span></code> where
+ <code class="computeroutput"><span class="identifier">traits_inst</span></code> is a (default
+ initialized) instance of the template parameter <code class="computeroutput"><span class="identifier">traits</span></code>
+ stored within the object. Calls to <code class="computeroutput"><span class="identifier">imbue</span></code>
invalidate any currently contained regular expression.
</p>
<p>
- <span class="bold"><b>Postcondition</b></span>: <tt class="computeroutput"><span class="identifier">empty</span><span class="special">()</span> <span class="special">==</span> <span class="keyword">true</span></tt>.
+ <span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><span class="identifier">empty</span><span class="special">()</span> <span class="special">==</span> <span class="keyword">true</span></code>.
</p>
<a name="boost_regex.basic_regex.getloc"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">locale_type</span> <span class="identifier">getloc</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">locale_type</span> <span class="identifier">getloc</span><span class="special">()</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">traits_inst</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">()</span></tt>
- where <tt class="computeroutput"><span class="identifier">traits_inst</span></tt> is a (default
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">traits_inst</span><span class="special">.</span><span class="identifier">getloc</span><span class="special">()</span></code>
+ where <code class="computeroutput"><span class="identifier">traits_inst</span></code> is a (default
initialized) instance of the template parameter traits stored within the
object.
</p>
<a name="boost_regex.basic_regex.swap"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">)</span> <span class="keyword">throw</span><span class="special">();</span>
+<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">basic_regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">)</span> <span class="keyword">throw</span><span class="special">();</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Swaps the contents of the two regular
+ <span class="bold"><strong>Effects</strong></span>: Swaps the contents of the two regular
expressions.
</p>
<p>
- <span class="bold"><b>Postcondition</b></span>: <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> contains the regular expression that
+ <span class="bold"><strong>Postcondition</strong></span>: <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> contains the regular expression that
was in <span class="emphasis"><em>e</em></span>, <span class="emphasis"><em>e</em></span> contains the regular
- expression that was in <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt>.
+ expression that was in <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>.
</p>
<p>
- <span class="bold"><b>Complexity</b></span>: constant time.
+ <span class="bold"><strong>Complexity</strong></span>: constant time.
</p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
<th align="left">Note</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
- Comparisons between basic_regex objects are provided
+<tr><td align="left" valign="top"><p>
+ Comparisons between basic_regex
objects are provided
on an experimental basis: please note that these are not present in the
<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf" target="_top">Technical
Report on C++ Library Extensions</a>, so use with care if you are writing
- code that may need to be ported to other implementations of basic_regex.
+ code that may need to be ported to other implementations of basic_regex
.
</p></td></tr>
</table></div>
<a name="boost_regex.basic_regex.op_eq"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">==</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">==</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.basic_regex.op_ne"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">!=</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">!=</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.basic_regex.op_lt"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special"><</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special"><</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.basic_regex.op_le"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special"><=</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special"><=</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.basic_regex.op_ge"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">>=</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">>=</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.basic_regex.op_gt"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">></span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">></span> <span class="number">0</span></code>.
</p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
<th align="left">Note</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
+<tr><td align="left" valign="top"><p>
The basic_regex stream inserter is provided on an experimental basis, and
outputs the textual representation of the expression to the stream.
</p></td></tr>
</table></div>
<a name="boost_regex.basic_regex.op_stream"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">io_traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">re_traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">io_traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">re_traits</span><span class="special">></span>
<span class="identifier">basic_ostream</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">io_traits</span><span class="special">>&</span>
<span class="keyword">operator</span> <span class="special"><<</span> <span class="special">(</span><span class="identifier">basic_ostream</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">io_traits</span><span class="special">>&</span> <span class="identifier">os</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">re_traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns <tt class="computeroutput"><span class="special">(</span><span class="identifier">os</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns <code class="computeroutput"><span class="special">(</span><span class="identifier">os</span> <span class="special"><<</span> <span class="identifier">e</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></code>.
</p>
<a name="boost_regex.basic_regex.op_swap"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: calls <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">swap</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: calls <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">swap</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span></code>.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/concepts.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/concepts.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/concepts.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Concepts</title>
+<title>Concepts</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="posix.html" title=" POSIX Compatible C API's">
-<link rel="next" href="concepts/charT_concept.html" title=" charT Requirements">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="posix.html" title="POSIX Compatible C API's">
+<link rel="next" href="concepts/charT_concept.html" title="charT Requirements">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,21 +24,23 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.concepts"></a> Concepts</h3></div></div></div>
+<a name="boost_regex.ref.concepts"></a> Concepts
+</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section"> charT Requirements</span></dt>
<dt><span class="section"><a href="concepts/traits_concept.html"> Traits Class
Requirements</a></span></dt>
<dt><span class="section"><a href="concepts/iterator_concepts.html"> Iterator
- Rrequirements</a></span></dt>
+ Requirements</a></span></dt>
</dl></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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/concepts/charT_concept.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/concepts/charT_concept.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/concepts/charT_concept.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> charT Requirements</title>
+<title>charT Requirements</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../concepts.html" title=" Concepts">
-<link rel="prev" href="../concepts.html" title=" Concepts">
-<link rel="next" href="traits_concept.html" title=" Traits Class
- Requirements">
+<link rel="up" href="../concepts.html" title="Concepts">
+<link rel="prev" href="../concepts.html" title="Concepts">
+<link rel="next" href="traits_concept.html" title="Traits Class Requirements">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,16 +24,17 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.concepts.charT_concept"></a> charT Requirements</h4></div></div></div>
+<a name="boost_regex.ref.concepts.charT_concept"></a> charT Requirements
+</h4></div></div></div>
<p>
- Type <tt class="computeroutput"><span class="identifier">charT</span></tt> used a template
- argument to class template basic_regex, must have a trivial
+ Type <code class="computeroutput"><span class="identifier">charT</span></code> used a template
+ argument to class template basic_regex
, must have a trivial
default constructor, copy constructor, assignment operator, and destructor.
In addition the following requirements must be met for objects; <span class="emphasis"><em>c</em></span>
- of type <tt class="computeroutput"><span class="identifier">charT</span></tt>, <span class="emphasis"><em>c1</em></span>
- and <span class="emphasis"><em>c2</em></span> of type <tt class="computeroutput"><span class="identifier">charT</span>
- <span class="keyword">const</span></tt>, and <span class="emphasis"><em>i</em></span>
- of type <tt class="computeroutput"><span class="keyword">int</span></tt>:
+ of type <code class="computeroutput"><span class="identifier">charT</span></code>, <span class="emphasis"><em>c1</em></span>
+ and <span class="emphasis"><em>c2</em></span> of type <code class="computeroutput"><span class="identifier">charT</span>
+ <span class="keyword">const</span></code>, and <span class="emphasis"><em>i</em></span>
+ of type <code class="computeroutput"><span class="keyword">int</span></code>:
</p>
<div class="informaltable"><table class="table">
<colgroup>
@@ -258,10 +258,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/concepts/iterator_concepts.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/concepts/iterator_concepts.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/concepts/iterator_concepts.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,12 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Iterator
- Rrequirements</title>
+<title>Iterator Requirements</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../concepts.html" title=" Concepts">
-<link rel="prev" href="traits_concept.html" title=" Traits Class
- Requirements">
+<link rel="up" href="../concepts.html" title="Concepts">
+<link rel="prev" href="traits_concept.html" title="Traits Class Requirements">
<link rel="next" href="../deprecated_interfaces.html" title="Deprecated Interfaces">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@@ -26,19 +24,20 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.concepts.iterator_concepts"></a><a href="iterator_concepts.html" title=" Iterator
- Rrequirements"> Iterator
- Rrequirements</a></h4></div></div></div>
+<a name="boost_regex.ref.concepts.iterator_concepts"></a><a href="iterator_concepts.html" title="Iterator Requirements"> Iterator
+ Requirements</a>
+</h4></div></div></div>
<p>
The regular expression algorithms (and iterators) take all require a Bidirectional-Iterator.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/concepts/traits_concept.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/concepts/traits_concept.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/concepts/traits_concept.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Traits Class
- Requirements</title>
+<title>Traits Class Requirements</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../concepts.html" title=" Concepts">
-<link rel="prev" href="charT_concept.html" title=" charT Requirements">
-<link rel="next" href="iterator_concepts.html" title=" Iterator
- Rrequirements">
+<link rel="up" href="../concepts.html" title="Concepts">
+<link rel="prev" href="charT_concept.html" title="charT Requirements">
+<link rel="next" href="iterator_concepts.html" title="Iterator Requirements">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,37 +24,37 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.concepts.traits_concept"></a><a href="traits_concept.html" title=" Traits Class
- Requirements"> Traits Class
- Requirements</a></h4></div></div></div>
+<a name="boost_regex.ref.concepts.traits_concept"></a><a href="traits_concept.html" title="Traits Class Requirements"> Traits Class
+ Requirements</a>
+</h4></div></div></div>
<p>
- There are two sets of requirements for the <tt class="computeroutput"><span class="identifier">traits</span></tt>
- template argument to basic_regex: a mininal interface
+ There are two sets of requirements for the <code class="computeroutput"><span class="identifier">traits</span></code>
+ template argument to basic_regex
: a mininal interface
(which is part of the regex standardization proposal), and an optional
Boost-specific enhanced interface.
</p>
-<a name="boost_regex.ref.concepts.traits_concept.minimal_requirements_"></a><h4>
-<a name="id589905"></a>
+<a name="boost_regex.ref.concepts.traits_concept.minimal_requirements_"></a><h5>
+<a name="id622823"></a>
<a href="traits_concept.html#boost_regex.ref.concepts.traits_concept.minimal_requirements_">Minimal
requirements.</a>
- </h4>
+ </h5>
<p>
- In the following table <tt class="computeroutput"><span class="identifier">X</span></tt>
+ In the following table <code class="computeroutput"><span class="identifier">X</span></code>
denotes a traits class defining types and functions for the character container
- type <tt class="computeroutput"><span class="identifier">charT</span></tt>; <span class="emphasis"><em>u</em></span>
- is an object of type <tt class="computeroutput"><span class="identifier">X</span></tt>;
- <span class="emphasis"><em>v</em></span> is an object of type <tt class="computeroutput"><span class="keyword">const</span>
- <span class="identifier">X</span></tt>; <span class="emphasis"><em>p</em></span> is
- a value of type <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></tt>; <span class="emphasis"><em>I1</em></span> and <span class="emphasis"><em>I2</em></span>
- are Input Iterators; <span class="emphasis"><em>c</em></span> is a value of type <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span></tt>;
- <span class="emphasis"><em>s</em></span> is an object of type <tt class="computeroutput"><span class="identifier">X</span><span class="special">::</span><span class="identifier">string_type</span></tt>;
- <span class="emphasis"><em>cs</em></span> is an object of type <tt class="computeroutput"><span class="keyword">const</span>
- <span class="identifier">X</span><span class="special">::</span><span class="identifier">string_type</span></tt>; <span class="emphasis"><em>b</em></span> is
- a value of type <tt class="computeroutput"><span class="keyword">bool</span></tt>; <span class="emphasis"><em>I</em></span>
- is a value of type <tt class="computeroutput"><span class="keyword">int</span></tt>; <span class="emphasis"><em>F1</em></span>
- and <span class="emphasis"><em>F2</em></span> are values of type <tt class="computeroutput"><span class="keyword">const</span>
- <span class="identifier">charT</span><span class="special">*</span></tt>;
- and <span class="emphasis"><em>loc</em></span> is an object of type <tt class="computeroutput"><span class="identifier">X</span><span class="special">::</span><span class="identifier">locale_type</span></tt>.
+ type <code class="computeroutput"><span class="identifier">charT</span></code>; <span class="emphasis"><em>u</em></span>
+ is an object of type <code class="computeroutput"><span class="identifier">X</span></code>;
+ <span class="emphasis"><em>v</em></span> is an object of type <code class="computeroutput"><span class="keyword">const</span>
+ <span class="identifier">X</span></code>; <span class="emphasis"><em>p</em></span> is
+ a value of type <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></code>; <span class="emphasis"><em>I1</em></span> and <span class="emphasis"><em>I2</em></span>
+ are Input Iterators; <span class="emphasis"><em>c</em></span> is a value of type <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span></code>;
+ <span class="emphasis"><em>s</em></span> is an object of type <code class="computeroutput"><span class="identifier">X</span><span class="special">::</span><span class="identifier">string_type</span></code>;
+ <span class="emphasis"><em>cs</em></span> is an object of type <code class="computeroutput"><span class="keyword">const</span>
+ <span class="identifier">X</span><span class="special">::</span><span class="identifier">string_type</span></code>; <span class="emphasis"><em>b</em></span> is
+ a value of type <code class="computeroutput"><span class="keyword">bool</span></code>; <span class="emphasis"><em>I</em></span>
+ is a value of type <code class="computeroutput"><span class="keyword">int</span></code>; <span class="emphasis"><em>F1</em></span>
+ and <span class="emphasis"><em>F2</em></span> are values of type <code class="computeroutput"><span class="keyword">const</span>
+ <span class="identifier">charT</span><span class="special">*</span></code>;
+ and <span class="emphasis"><em>loc</em></span> is an object of type <code class="computeroutput"><span class="identifier">X</span><span class="special">::</span><span class="identifier">locale_type</span></code>.
</p>
<div class="informaltable"><table class="table">
<colgroup>
@@ -329,7 +327,7 @@
<tr>
<td>
<p>
- v.value(c, i)
+ v.value(c, I)
</p>
</td>
<td>
@@ -380,39 +378,19 @@
</p>
</td>
</tr>
-<tr>
-<td>
- <p>
- v.error_string(i)
- </p>
- </td>
-<td>
- <p>
- std::string
- </p>
- </td>
-<td>
- <p>
- Returns a human readable error string for the error condition i,
- where i is one of the values enumerated by type regex_constants::error_type.
- If the value i is not recognized then returns the string "Unknown
- error" or a localized equivalent.
- </p>
- </td>
-</tr>
</tbody>
</table></div>
-<a name="boost_regex.ref.concepts.traits_concept.additional_optional_requirements"></a><h4>
-<a name="id590748"></a>
+<a name="boost_regex.ref.concepts.traits_concept.additional_optional_requirements"></a><h5>
+<a name="id623626"></a>
<a href="traits_concept.html#boost_regex.ref.concepts.traits_concept.additional_optional_requirements">Additional
Optional Requirements</a>
- </h4>
+ </h5>
<p>
The following additional requirements are strictly optional, however in
- order for basic_regex
+ order for basic_regex
to take advantage of these additional interfaces, all of the following
- requirements must be met; basic_regex will detect the presence
- or absense of the member <tt class="computeroutput"><span class="identifier">boost_extensions_tag</span></tt>
+ requirements must be met; basic_regex
will detect the presence
+ or absense of the member <code class="computeroutput"><span class="identifier">boost_extensions_tag</span></code>
and configure itself appropriately.
</p>
<div class="informaltable"><table class="table">
@@ -493,8 +471,8 @@
that signifies the meaning of character c within the regular expression
grammar, when c has been preceded by an escape character. Precondition:
if b is the character preceding c in the expression being parsed
- then: <tt class="computeroutput"><span class="identifier">v</span><span class="special">.</span><span class="identifier">syntax_type</span><span class="special">(</span><span class="identifier">b</span><span class="special">)</span>
- <span class="special">==</span> <span class="identifier">syntax_escape</span></tt>
+ then: <code class="computeroutput"><span class="identifier">v</span><span class="special">.</span><span class="identifier">syntax_type</span><span class="special">(</span><span class="identifier">b</span><span class="special">)</span>
+ <span class="special">==</span> <span class="identifier">syntax_escape</span></code>
</p>
</td>
</tr>
@@ -512,9 +490,9 @@
<td>
<p>
Returns a character d such that: for any character d that is to
- be considered equivalent to c then <tt class="computeroutput"><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">c</span><span class="special">,</span><span class="keyword">false</span><span class="special">)==</span><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">d</span><span class="special">,</span><span class="keyword">false</span><span class="special">)</span></tt>. Likewise for all characters C
+ be considered equivalent to c then <code class="computeroutput"><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">c</span><span class="special">,</span><span class="keyword">false</span><span class="special">)==</span><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">d</span><span class="special">,</span><span class="keyword">false</span><span class="special">)</span></code>. Likewise for all characters C
that are to be considered equivalent to c when comparisons are
- to be performed without regard to case, then <tt class="computeroutput"><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">c</span><span class="special">,</span><span class="keyword">true</span><span class="special">)==</span><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">C</span><span class="special">,</span><span class="keyword">true</span><span class="special">)</span></tt>.
+ to be performed without regard to case, then <code class="computeroutput"><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">c</span><span class="special">,</span><span class="keyword">true</span><span class="special">)==</span><span class="identifier">v</span><span class="special">.</span><span class="identifier">translate</span><span class="special">(</span><span class="identifier">C</span><span class="special">,</span><span class="keyword">true</span><span class="special">)</span></code>.
</p>
</td>
</tr>
@@ -531,9 +509,9 @@
</td>
<td>
<p>
- Behaves as follows: if <tt class="computeroutput"><span class="identifier">p</span>
- <span class="special">==</span> <span class="identifier">q</span></tt>
- or if <tt class="computeroutput"><span class="special">*</span><span class="identifier">p</span></tt>
+ Behaves as follows: if <code class="computeroutput"><span class="identifier">p</span>
+ <span class="special">==</span> <span class="identifier">q</span></code>
+ or if <code class="computeroutput"><span class="special">*</span><span class="identifier">p</span></code>
is not a digit character then returns -1. Otherwise performs formatted
numeric input on the sequence [p,q) and returns the result as an
int. Postcondition: either p == q or *p is a non-digit character.
@@ -543,7 +521,7 @@
<tr>
<td>
<p>
- v.error_string(i)
+ v.error_string(I)
</p>
</td>
<td>
@@ -555,8 +533,8 @@
<p>
Returns a human readable error string for the error condition i,
where i is one of the values enumerated by type regex_constants::error_type.
- If the value i is not recognized then returns the string "Unknown
- error" or a localized equivalent.
+ If the value <span class="emphasis"><em>I</em></span> is not recognized then returns
+ the string "Unknown error" or a localized equivalent.
</p>
</td>
</tr>
@@ -601,10 +579,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -3,13 +3,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Deprecated Interfaces</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="concepts/iterator_concepts.html" title=" Iterator
- Rrequirements">
-<link rel="next" href="deprecated_interfaces/regex_format.html" title="
- regex_format (Deprecated)">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="concepts/iterator_concepts.html" title="Iterator Requirements">
+<link rel="next" href="deprecated_interfaces/regex_format.html" title="regex_format (Deprecated)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.deprecated_interfaces"></a>Deprecated Interfaces</h3></div></div></div>
+<a name="boost_regex.ref.deprecated_interfaces"></a>Deprecated Interfaces
+</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="deprecated_interfaces/regex_format.html">
regex_format (Deprecated)</a></span></dt>
@@ -37,21 +36,14 @@
<dt><span class="section"><a href="deprecated_interfaces/old_regex.html"> High
Level Class RegEx (Deprecated)</a></span></dt>
</dl></div>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/old_regex.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,12 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> High
- Level Class RegEx (Deprecated)</title>
+<title>High Level Class RegEx (Deprecated)</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
<link rel="up" href="../deprecated_interfaces.html" title="Deprecated Interfaces">
-<link rel="prev" href="regex_split.html" title="
- regex_split (deprecated)">
+<link rel="prev" href="regex_split.html" title="regex_split (deprecated)">
<link rel="next" href="../../background_information.html" title="Background Information">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
@@ -26,17 +24,16 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.deprecated_interfaces.old_regex"></a><a href="old_regex.html" title=" High
- Level Class RegEx (Deprecated)"> High
- Level Class RegEx (Deprecated)</a></h4></div></div></div>
+<a name="boost_regex.ref.deprecated_interfaces.old_regex"></a><a href="old_regex.html" title="High Level Class RegEx (Deprecated)"> High
+ Level Class RegEx (Deprecated)</a>
+</h4></div></div></div>
<p>
The high level wrapper class RegEx is now deprecated and does not form
part of the regular expression standardization proposal. This type still
exists, and existing code will continue to compile, however the following
documentation is unlikely to be further updated.
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
The class RegEx provides a high level simplified interface to the regular
@@ -44,8 +41,7 @@
regular expressions always follow the "normal" syntax - that
is the same as the perl / ECMAScript synatx.
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="keyword">bool</span> <span class="special">(*</span><span class="identifier">GrepCallback</span><span class="special">)(</span><span class="keyword">const</span> <span class="identifier">RegEx</span><span class="special">&</span> <span class="identifier">expression</span><span class="special">);</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="keyword">bool</span> <span class="special">(*</span><span class="identifier">GrepCallback</span><span class="special">)(</span><span class="keyword">const</span> <span class="identifier">RegEx</span><span class="special">&</span> <span class="identifier">expression</span><span class="special">);</span>
<span class="keyword">typedef</span> <span class="keyword">bool</span> <span class="special">(*</span><span class="identifier">GrepFileCallback</span><span class="special">)(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">file</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">RegEx</span><span class="special">&</span> <span class="identifier">expression</span><span class="special">);</span>
<span class="keyword">typedef</span> <span class="keyword">bool</span> <span class="special">(*</span><span class="identifier">FindFilesCallback</span><span class="special">)(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">file</span><span class="special">);</span>
@@ -138,7 +134,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">();</span></tt>
+ <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">();</span></code>
</p>
</td>
<td>
@@ -151,7 +147,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">RegEx</span><span class="special">&</span> <span class="identifier">o</span><span class="special">);</span></tt>
+ <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">RegEx</span><span class="special">&</span> <span class="identifier">o</span><span class="special">);</span></code>
</p>
</td>
<td>
@@ -164,40 +160,40 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">c</span><span class="special">,</span> <span class="keyword">bool</span>
+ <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">c</span><span class="special">,</span> <span class="keyword">bool</span>
<span class="identifier">icase</span> <span class="special">=</span>
- <span class="keyword">false</span><span class="special">);</span></tt>
+ <span class="keyword">false</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Constructs an instance of RegEx, setting the expression to <span class="emphasis"><em>c</em></span>,
if <span class="emphasis"><em>icase</em></span> is true then matching is insensitive
- to case, otherwise it is sensitive to case. Throws bad_expression on failure.
+ to case, otherwise it is sensitive to case. Throws bad_expression
on failure.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="keyword">bool</span>
+ <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="keyword">bool</span>
<span class="identifier">icase</span> <span class="special">=</span>
- <span class="keyword">false</span><span class="special">);</span></tt>
+ <span class="keyword">false</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Constructs an instance of RegEx, setting the expression to <span class="emphasis"><em>s</em></span>,
if <span class="emphasis"><em>icase</em></span> is true then matching is insensitive
- to case, otherwise it is sensitive to case. Throws bad_expression on failure.
+ to case, otherwise it is sensitive to case. Throws bad_expression
on failure.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">&</span>
- <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">RegEx</span><span class="special">&</span> <span class="identifier">o</span><span class="special">);</span></tt>
+ <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">&</span>
+ <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">RegEx</span><span class="special">&</span> <span class="identifier">o</span><span class="special">);</span></code>
</p>
</td>
<td>
@@ -209,68 +205,68 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">&</span>
- <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">);</span></tt>
+ <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">&</span>
+ <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
- Assignment operator, equivalent to calling <tt class="computeroutput"><span class="identifier">SetExpression</span><span class="special">(</span><span class="identifier">p</span><span class="special">,</span> <span class="keyword">false</span><span class="special">)</span></tt>. Throws bad_expression on failure.
+ Assignment operator, equivalent to calling <code class="computeroutput"><span class="identifier">SetExpression</span><span class="special">(</span><span class="identifier">p</span><span class="special">,</span> <span class="keyword">false</span><span class="special">)</span></code>. Throws bad_expression
on failure.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">&</span>
- <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">);</span></tt>
+ <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">&</span>
+ <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
- Assignment operator, equivalent to calling <tt class="computeroutput"><span class="identifier">SetExpression</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="keyword">false</span><span class="special">)</span></tt>. Throws bad_expression on failure.
+ Assignment operator, equivalent to calling <code class="computeroutput"><span class="identifier">SetExpression</span><span class="special">(</span><span class="identifier">s</span><span class="special">,</span> <span class="keyword">false</span><span class="special">)</span></code>. Throws bad_expression
on failure.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">SetExpression</span><span class="special">(</span><span class="identifier">constchar</span><span class="special">*</span>
<span class="identifier">p</span><span class="special">,</span>
<span class="keyword">bool</span> <span class="identifier">icase</span>
- <span class="special">=</span> <span class="keyword">false</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="keyword">false</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Sets the current expression to <span class="emphasis"><em>p</em></span>, if <span class="emphasis"><em>icase</em></span>
is true then matching is insensitive to case, otherwise it is sensitive
- to case. Throws bad_expression on failure.
+ to case. Throws bad_expression
on failure.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">SetExpression</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="keyword">bool</span>
<span class="identifier">icase</span> <span class="special">=</span>
- <span class="keyword">false</span><span class="special">);</span></tt>
+ <span class="keyword">false</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Sets the current expression to <span class="emphasis"><em>s</em></span>, if <span class="emphasis"><em>icase</em></span>
is true then matching is insensitive to case, otherwise it is sensitive
- to case. Throws bad_expression on failure.
+ to case. Throws bad_expression
on failure.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">Expression</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span></tt>
+ <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">Expression</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span></code>
</p>
</td>
<td>
@@ -282,17 +278,17 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Match</span><span class="special">(</span><span class="keyword">const</span>
+ <code class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Match</span><span class="special">(</span><span class="keyword">const</span>
<span class="keyword">char</span><span class="special">*</span>
<span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Attempts to match the current expression against the text <span class="emphasis"><em>p</em></span>
- using the match flags <span class="emphasis"><em>flags</em></span> - see match_flag_type. Returns
+ using the match flags <span class="emphasis"><em>flags</em></span> - see match_flag_type
. Returns
<span class="emphasis"><em>true</em></span> if the expression matches the whole of
the input string.
</p>
@@ -301,17 +297,17 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Match</span><span class="special">(</span><span class="keyword">const</span>
+ <code class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Match</span><span class="special">(</span><span class="keyword">const</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span>
<span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Attempts to match the current expression against the text <span class="emphasis"><em>s</em></span>
- using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
Returns <span class="emphasis"><em>true</em></span> if the expression matches the
whole of the input string.
</p>
@@ -320,17 +316,17 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Search</span><span class="special">(</span><span class="keyword">const</span>
+ <code class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Search</span><span class="special">(</span><span class="keyword">const</span>
<span class="keyword">char</span><span class="special">*</span>
<span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Attempts to find a match for the current expression somewhere in
- the text <span class="emphasis"><em>p</em></span> using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ the text <span class="emphasis"><em>p</em></span> using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
Returns <span class="emphasis"><em>true</em></span> if the match succeeds.
</p>
</td>
@@ -338,17 +334,17 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Search</span><span class="special">(</span><span class="keyword">const</span>
+ <code class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Search</span><span class="special">(</span><span class="keyword">const</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span>
<span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Attempts to find a match for the current expression somewhere in
- the text <span class="emphasis"><em>s</em></span> using the match_flag_type flags.
+ the text <span class="emphasis"><em>s</em></span> using the match_flag_type
flags.
Returns <span class="emphasis"><em>true</em></span> if the match succeeds.
</p>
</td>
@@ -356,19 +352,19 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Grep</span><span class="special">(</span><span class="identifier">GrepCallback</span> <span class="identifier">cb</span><span class="special">,</span> <span class="keyword">const</span>
<span class="keyword">char</span><span class="special">*</span>
<span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the text <span class="emphasis"><em>p</em></span>
- using the match_flag_type <span class="emphasis"><em>flags</em></span>.
- For each match found calls the call-back function cb as: <tt class="computeroutput"><span class="identifier">cb</span><span class="special">(*</span><span class="keyword">this</span><span class="special">);</span></tt>
+ using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
+ For each match found calls the call-back function cb as: <code class="computeroutput"><span class="identifier">cb</span><span class="special">(*</span><span class="keyword">this</span><span class="special">);</span></code>
If at any stage the call-back function returns <span class="emphasis"><em>false</em></span>
then the grep operation terminates, otherwise continues until no
further matches are found. Returns the number of matches found.
@@ -378,19 +374,19 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Grep</span><span class="special">(</span><span class="identifier">GrepCallback</span> <span class="identifier">cb</span><span class="special">,</span> <span class="keyword">const</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span>
<span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the text <span class="emphasis"><em>s</em></span>
- using the match_flag_type flags.
- For each match found calls the call-back function cb as: <tt class="computeroutput"><span class="identifier">cb</span><span class="special">(*</span><span class="keyword">this</span><span class="special">);</span></tt>
+ using the match_flag_type
flags.
+ For each match found calls the call-back function cb as: <code class="computeroutput"><span class="identifier">cb</span><span class="special">(*</span><span class="keyword">this</span><span class="special">);</span></code>
If at any stage the call-back function returns false then the grep
operation terminates, otherwise continues until no further matches
are found. Returns the number of matches found.
@@ -400,18 +396,18 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Grep</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>&</span>
<span class="identifier">v</span><span class="special">,</span>
<span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
<span class="identifier">flags</span> <span class="special">=</span>
- <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the text <span class="emphasis"><em>p</em></span>
- using the match_flag_type flags.
+ using the match_flag_type
flags.
For each match pushes a copy of what matched onto <span class="emphasis"><em>v</em></span>.
Returns the number of matches found.
</p>
@@ -420,18 +416,18 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Grep</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>&</span>
<span class="identifier">v</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
<span class="identifier">flags</span> <span class="special">=</span>
- <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the text <span class="emphasis"><em>s</em></span>
- using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
For each match pushes a copy of what matched onto <span class="emphasis"><em>v</em></span>.
Returns the number of matches found.
</p>
@@ -440,18 +436,18 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Grep</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">unsigned</span> <span class="keyword">int</span><span class="special">>&</span> <span class="identifier">v</span><span class="special">,</span> <span class="keyword">const</span>
<span class="keyword">char</span><span class="special">*</span>
<span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the text <span class="emphasis"><em>p</em></span>
- using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
For each match pushes the starting index of what matched onto
<span class="emphasis"><em>v</em></span>. Returns the number of matches found.
</p>
@@ -460,18 +456,18 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Grep</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">unsigned</span> <span class="keyword">int</span><span class="special">>&</span> <span class="identifier">v</span><span class="special">,</span> <span class="keyword">const</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span>
<span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the text <span class="emphasis"><em>s</em></span>
- using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
For each match pushes the starting index of what matched onto
<span class="emphasis"><em>v</em></span>. Returns the number of matches found.
</p>
@@ -480,20 +476,20 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">GrepFiles</span><span class="special">(</span><span class="identifier">GrepFileCallback</span> <span class="identifier">cb</span><span class="special">,</span> <span class="keyword">const</span>
<span class="keyword">char</span><span class="special">*</span>
<span class="identifier">files</span><span class="special">,</span>
<span class="keyword">bool</span> <span class="identifier">recurse</span>
<span class="special">=</span> <span class="keyword">false</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
<span class="identifier">flags</span> <span class="special">=</span>
- <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the files files
- using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
For each match calls the call-back function cb. If the call-back
returns false then the algorithm returns without considering further
matches in the current file, or any further files.
@@ -507,7 +503,7 @@
Returns the total number of matches found.
</p>
<p>
- May throw an exception derived from <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ May throw an exception derived from <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if file io fails.
</p>
</td>
@@ -515,20 +511,20 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">GrepFiles</span><span class="special">(</span><span class="identifier">GrepFileCallback</span> <span class="identifier">cb</span><span class="special">,</span> <span class="keyword">const</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span>
<span class="identifier">files</span><span class="special">,</span>
<span class="keyword">bool</span> <span class="identifier">recurse</span>
<span class="special">=</span> <span class="keyword">false</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
<span class="identifier">flags</span> <span class="special">=</span>
- <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Finds all matches of the current expression in the files files
- using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
For each match calls the call-back function cb.
</p>
<p>
@@ -545,7 +541,7 @@
Returns the total number of matches found.
</p>
<p>
- May throw an exception derived from <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ May throw an exception derived from <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if file io fails.
</p>
</td>
@@ -553,20 +549,20 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">FindFiles</span><span class="special">(</span><span class="identifier">FindFilesCallback</span> <span class="identifier">cb</span><span class="special">,</span> <span class="keyword">const</span>
<span class="keyword">char</span><span class="special">*</span>
<span class="identifier">files</span><span class="special">,</span>
<span class="keyword">bool</span> <span class="identifier">recurse</span>
<span class="special">=</span> <span class="keyword">false</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
<span class="identifier">flags</span> <span class="special">=</span>
- <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Searches files to find all those which contain at least one match
- of the current expression using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ of the current expression using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
For each matching file calls the call-back function cb. If the
call-back returns false then the algorithm returns without considering
any further files.
@@ -580,7 +576,7 @@
Returns the total number of files found.
</p>
<p>
- May throw an exception derived from <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ May throw an exception derived from <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if file io fails.
</p>
</td>
@@ -588,20 +584,20 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">FindFiles</span><span class="special">(</span><span class="identifier">FindFilesCallback</span> <span class="identifier">cb</span><span class="special">,</span> <span class="keyword">const</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span>
<span class="identifier">files</span><span class="special">,</span>
<span class="keyword">bool</span> <span class="identifier">recurse</span>
<span class="special">=</span> <span class="keyword">false</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
<span class="identifier">flags</span> <span class="special">=</span>
- <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
<p>
Searches files to find all those which contain at least one match
- of the current expression using the match_flag_type <span class="emphasis"><em>flags</em></span>.
+ of the current expression using the match_flag_type
<span class="emphasis"><em>flags</em></span>.
For each matching file calls the call-back function cb.
</p>
<p>
@@ -617,7 +613,7 @@
Returns the total number of files found.
</p>
<p>
- May throw an exception derived from <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ May throw an exception derived from <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if file io fails.
</p>
</td>
@@ -625,14 +621,14 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">Merge</span><span class="special">(</span><span class="keyword">const</span>
+ <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">Merge</span><span class="special">(</span><span class="keyword">const</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span>
<span class="identifier">in</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">fmt</span><span class="special">,</span> <span class="keyword">bool</span>
<span class="identifier">copy</span> <span class="special">=</span>
<span class="keyword">true</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
@@ -645,22 +641,22 @@
If <span class="emphasis"><em>copy</em></span> is true then all unmatched sections
of input are copied unchanged to output, if the flag <span class="emphasis"><em>format_first_only</em></span>
is set then only the first occurance of the pattern found is replaced.
- Returns the new string. See also <a href="../../format.html" title=" Search and Replace Format String Syntax">format
- string syntax</a>, and match_flag_type.
+ Returns the new string. See also <a href="../../format.html" title="Search and Replace Format String Syntax">format
+ string syntax</a>, and match_flag_type
.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">Merge</span><span class="special">(</span><span class="keyword">const</span>
+ <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">Merge</span><span class="special">(</span><span class="keyword">const</span>
<span class="keyword">char</span><span class="special">*</span>
<span class="identifier">in</span><span class="special">,</span>
<span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">fmt</span><span class="special">,</span> <span class="keyword">bool</span>
<span class="identifier">copy</span> <span class="special">=</span>
<span class="keyword">true</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span>
- <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span></code>
</p>
</td>
<td>
@@ -673,19 +669,19 @@
If <span class="emphasis"><em>copy</em></span> is true then all unmatched sections
of input are copied unchanged to output, if the flag <span class="emphasis"><em>format_first_only</em></span>
is set then only the first occurance of the pattern found is replaced.
- Returns the new string. See also <a href="../../format.html" title=" Search and Replace Format String Syntax">format
- string syntax</a>, and match_flag_type.
+ Returns the new string. See also <a href="../../format.html" title="Search and Replace Format String Syntax">format
+ string syntax</a>, and match_flag_type
.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="identifier">Split</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>&</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="identifier">Split</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>&</span> <span class="identifier">v</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span>
<span class="identifier">flags</span> <span class="special">=</span>
<span class="identifier">match_default</span><span class="special">,</span>
<span class="keyword">unsigned</span> <span class="identifier">max_count</span>
- <span class="special">=</span> <span class="special">~</span><span class="number">0</span><span class="special">);</span></tt>
+ <span class="special">=</span> <span class="special">~</span><span class="number">0</span><span class="special">);</span></code>
</p>
</td>
<td>
@@ -706,17 +702,17 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Position</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span>
- <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></tt>
+ <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></code>
</p>
</td>
<td>
<p>
Returns the position of what matched sub-expression <span class="emphasis"><em>i</em></span>.
- If <tt class="computeroutput"><span class="identifier">i</span> <span class="special">=</span>
- <span class="number">0</span></tt> then returns the position
- of the whole match. Returns <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">npos</span></tt>
+ If <code class="computeroutput"><span class="identifier">i</span> <span class="special">=</span>
+ <span class="number">0</span></code> then returns the position
+ of the whole match. Returns <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">npos</span></code>
if the supplied index is invalid, or if the specified sub-expression
did not participate in the match.
</p>
@@ -725,16 +721,16 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Length</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span>
- <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></tt>
+ <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></code>
</p>
</td>
<td>
<p>
- Returns the length of what matched sub-expression i. If <tt class="computeroutput"><span class="identifier">i</span> <span class="special">=</span>
- <span class="number">0</span></tt> then returns the length
- of the whole match. Returns <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">npos</span></tt>
+ Returns the length of what matched sub-expression i. If <code class="computeroutput"><span class="identifier">i</span> <span class="special">=</span>
+ <span class="number">0</span></code> then returns the length
+ of the whole match. Returns <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">npos</span></code>
if the supplied index is invalid, or if the specified sub-expression
did not participate in the match.
</p>
@@ -743,8 +739,8 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Matched</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span>
- <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></tt>
+ <code class="computeroutput"><span class="keyword">bool</span> <span class="identifier">Matched</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span> <span class="special">=</span>
+ <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></code>
</p>
</td>
<td>
@@ -757,23 +753,23 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
- <span class="identifier">Line</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span></tt>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <span class="identifier">Line</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span></code>
</p>
</td>
<td>
<p>
Returns the line on which the match occurred, indexes start from
- 1 not zero, if no match occurred then returns <tt class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">npos</span></tt>.
+ 1 not zero, if no match occurred then returns <code class="computeroutput"><span class="identifier">RegEx</span><span class="special">::</span><span class="identifier">npos</span></code>.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
<span class="identifier">Marks</span><span class="special">()</span>
- <span class="keyword">const</span><span class="special">;</span></tt>
+ <span class="keyword">const</span><span class="special">;</span></code>
</p>
</td>
<td>
@@ -787,14 +783,14 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">What</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></tt>
+ <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="identifier">What</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">i</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span></code>
</p>
</td>
<td>
<p>
Returns a copy of what matched sub-expression <span class="emphasis"><em>i</em></span>.
- If <tt class="computeroutput"><span class="identifier">i</span> <span class="special">=</span>
- <span class="number">0</span></tt> then returns a copy of
+ If <code class="computeroutput"><span class="identifier">i</span> <span class="special">=</span>
+ <span class="number">0</span></code> then returns a copy of
the whole match. Returns a null string if the index is invalid
or if the specified sub-expression did not participate in a match.
</p>
@@ -803,13 +799,13 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">operator</span><span class="special">[](</span><span class="keyword">int</span>
- <span class="identifier">i</span><span class="special">)</span><span class="keyword">const</span> <span class="special">;</span></tt>
+ <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span> <span class="keyword">operator</span><span class="special">[](</span><span class="keyword">int</span>
+ <span class="identifier">i</span><span class="special">)</span><span class="keyword">const</span> <span class="special">;</span></code>
</p>
</td>
<td>
<p>
- Returns <tt class="computeroutput"><span class="identifier">what</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span></tt>
+ Returns <code class="computeroutput"><span class="identifier">what</span><span class="special">(</span><span class="identifier">i</span><span class="special">);</span></code>
Can be used to simplify access to sub-expression matches, and make
usage more perl-like.
</p>
@@ -820,10 +816,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- regex_format (Deprecated)</title>
+<title>regex_format (Deprecated)</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
<link rel="up" href="../deprecated_interfaces.html" title="Deprecated Interfaces">
<link rel="prev" href="../deprecated_interfaces.html" title="Deprecated Interfaces">
-<link rel="next" href="regex_grep.html" title="
- regex_grep (Deprecated)">
+<link rel="next" href="regex_grep.html" title="regex_grep (Deprecated)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,31 +24,29 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.deprecated_interfaces.regex_format"></a><a href="regex_format.html" title="
- regex_format (Deprecated)">
- regex_format (Deprecated)</a></h4></div></div></div>
+<a name="boost_regex.ref.deprecated_interfaces.regex_format"></a><a href="regex_format.html" title="regex_format (Deprecated)">
+ regex_format (Deprecated)</a>
+</h4></div></div></div>
<p>
- The algorithm <tt class="computeroutput"><span class="identifier">regex_format</span></tt>
- is deprecated; new code should use match_results<>::format instead. Existing code
+ The algorithm <code class="computeroutput"><span class="identifier">regex_format</span></code>
+ is deprecated; new code should use match_results<>::format
instead. Existing code
will continue to compile, the following documentation is taken from the
previous version of Boost.Regex and will not be further updated:
</p>
-<a name="boost_regex.ref.deprecated_interfaces.regex_format.algorithm_regex_format"></a><h4>
-<a name="id591505"></a>
+<a name="boost_regex.ref.deprecated_interfaces.regex_format.algorithm_regex_format"></a><h5>
+<a name="id624370"></a>
<a href="regex_format.html#boost_regex.ref.deprecated_interfaces.regex_format.algorithm_regex_format">Algorithm
regex_format</a>
- </h4>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- The algorithm <tt class="computeroutput"><span class="identifier">regex_format</span></tt>
+ The algorithm <code class="computeroutput"><span class="identifier">regex_format</span></code>
takes the results of a match and creates a new string based upon a format
- string, <tt class="computeroutput"><span class="identifier">regex_format</span></tt> can
+ string, <code class="computeroutput"><span class="identifier">regex_format</span></code> can
be used for search and replace operations:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">OutputIterator</span> <span class="identifier">regex_format</span><span class="special">(</span><span class="identifier">OutputIterator</span> <span class="identifier">out</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">fmt</span><span class="special">,</span>
@@ -62,7 +58,7 @@
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="number">0</span><span class="special">);</span>
</pre>
<p>
- The library also defines the following convenience variation of <tt class="computeroutput"><span class="identifier">regex_format</span></tt>, which returns the result
+ The library also defines the following convenience variation of <code class="computeroutput"><span class="identifier">regex_format</span></code>, which returns the result
directly as a string, rather than outputting to an iterator.
</p>
<div class="note"><table border="0" summary="Note">
@@ -70,13 +66,12 @@
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../../doc/html/images/note.png"></td>
<th align="left">Note</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
+<tr><td align="left" valign="top"><p>
This version may not be available, or may be available in a more limited
form, depending upon your compilers capabilities
</p></td></tr>
</table></div>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="identifier">regex_format</span>
<span class="special">(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">fmt</span><span class="special">,</span>
@@ -112,7 +107,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">OutputIterator</span> <span class="identifier">out</span></tt>
+ <code class="computeroutput"><span class="identifier">OutputIterator</span> <span class="identifier">out</span></code>
</p>
</td>
<td>
@@ -125,12 +120,12 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span></tt>
+ <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span></code>
</p>
</td>
<td>
<p>
- An instance of match_results obtained
+ An instance of match_results
obtained
from one of the matching algorithms above, and denoting what matched.
</p>
</td>
@@ -138,7 +133,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">fmt</span></tt>
+ <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">fmt</span></code>
</p>
</td>
<td>
@@ -151,7 +146,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="identifier">flags</span></tt>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="identifier">flags</span></code>
</p>
</td>
<td>
@@ -163,19 +158,20 @@
</tbody>
</table></div>
<p>
- Format flags are described under match_flag_type.
+ Format flags are described under match_flag_type
.
</p>
<p>
The format string syntax (and available options) is described more fully
- under format strings.
+ under format strings.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_grep.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- regex_grep (Deprecated)</title>
+<title>regex_grep (Deprecated)</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
<link rel="up" href="../deprecated_interfaces.html" title="Deprecated Interfaces">
-<link rel="prev" href="regex_format.html" title="
- regex_format (Deprecated)">
-<link rel="next" href="regex_split.html" title="
- regex_split (deprecated)">
+<link rel="prev" href="regex_format.html" title="regex_format (Deprecated)">
+<link rel="next" href="regex_split.html" title="regex_split (deprecated)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,28 +24,26 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.deprecated_interfaces.regex_grep"></a><a href="regex_grep.html" title="
- regex_grep (Deprecated)">
- regex_grep (Deprecated)</a></h4></div></div></div>
+<a name="boost_regex.ref.deprecated_interfaces.regex_grep"></a><a href="regex_grep.html" title="regex_grep (Deprecated)">
+ regex_grep (Deprecated)</a>
+</h4></div></div></div>
<p>
- The algorithm <tt class="computeroutput"><span class="identifier">regex_grep</span></tt>
- is deprecated in favor of regex_iterator which provides
+ The algorithm <code class="computeroutput"><span class="identifier">regex_grep</span></code>
+ is deprecated in favor of regex_iterator
which provides
a more convenient and standard library friendly interface.
</p>
<p>
The following documentation is taken unchanged from the previous boost
release, and will not be updated in future.
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- <tt class="computeroutput"><span class="identifier">regex_grep</span></tt> allows you to
+ <code class="computeroutput"><span class="identifier">regex_grep</span></code> allows you to
search through a bidirectional-iterator range and locate all the (non-overlapping)
matches with a given regular expression. The function is declared as:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Predicate</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Predicate</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">regex_grep</span><span class="special">(</span><span class="identifier">Predicate</span> <span class="identifier">foo</span><span class="special">,</span>
<span class="identifier">iterator</span> <span class="identifier">first</span><span class="special">,</span>
<span class="identifier">iterator</span> <span class="identifier">last</span><span class="special">,</span>
@@ -57,12 +52,11 @@
</pre>
<p>
The library also defines the following convenience versions, which take
- either a <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></tt>, or a <tt class="computeroutput"><span class="keyword">const</span>
- <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><>&</span></tt>
+ either a <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></code>, or a <code class="computeroutput"><span class="keyword">const</span>
+ <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><>&</span></code>
in place of a pair of iterators.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Predicate</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">Predicate</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">regex_grep</span><span class="special">(</span><span class="identifier">Predicate</span> <span class="identifier">foo</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">str</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
@@ -75,7 +69,7 @@
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- The parameters for the primary version of <tt class="computeroutput"><span class="identifier">regex_grep</span></tt>
+ The parameters for the primary version of <code class="computeroutput"><span class="identifier">regex_grep</span></code>
have the following meanings:
</p>
<p>
@@ -97,9 +91,9 @@
</p>
<p>
The algorithm finds all of the non-overlapping matches of the expression
- <span class="emphasis"><em>e</em></span>, for each match it fills a <tt class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">></span></tt> structure, which contains information
+ <span class="emphasis"><em>e</em></span>, for each match it fills a <code class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">></span></code> structure, which contains information
on what matched, and calls the predicate <span class="emphasis"><em>foo</em></span>, passing
- the <tt class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">></span></tt>
+ the <code class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">></span></code>
as a single argument. If the predicate returns <span class="emphasis"><em>true</em></span>,
then the grep operation continues, otherwise it terminates without searching
for further matches. The function returns the number of matches found.
@@ -107,8 +101,7 @@
<p>
The general form of the predicate is:
</p>
-<pre class="programlisting">
-<span class="keyword">struct</span> <span class="identifier">grep_predicate</span>
+<pre class="programlisting"><span class="keyword">struct</span> <span class="identifier">grep_predicate</span>
<span class="special">{</span>
<span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">()(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">iterator_type</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">);</span>
<span class="special">};</span>
@@ -123,12 +116,12 @@
utilities would output the results to the screen, another program could
index a file based on a regular expression and store a set of bookmarks
in a list, or a text file conversion utility would output to file. The
- results of one <tt class="computeroutput"><span class="identifier">regex_grep</span></tt>
- can even be chained into another <tt class="computeroutput"><span class="identifier">regex_grep</span></tt>
+ results of one <code class="computeroutput"><span class="identifier">regex_grep</span></code>
+ can even be chained into another <code class="computeroutput"><span class="identifier">regex_grep</span></code>
to create recursive parsers.
</p>
<p>
- The algorithm may throw <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ The algorithm may throw <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an <span class="emphasis"><em>N</em></span>
character string begins to exceed O(N<sup>2</sup>), or if the program runs out of
stack space while matching the expression (if Boost.Regex is configured
@@ -136,10 +129,9 @@
(if Boost.Regex is configured in non-recursive mode).
</p>
<p>
- Example: convert the example from regex_search to use <tt class="computeroutput"><span class="identifier">regex_grep</span></tt> instead:
+ Example: convert the example from regex_search
to use <code class="computeroutput"><span class="identifier">regex_grep</span></code> instead:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">map</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
@@ -198,11 +190,10 @@
<span class="special">}</span>
</pre>
<p>
- Example: Use <tt class="computeroutput"><span class="identifier">regex_grep</span></tt>
+ Example: Use <code class="computeroutput"><span class="identifier">regex_grep</span></code>
to call a global callback function:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">map</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
@@ -258,12 +249,11 @@
<span class="special">}</span>
</pre>
<p>
- Example: use <tt class="computeroutput"><span class="identifier">regex_grep</span></tt>
- to call a class member function, use the standard library adapters <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">mem_fun</span></tt> and <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">bind1st</span></tt>
+ Example: use <code class="computeroutput"><span class="identifier">regex_grep</span></code>
+ to call a class member function, use the standard library adapters <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">mem_fun</span></code> and <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">bind1st</span></code>
to convert the member function into a predicate:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">map</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">functional</span><span class="special">></span>
@@ -316,8 +306,7 @@
Finally, C++ Builder users can use C++ Builder's closure type as a callback
argument:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">map</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">functional</span><span class="special">></span>
@@ -373,10 +362,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/deprecated_interfaces/regex_split.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- regex_split (deprecated)</title>
+<title>regex_split (deprecated)</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
<link rel="up" href="../deprecated_interfaces.html" title="Deprecated Interfaces">
-<link rel="prev" href="regex_grep.html" title="
- regex_grep (Deprecated)">
-<link rel="next" href="old_regex.html" title=" High
- Level Class RegEx (Deprecated)">
+<link rel="prev" href="regex_grep.html" title="regex_grep (Deprecated)">
+<link rel="next" href="old_regex.html" title="High Level Class RegEx (Deprecated)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,31 +24,26 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.deprecated_interfaces.regex_split"></a><a href="regex_split.html" title="
- regex_split (deprecated)">
- regex_split (deprecated)</a></h4></div></div></div>
-<p>
- The algorithm <a href="regex_split.html" title="
- regex_split (deprecated)"><tt class="computeroutput"><span class="identifier">regex_split</span></tt></a> has been deprecated
- in favor of the iterator regex_token_iterator which has
+<a name="boost_regex.ref.deprecated_interfaces.regex_split"></a><a href="regex_split.html" title="regex_split (deprecated)">
+ regex_split (deprecated)</a>
+</h4></div></div></div>
+<p>
+ The algorithm regex_split
has been deprecated
+ in favor of the iterator regex_token_iterator
which has
a more flexible and powerful interface, as well as following the more usual
standard library "pull" rather than "push" semantics.
</p>
<p>
- Code which uses <a href="regex_split.html" title="
- regex_split (deprecated)"><tt class="computeroutput"><span class="identifier">regex_split</span></tt></a> will continue to compile,
+ Code which uses regex_split
will continue to compile,
the following documentation is taken from a previous Boost.Regex version:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- Algorithm <a href="regex_split.html" title="
- regex_split (deprecated)"><tt class="computeroutput"><span class="identifier">regex_split</span></tt></a> performs a similar
+ Algorithm regex_split
performs a similar
operation to the perl split operation, and comes in three overloaded forms:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Alloc1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits2</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Alloc1</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Traits2</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">regex_split</span><span class="special">(</span><span class="identifier">OutputIterator</span> <span class="identifier">out</span><span class="special">,</span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">Traits1</span><span class="special">,</span> <span class="identifier">Alloc1</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">Traits2</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
@@ -69,7 +61,7 @@
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">Traits1</span><span class="special">,</span> <span class="identifier">Alloc1</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Each version of the algorithm
+ <span class="bold"><strong>Effects</strong></span>: Each version of the algorithm
takes an output-iterator for output, and a string for input. If the expression
contains no marked sub-expressions, then the algorithm writes one string
onto the output-iterator for each section of input that does not match
@@ -80,11 +72,11 @@
processed will be deleted from the string <span class="emphasis"><em>s</em></span> (if <span class="emphasis"><em>max_split</em></span>
is not reached then all of <span class="emphasis"><em>s</em></span> will be deleted). Returns
the number of strings written to the output-iterator. If the parameter
- <span class="emphasis"><em>max_split</em></span> is not specified then it defaults to <tt class="computeroutput"><span class="identifier">UINT_MAX</span></tt>. If no expression is specified,
+ <span class="emphasis"><em>max_split</em></span> is not specified then it defaults to <code class="computeroutput"><span class="identifier">UINT_MAX</span></code>. If no expression is specified,
then it defaults to "\s+", and splitting occurs on whitespace.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while
matching the expression (if Boost.Regex is configured in recursive mode),
@@ -92,12 +84,11 @@
is configured in non-recursive mode).
</p>
<p>
- <span class="bold"><b>Example</b></span>: the following function will split
+ <span class="bold"><strong>Example</strong></span>: the following function will split
the input string into a series of tokens, and remove each token from the
string <span class="emphasis"><em>s</em></span>:
</p>
-<pre class="programlisting">
-<span class="keyword">unsigned</span> <span class="identifier">tokenise</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">list</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>&</span> <span class="identifier">l</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">)</span>
+<pre class="programlisting"><span class="keyword">unsigned</span> <span class="identifier">tokenise</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">list</span><span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">>&</span> <span class="identifier">l</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">s</span><span class="special">)</span>
<span class="special">{</span>
<span class="keyword">return</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_split</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">back_inserter</span><span class="special">(</span><span class="identifier">l</span><span class="special">),</span> <span class="identifier">s</span><span class="special">);</span>
<span class="special">}</span>
@@ -106,8 +97,7 @@
Example: the following short program will extract all of the URL's from
a html file, and print them out to cout:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">list</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">list</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">fstream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
@@ -159,10 +149,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/error_type.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/error_type.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/error_type.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> error_type</title>
+<title>error_type</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="match_flag_type.html" title=" match_flag_type">
-<link rel="next" href="regex_traits.html" title=" regex_traits">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="match_flag_type.html" title="match_flag_type">
+<link rel="next" href="regex_traits.html" title="regex_traits">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,17 +24,17 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.error_type"></a> error_type</h3></div></div></div>
-<a name="boost_regex.ref.error_type.synopsis"></a><h4>
-<a name="id569168"></a>
+<a name="boost_regex.ref.error_type"></a> error_type
+</h3></div></div></div>
+<a name="boost_regex.ref.error_type.synopsis"></a><h5>
+<a name="id602223"></a>
<a href="error_type.html#boost_regex.ref.error_type.synopsis">Synopsis</a>
- </h4>
+ </h5>
<p>
Type error type represents the different types of errors that can be raised
by the library when parsing a regular expression.
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">regex_constants</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">regex_constants</span><span class="special">{</span>
<span class="keyword">typedef</span> <span class="identifier">implementation</span><span class="special">-</span><span class="identifier">specific</span><span class="special">-</span><span class="identifier">type</span> <span class="identifier">error_type</span><span class="special">;</span>
@@ -56,12 +56,12 @@
<span class="special">}</span> <span class="comment">// namespace regex_constants
</span><span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
-<a name="boost_regex.ref.error_type.description"></a><h4>
-<a name="id569735"></a>
+<a name="boost_regex.ref.error_type.description"></a><h5>
+<a name="id602787"></a>
<a href="error_type.html#boost_regex.ref.error_type.description">Description</a>
- </h4>
+ </h5>
<p>
- The type <tt class="computeroutput"><span class="identifier">error_type</span></tt> is an
+ The type <code class="computeroutput"><span class="identifier">error_type</span></code> is an
implementation-specific enumeration type that may take one of the following
values:
</p>
@@ -257,10 +257,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/match_flag_type.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/match_flag_type.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/match_flag_type.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> match_flag_type</title>
+<title>match_flag_type</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="syntax_option_type/syntax_option_type_literal.html" title="
- Options for Literal Strings">
-<link rel="next" href="error_type.html" title=" error_type">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="syntax_option_type/syntax_option_type_literal.html" title="Options for Literal Strings">
+<link rel="next" href="error_type.html" title="error_type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,15 +24,15 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.match_flag_type"></a> match_flag_type</h3></div></div></div>
+<a name="boost_regex.ref.match_flag_type"></a> match_flag_type
+</h3></div></div></div>
<p>
- The type <tt class="computeroutput"><span class="identifier">match_flag_type</span></tt>
+ The type <code class="computeroutput"><span class="identifier">match_flag_type</span></code>
is an implementation specific bitmask type (see C++ std 17.3.2.1.2) that
controls how a regular expression is matched against a character sequence.
- The behavior of the format flags is described in more detail in the format syntax guide.
+ The behavior of the format flags is described in more detail in the format syntax guide.
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">regex_constants</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">regex_constants</span><span class="special">{</span>
<span class="keyword">typedef</span> <span class="identifier">implemenation</span><span class="special">-</span><span class="identifier">specific</span><span class="special">-</span><span class="identifier">bitmask</span><span class="special">-</span><span class="identifier">type</span> <span class="identifier">match_flag_type</span><span class="special">;</span>
@@ -69,12 +68,12 @@
<span class="special">}</span> <span class="comment">// namespace regex_constants
</span><span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
-<a name="boost_regex.ref.match_flag_type.description"></a><h4>
-<a name="id568392"></a>
+<a name="boost_regex.ref.match_flag_type.description"></a><h5>
+<a name="id601462"></a>
<a href="match_flag_type.html#boost_regex.ref.match_flag_type.description">Description</a>
- </h4>
+ </h5>
<p>
- The type <tt class="computeroutput"><span class="identifier">match_flag_type</span></tt>
+ The type <code class="computeroutput"><span class="identifier">match_flag_type</span></code>
is an implementation specific bitmask type (see C++ std 17.3.2.1.2). When
matching a regular expression against a sequence of characters [first, last)
then setting its elements has the effects listed in the table below:
@@ -328,8 +327,7 @@
<td>
<p>
Specifies that the expression should be matched according to the
- POSIX <a href="../syntax/leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule">leftmost-longest
+ POSIX <a href="../syntax/leftmost_longest_rule.html" title="The Leftmost Longest Rule">leftmost-longest
rule</a>, regardless of what kind of expression was compiled.
Be warned that these rules do not work well with many Perl-specific
features such as non-greedy repeats.
@@ -360,7 +358,7 @@
<td>
<p>
Makes the expression behave as if it had no marked subexpressions,
- no matter how many capturing groups are actually present. The match_results
+ no matter how many capturing groups are actually present. The match_results
class will only contain information about the overall match, and
not any sub-expressions.
</p>
@@ -380,7 +378,7 @@
Specification, Chapter 15 part 5.4.11 String.prototype.replace. (FWD.1).
</p>
<p>
- This is functionally identical to the <a href="../format/perl_format.html" title=" Perl Format String Syntax">Perl
+ This is functionally identical to the <a href="../format/perl_format.html" title="Perl Format String Syntax">Perl
format string rules</a>.
</p>
<p>
@@ -402,7 +400,7 @@
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. See also the Sed Format string reference.
+ SystemInterface (POSIX ), Shells and Utilities. See also the Sed Format string reference.
</p>
</td>
</tr>
@@ -415,7 +413,7 @@
<td>
<p>
Specifies that when a regular expression match is to be replaced
- by a new string, that the new string is constructed using <a href="../format/perl_format.html" title=" Perl Format String Syntax">the
+ by a new string, that the new string is constructed using <a href="../format/perl_format.html" title="Perl Format String Syntax">the
same rules as Perl 5</a>.
</p>
</td>
@@ -443,8 +441,7 @@
<td>
<p>
Specifies that all syntax extensions are enabled, including conditional
- (?ddexpression1:expression2) replacements: see the <a href="../format/boost_format_syntax.html" title=" Boost-Extended
- Format String Syntax">format
+ (?ddexpression1:expression2) replacements: see the <a href="../format/boost_format_syntax.html" title="Boost-Extended Format String Syntax">format
string guide</a> for more details.
</p>
</td>
@@ -481,10 +478,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/match_results.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/match_results.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/match_results.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> match_results</title>
+<title>match_results</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="basic_regex.html" title=" basic_regex">
-<link rel="next" href="sub_match.html" title=" sub_match">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="basic_regex.html" title="basic_regex">
+<link rel="next" href="sub_match.html" title="sub_match">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,45 +24,44 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.match_results"></a> match_results</h3></div></div></div>
-<a name="boost_regex.ref.match_results.synopsis"></a><h4>
-<a name="id498310"></a>
+<a name="boost_regex.ref.match_results"></a> match_results
+</h3></div></div></div>
+<a name="boost_regex.ref.match_results.synopsis"></a><h5>
+<a name="id531798"></a>
<a href="match_results.html#boost_regex.ref.match_results.synopsis">Synopsis</a>
- </h4>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
Regular expressions are different from many simple pattern-matching algorithms
in that as well as finding an overall match they can also produce sub-expression
matches: each sub-expression being delimited in the pattern by a pair of
parenthesis (...). There has to be some method for reporting sub-expression
- matches back to the user: this is achieved this by defining a class <tt class="computeroutput"><span class="identifier">match_results</span></tt> that acts as an indexed collection
+ matches back to the user: this is achieved this by defining a class <code class="computeroutput"><span class="identifier">match_results</span></code> that acts as an indexed collection
of sub-expression matches, each sub-expression match being contained in an
- object of type sub_match.
+ object of type sub_match
.
</p>
<p>
- Template class <tt class="computeroutput"><span class="identifier">match_results</span></tt>
+ Template class <code class="computeroutput"><span class="identifier">match_results</span></code>
denotes a collection of character sequences representing the result of a
- regular expression match. Objects of type <tt class="computeroutput"><span class="identifier">match_results</span></tt>
- are passed to the algorithms regex_match and regex_search, and are returned by
- the iterator regex_iterator. Storage for the
+ regular expression match. Objects of type <code class="computeroutput"><span class="identifier">match_results</span></code>
+ are passed to the algorithms regex_match
and regex_search
, and are returned by
+ the iterator regex_iterator
. Storage for the
collection is allocated and freed as necessary by the member functions of
- class <tt class="computeroutput"><span class="identifier">match_results</span></tt>.
+ class <code class="computeroutput"><span class="identifier">match_results</span></code>.
</p>
<p>
- The template class <tt class="computeroutput"><span class="identifier">match_results</span></tt>
+ The template class <code class="computeroutput"><span class="identifier">match_results</span></code>
conforms to the requirements of a Sequence, as specified in (lib.sequence.reqmts),
except that only operations defined for const-qualified Sequences are supported.
</p>
<p>
- Class template <tt class="computeroutput"><span class="identifier">match_results</span></tt>
- is most commonly used as one of the typedefs <tt class="computeroutput"><span class="identifier">cmatch</span></tt>,
- <tt class="computeroutput"><span class="identifier">wcmatch</span></tt>, <tt class="computeroutput"><span class="identifier">smatch</span></tt>,
- or <tt class="computeroutput"><span class="identifier">wsmatch</span></tt>:
+ Class template <code class="computeroutput"><span class="identifier">match_results</span></code>
+ is most commonly used as one of the typedefs <code class="computeroutput"><span class="identifier">cmatch</span></code>,
+ <code class="computeroutput"><span class="identifier">wcmatch</span></code>, <code class="computeroutput"><span class="identifier">smatch</span></code>,
+ or <code class="computeroutput"><span class="identifier">wsmatch</span></code>:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">Allocator</span> <span class="special">=</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">allocator</span><span class="special"><</span><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="special">></span>
<span class="keyword">class</span> <span class="identifier">match_results</span><span class="special">;</span>
@@ -142,23 +141,22 @@
<span class="keyword">void</span> swap<span class="special">(</span><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m1</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m2</span><span class="special">);</span>
</pre>
-<a name="boost_regex.ref.match_results.description"></a><h4>
-<a name="id501232"></a>
+<a name="boost_regex.ref.match_results.description"></a><h5>
+<a name="id534701"></a>
<a href="match_results.html#boost_regex.ref.match_results.description">Description</a>
- </h4>
+ </h5>
<p>
- In all <tt class="computeroutput"><span class="identifier">match_results</span></tt> constructors,
+ In all <code class="computeroutput"><span class="identifier">match_results</span></code> constructors,
a copy of the Allocator argument is used for any memory allocation performed
by the constructor or member functions during the lifetime of the object.
</p>
<a name="boost_regex.match_results.construct"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">match_results</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Allocator</span><span class="special">&</span> <span class="identifier">a</span> <span class="special">=</span> <span class="identifier">Allocator</span><span class="special">());</span>
+<pre class="programlisting"><span class="identifier">match_results</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">Allocator</span><span class="special">&</span> <span class="identifier">a</span> <span class="special">=</span> <span class="identifier">Allocator</span><span class="special">());</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class
- <tt class="computeroutput"><span class="identifier">match_results</span></tt>. The postconditions
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class
+ <code class="computeroutput"><span class="identifier">match_results</span></code>. The postconditions
of this function are indicated in the table:
</p>
<div class="informaltable"><table class="table">
@@ -219,20 +217,18 @@
</table></div>
<a name="boost_regex.match_results.copy_construct"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">match_results</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special">&</span> <span class="identifier">m</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">match_results</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special">&</span> <span class="identifier">m</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object of class match_results,
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object of class match_results,
as a copy of m.
</p>
<a name="boost_regex.match_results.assign"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">match_results</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special">&</span> <span class="identifier">m</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">match_results</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special">&</span> <span class="identifier">m</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Assigns m to *this. The postconditions
+ <span class="bold"><strong>Effects</strong></span>: Assigns m to *this. The postconditions
of this function are indicated in the table:
</p>
<div class="informaltable"><table class="table">
@@ -353,218 +349,201 @@
</table></div>
<a name="boost_regex.match_results.size"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">size_type</span> <span class="identifier">size</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">size_type</span> <span class="identifier">size</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the number of sub_match elements stored in *this;
+ <span class="bold"><strong>Effects</strong></span>: Returns the number of sub_match
elements stored in *this;
that is the number of marked sub-expressions in the regular expression that
was matched plus one.
</p>
<a name="boost_regex.match_results.max_size"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">size_type</span> <span class="identifier">max_size</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">size_type</span> <span class="identifier">max_size</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the maximum number of
- sub_match
+ <span class="bold"><strong>Effects</strong></span>: Returns the maximum number of
+ sub_match
elements that can be stored in *this.
</p>
<a name="boost_regex.match_results.empty"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="identifier">empty</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="identifier">empty</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns size() == 0.
+ <span class="bold"><strong>Effects</strong></span>: Returns size() == 0.
</p>
<a name="boost_regex.match_results.length"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">difference_type</span> <span class="identifier">length</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">sub</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">difference_type</span> <span class="identifier">length</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">sub</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the length of sub-expression
- <span class="emphasis"><em>sub</em></span>, that is to say: <tt class="computeroutput"><span class="special">(*</span><span class="keyword">this</span><span class="special">)[</span><span class="identifier">sub</span><span class="special">].</span><span class="identifier">length</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the length of sub-expression
+ <span class="emphasis"><em>sub</em></span>, that is to say: <code class="computeroutput"><span class="special">(*</span><span class="keyword">this</span><span class="special">)[</span><span class="identifier">sub</span><span class="special">].</span><span class="identifier">length</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.match_results.position"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">difference_type</span> <span class="identifier">position</span><span class="special">(</span><span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">sub</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">difference_type</span> <span class="identifier">position</span><span class="special">(</span><span class="keyword">unsigned</span> <span class="keyword">int</span> <span class="identifier">sub</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the starting location of
+ <span class="bold"><strong>Effects</strong></span>: Returns the starting location of
sub-expression <span class="emphasis"><em>sub</em></span>, or -1 if <span class="emphasis"><em>sub</em></span>
- was not matched. Note that if this represents a partial match , then <tt class="computeroutput"><span class="identifier">position</span><span class="special">()</span></tt>
- will return the location of the partial match even though <tt class="computeroutput"><span class="special">(*</span><span class="keyword">this</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></tt>
+ was not matched. Note that if this represents a partial match , then <code class="computeroutput"><span class="identifier">position</span><span class="special">()</span></code>
+ will return the location of the partial match even though <code class="computeroutput"><span class="special">(*</span><span class="keyword">this</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></code>
is false.
</p>
<a name="boost_regex.match_results.str"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">string_type</span> <span class="identifier">str</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">sub</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">string_type</span> <span class="identifier">str</span><span class="special">(</span><span class="keyword">int</span> <span class="identifier">sub</span> <span class="special">=</span> <span class="number">0</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns sub-expression <span class="emphasis"><em>sub</em></span>
- as a string: <tt class="computeroutput"><span class="identifier">string_type</span><span class="special">((*</span><span class="keyword">this</span><span class="special">)[</span><span class="identifier">sub</span><span class="special">])</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns sub-expression <span class="emphasis"><em>sub</em></span>
+ as a string: <code class="computeroutput"><span class="identifier">string_type</span><span class="special">((*</span><span class="keyword">this</span><span class="special">)[</span><span class="identifier">sub</span><span class="special">])</span></code>.
</p>
<a name="boost_regex.match_results.subscript"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">const_reference</span> <span class="keyword">operator</span><span class="special">[](</span><span class="keyword">int</span> <span class="identifier">n</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">const_reference</span> <span class="keyword">operator</span><span class="special">[](</span><span class="keyword">int</span> <span class="identifier">n</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a reference to the sub_match
+ <span class="bold"><strong>Effects</strong></span>: Returns a reference to the sub_match
object representing the character sequence that matched marked sub-expression
- <span class="emphasis"><em>n</em></span>. If <tt class="computeroutput"><span class="identifier">n</span> <span class="special">==</span> <span class="number">0</span></tt> then returns
- a reference to a sub_match object representing the
+ <span class="emphasis"><em>n</em></span>. If <code class="computeroutput"><span class="identifier">n</span> <span class="special">==</span> <span class="number">0</span></code> then returns
+ a reference to a sub_match
object representing the
character sequence that matched the whole regular expression. If <span class="emphasis"><em>n</em></span>
is out of range, or if <span class="emphasis"><em>n</em></span> is an unmatched sub-expression,
- then returns a sub_match
+ then returns a sub_match
object whose matched member is false.
</p>
<a name="boost_regex.match_results.prefix"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">const_reference</span> <span class="identifier">prefix</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">const_reference</span> <span class="identifier">prefix</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a reference to the sub_match
+ <span class="bold"><strong>Effects</strong></span>: Returns a reference to the sub_match
object representing the character sequence from the start of the string being
matched or searched, to the start of the match found.
</p>
<a name="boost_regex.match_results.suffix"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">const_reference</span> <span class="identifier">suffix</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">const_reference</span> <span class="identifier">suffix</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a reference to the sub_match
+ <span class="bold"><strong>Effects</strong></span>: Returns a reference to the sub_match
object representing the character sequence from the end of the match found
to the end of the string being matched or searched.
</p>
<a name="boost_regex.match_results.begin"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">const_iterator</span> <span class="identifier">begin</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">const_iterator</span> <span class="identifier">begin</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a starting iterator that
+ <span class="bold"><strong>Effects</strong></span>: Returns a starting iterator that
enumerates over all the marked sub-expression matches stored in *this.
</p>
<a name="boost_regex.match_results.end"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">const_iterator</span> <span class="identifier">end</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">const_iterator</span> <span class="identifier">end</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a terminating iterator
+ <span class="bold"><strong>Effects</strong></span>: Returns a terminating iterator
that enumerates over all the marked sub-expression matches stored in *this.
</p>
<a name="boost_regex.match_results_format"></a><a name="boost_regex.match_results.format"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">></span>
<span class="identifier">OutputIterator</span> <span class="identifier">format</span><span class="special">(</span><span class="identifier">OutputIterator</span> <span class="identifier">out</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&</span> <span class="identifier">fmt</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">format_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: The type <tt class="computeroutput"><span class="identifier">OutputIterator</span></tt>
+ <span class="bold"><strong>Requires</strong></span>: The type <code class="computeroutput"><span class="identifier">OutputIterator</span></code>
conforms to the Output Iterator requirements (C++ std 24.1.2).
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Copies the character sequence
- <tt class="computeroutput"><span class="special">[</span><span class="identifier">fmt</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">fmt</span><span class="special">.</span><span class="identifier">end</span><span class="special">())</span></tt>
- to <tt class="computeroutput"><span class="identifier">OutputIterator</span></tt> <span class="emphasis"><em>out</em></span>.
+ <span class="bold"><strong>Effects</strong></span>: Copies the character sequence
+ <code class="computeroutput"><span class="special">[</span><span class="identifier">fmt</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">fmt</span><span class="special">.</span><span class="identifier">end</span><span class="special">())</span></code>
+ to <code class="computeroutput"><span class="identifier">OutputIterator</span></code> <span class="emphasis"><em>out</em></span>.
For each format specifier or escape sequence in <span class="emphasis"><em>fmt</em></span>,
replace that sequence with either the character(s) it represents, or the
- sequence of characters within <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> to which it refers. The bitmasks specified
+ sequence of characters within <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> to which it refers. The bitmasks specified
in flags determines what format specifiers or escape sequences are recognized,
by default this is the format used by ECMA-262, ECMAScript Language Specification,
Chapter 15 part 5.4.11 String.prototype.replace.
</p>
<p>
- See the format syntax guide for more information.
+ See the format syntax guide for more information.
</p>
<p>
- <span class="bold"><b>Returns</b></span>: out.
+ <span class="bold"><strong>Returns</strong></span>: out.
</p>
<a name="boost_regex.match_results.format2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">string_type</span> <span class="identifier">format</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&</span> <span class="identifier">fmt</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">string_type</span> <span class="identifier">format</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">string_type</span><span class="special">&</span> <span class="identifier">fmt</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">format_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a copy of the string <span class="emphasis"><em>fmt</em></span>.
+ <span class="bold"><strong>Effects</strong></span>: Returns a copy of the string <span class="emphasis"><em>fmt</em></span>.
For each format specifier or escape sequence in <span class="emphasis"><em>fmt</em></span>,
replace that sequence with either the character(s) it represents, or the
- sequence of characters within <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> to which it refers. The bitmasks specified
+ sequence of characters within <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> to which it refers. The bitmasks specified
in flags determines what format specifiers or escape sequences are recognized,
by default this is the format used by ECMA-262, ECMAScript Language Specification,
Chapter 15 part 5.4.11 String.prototype.replace.
</p>
<p>
- See the format syntax guide for more information.
+ See the format syntax guide for more information.
</p>
<a name="boost_regex.match_results.get_allocator"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">allocator_type</span> <span class="identifier">get_allocator</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">allocator_type</span> <span class="identifier">get_allocator</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns a copy of the Allocator
+ <span class="bold"><strong>Effects</strong></span>: Returns a copy of the Allocator
that was passed to the object's constructor.
</p>
<a name="boost_regex.match_results.swap"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">match_results</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
+<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">match_results</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Swaps the contents of the two sequences.
+ <span class="bold"><strong>Effects</strong></span>: Swaps the contents of the two sequences.
</p>
<p>
- <span class="bold"><b>Postcondition</b></span>: *this contains the sequence
+ <span class="bold"><strong>Postcondition</strong></span>: *this contains the sequence
of matched sub-expressions that were in that, that contains the sequence
of matched sub-expressions that were in *this.
</p>
<p>
- <span class="bold"><b>Complexity</b></span>: constant time.
+ <span class="bold"><strong>Complexity</strong></span>: constant time.
</p>
<a name="boost_regex.match_results.capture_type"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">value_type</span><span class="special">::</span><span class="identifier">capture_sequence_type</span> <span class="identifier">capture_sequence_type</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">value_type</span><span class="special">::</span><span class="identifier">capture_sequence_type</span> <span class="identifier">capture_sequence_type</span><span class="special">;</span>
</pre>
<p>
Defines an implementation-specific type that satisfies the requirements of
a standard library Sequence (21.1.1 including the optional Table 68 operations),
- whose value_type is a <tt class="computeroutput"><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span></tt>. This type happens to be <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="special">></span></tt>,
+ whose value_type is a <code class="computeroutput"><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span></code>. This type happens to be <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="special">></span></code>,
but you shouldn't actually rely on that.
</p>
<a name="boost_regex.match_results.captures"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">const</span> <span class="identifier">capture_sequence_type</span><span class="special">&</span> <span class="identifier">captures</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">i</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">const</span> <span class="identifier">capture_sequence_type</span><span class="special">&</span> <span class="identifier">captures</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">i</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns a sequence containing all
+ <span class="bold"><strong>Effects</strong></span>: returns a sequence containing all
the captures obtained for sub-expression i.
</p>
<p>
- <span class="bold"><b>Returns</b></span>: <tt class="computeroutput"><span class="special">(*</span><span class="keyword">this</span><span class="special">)[</span><span class="identifier">i</span><span class="special">].</span><span class="identifier">captures</span><span class="special">();</span></tt>
+ <span class="bold"><strong>Returns</strong></span>: <code class="computeroutput"><span class="special">(*</span><span class="keyword">this</span><span class="special">)[</span><span class="identifier">i</span><span class="special">].</span><span class="identifier">captures</span><span class="special">();</span></code>
</p>
<p>
- <span class="bold"><b>Preconditions</b></span>: the library must be built
+ <span class="bold"><strong>Preconditions</strong></span>: the library must be built
and used with BOOST_REGEX_MATCH_EXTRA defined, and you must pass the flag
- match_extra to the regex matching functions ( regex_match, regex_search, regex_iterator or regex_token_iterator) in order for
+ match_extra to the regex matching functions ( regex_match
, regex_search
, regex_iterator
or regex_token_iterator
) in order for
this member function to be defined and return useful information.
</p>
<p>
- <span class="bold"><b>Rationale</b></span>: Enabling this feature has several
+ <span class="bold"><strong>Rationale</strong></span>: Enabling this feature has several
consequences:
</p>
<div class="itemizedlist"><ul type="disc">
@@ -584,57 +563,54 @@
</ul></div>
<a name="boost_regex.match_results.op_eq"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m1</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m2</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Compares the two sequences for
+ <span class="bold"><strong>Effects</strong></span>: Compares the two sequences for
equality.
</p>
<a name="boost_regex.match_results.op_ne"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m1</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m2</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Compares the two sequences for
+ <span class="bold"><strong>Effects</strong></span>: Compares the two sequences for
inequality.
</p>
<a name="boost_regex.match_results.op_stream"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="identifier">basic_ostream</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span>
<span class="keyword">operator</span> <span class="special"><<</span> <span class="special">(</span><span class="identifier">basic_ostream</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">os</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Writes the contents of <span class="emphasis"><em>m</em></span>
- to the stream <span class="emphasis"><em>os</em></span> as if by calling <tt class="computeroutput"><span class="identifier">os</span>
- <span class="special"><<</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>;
+ <span class="bold"><strong>Effects</strong></span>: Writes the contents of <span class="emphasis"><em>m</em></span>
+ to the stream <span class="emphasis"><em>os</em></span> as if by calling <code class="computeroutput"><span class="identifier">os</span>
+ <span class="special"><<</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>;
Returns <span class="emphasis"><em>os</em></span>.
</p>
<a name="boost_regex.match_results.op_swap"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m1</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m2</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Swaps the contents of the two sequences.
+ <span class="bold"><strong>Effects</strong></span>: Swaps the contents of the two sequences.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Interfacing With Non-Standard
- String Types</title>
+<title>Interfacing With Non-Standard String Types</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="regex_traits.html" title=" regex_traits">
-<link rel="next" href="non_std_strings/icu.html" title=" Working With
- Unicode and ICU String Types">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="regex_traits.html" title="regex_traits">
+<link rel="next" href="non_std_strings/icu.html" title="Working With Unicode and ICU String Types">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.non_std_strings"></a><a href="non_std_strings.html" title=" Interfacing With Non-Standard
- String Types"> Interfacing With Non-Standard
- String Types</a></h3></div></div></div>
+<a name="boost_regex.ref.non_std_strings"></a><a href="non_std_strings.html" title="Interfacing With Non-Standard String Types"> Interfacing With Non-Standard
+ String Types</a>
+</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="non_std_strings/icu.html"> Working With
Unicode and ICU String Types</a></span></dt>
@@ -72,15 +70,14 @@
been provided for them already: currently this includes the ICU and MFC string
class types.
</p>
-<p>
- </p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Working With
- Unicode and ICU String Types</title>
+<title>Working With Unicode and ICU String Types</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../non_std_strings.html" title=" Interfacing With Non-Standard
- String Types">
-<link rel="prev" href="../non_std_strings.html" title=" Interfacing With Non-Standard
- String Types">
-<link rel="next" href="icu/intro.html" title=" Introduction
- to using Regex with ICU">
+<link rel="up" href="../non_std_strings.html" title="Interfacing With Non-Standard String Types">
+<link rel="prev" href="../non_std_strings.html" title="Interfacing With Non-Standard String Types">
+<link rel="next" href="icu/intro.html" title="Introduction to using Regex with ICU">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.non_std_strings.icu"></a><a href="icu.html" title=" Working With
- Unicode and ICU String Types"> Working With
- Unicode and ICU String Types</a></h4></div></div></div>
+<a name="boost_regex.ref.non_std_strings.icu"></a><a href="icu.html" title="Working With Unicode and ICU String Types"> Working With
+ Unicode and ICU String Types</a>
+</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="icu/intro.html"> Introduction
to using Regex with ICU</a></span></dt>
@@ -44,10 +40,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/intro.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/intro.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/intro.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Introduction
- to using Regex with ICU</title>
+<title>Introduction to using Regex with ICU</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../icu.html" title=" Working With
- Unicode and ICU String Types">
-<link rel="prev" href="../icu.html" title=" Working With
- Unicode and ICU String Types">
-<link rel="next" href="unicode_types.html" title="
- Unicode regular expression types">
+<link rel="up" href="../icu.html" title="Working With Unicode and ICU String Types">
+<link rel="prev" href="../icu.html" title="Working With Unicode and ICU String Types">
+<link rel="next" href="unicode_types.html" title="Unicode regular expression types">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,14 +24,13 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.icu.intro"></a><a href="intro.html" title=" Introduction
- to using Regex with ICU"> Introduction
- to using Regex with ICU</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.icu.intro"></a><a href="intro.html" title="Introduction to using Regex with ICU"> Introduction
+ to using Regex with ICU</a>
+</h5></div></div></div>
<p>
The header:
</p>
-<pre class="programlisting">
-<span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
contains the data types and algorithms necessary for working with regular
@@ -67,10 +62,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Unicode Regular Expression Algorithms</title>
+<title>Unicode Regular Expression Algorithms</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../icu.html" title=" Working With
- Unicode and ICU String Types">
-<link rel="prev" href="unicode_types.html" title="
- Unicode regular expression types">
-<link rel="next" href="unicode_iter.html" title="
- Unicode Aware Regex Iterators">
+<link rel="up" href="../icu.html" title="Working With Unicode and ICU String Types">
+<link rel="prev" href="unicode_types.html" title="Unicode regular expression types">
+<link rel="next" href="unicode_iter.html" title="Unicode Aware Regex Iterators">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,41 +24,40 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.icu.unicode_algo"></a><a href="unicode_algo.html" title="
- Unicode Regular Expression Algorithms">
- Unicode Regular Expression Algorithms</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_algo"></a><a href="unicode_algo.html" title="Unicode Regular Expression Algorithms">
+ Unicode Regular Expression Algorithms</a>
+</h5></div></div></div>
<p>
- The regular expression algorithms regex_match, regex_search and regex_replace all expect that
+ The regular expression algorithms regex_match
, regex_search
and regex_replace
all expect that
the character sequence upon which they operate, is encoded in the same
character encoding as the regular expression object with which they are
used. For Unicode regular expressions that behavior is undesirable: while
we may want to process the data in UTF-32 "chunks", the actual
data is much more likely to encoded as either UTF-8 or UTF-16. Therefore
the header <boost/regex/icu.hpp> provides a series of thin wrappers
- around these algorithms, called <tt class="computeroutput"><span class="identifier">u32regex_match</span></tt>,
- <tt class="computeroutput"><span class="identifier">u32regex_search</span></tt>, and
- <tt class="computeroutput"><span class="identifier">u32regex_replace</span></tt>. These
+ around these algorithms, called <code class="computeroutput"><span class="identifier">u32regex_match</span></code>,
+ <code class="computeroutput"><span class="identifier">u32regex_search</span></code>, and
+ <code class="computeroutput"><span class="identifier">u32regex_replace</span></code>. These
wrappers use iterator-adapters internally to make external UTF-8 or UTF-16
data look as though it's really a UTF-32 sequence, that can then be passed
on to the "real" algorithm.
</p>
-<a name="boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_match"></a><h4>
-<a name="id572213"></a>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_match"></a><h5>
+<a name="id605222"></a>
<a href="unicode_algo.html#boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_match">u32regex_match</a>
- </h4>
+ </h5>
<p>
- For each regex_match
- algorithm defined by <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>,
- then <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt> defines an overloaded algorithm that
- takes the same arguments, but which is called <tt class="computeroutput"><span class="identifier">u32regex_match</span></tt>,
+ For each regex_match
+ algorithm defined by <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>,
+ then <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> defines an overloaded algorithm that
+ takes the same arguments, but which is called <code class="computeroutput"><span class="identifier">u32regex_match</span></code>,
and which will accept UTF-8, UTF-16 or UTF-32 encoded data, as well as
an ICU UnicodeString as input.
</p>
<p>
Example: match a password, encoded in a UTF-16 UnicodeString:
</p>
-<pre class="programlisting">
-<span class="comment">//
+<pre class="programlisting"><span class="comment">//
</span><span class="comment">// Find out if *password* meets our password requirements,
</span><span class="comment">// as defined by the regular expression *requirements*.
</span><span class="comment">//
@@ -74,8 +69,7 @@
<p>
Example: match a UTF-8 encoded filename:
</p>
-<pre class="programlisting">
-<span class="comment">//
+<pre class="programlisting"><span class="comment">//
</span><span class="comment">// Extract filename part of a path from a UTF-8 encoded std::string and return the result
</span><span class="comment">// as another std::string:
</span><span class="comment">//
@@ -94,23 +88,22 @@
<span class="special">}</span>
<span class="special">}</span>
</pre>
-<a name="boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_search"></a><h4>
-<a name="id572936"></a>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_search"></a><h5>
+<a name="id605941"></a>
<a href="unicode_algo.html#boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_search">u32regex_search</a>
- </h4>
+ </h5>
<p>
- For each regex_search
- algorithm defined by <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>,
- then <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt> defines an overloaded algorithm that
- takes the same arguments, but which is called <tt class="computeroutput"><span class="identifier">u32regex_search</span></tt>,
+ For each regex_search
+ algorithm defined by <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>,
+ then <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> defines an overloaded algorithm that
+ takes the same arguments, but which is called <code class="computeroutput"><span class="identifier">u32regex_search</span></code>,
and which will accept UTF-8, UTF-16 or UTF-32 encoded data, as well as
an ICU UnicodeString as input.
</p>
<p>
Example: search for a character sequence in a specific language block:
</p>
-<pre class="programlisting">
-<span class="identifier">UnicodeString</span> <span class="identifier">extract_greek</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">UnicodeString</span><span class="special">&</span> <span class="identifier">text</span><span class="special">)</span>
+<pre class="programlisting"><span class="identifier">UnicodeString</span> <span class="identifier">extract_greek</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">UnicodeString</span><span class="special">&</span> <span class="identifier">text</span><span class="special">)</span>
<span class="special">{</span>
<span class="comment">// searches through some UTF-16 encoded text for a block encoded in Greek,
</span> <span class="comment">// this expression is imperfect, but the best we can do for now - searching
@@ -134,15 +127,15 @@
<span class="special">}</span>
<span class="special">}</span>
</pre>
-<a name="boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_replace"></a><h4>
-<a name="id573532"></a>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_replace"></a><h5>
+<a name="id606534"></a>
<a href="unicode_algo.html#boost_regex.ref.non_std_strings.icu.unicode_algo.u32regex_replace">u32regex_replace</a>
- </h4>
+ </h5>
<p>
- For each regex_replace algorithm defined
- by <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>, then <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt>
+ For each regex_replace
algorithm defined
+ by <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>, then <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code>
defines an overloaded algorithm that takes the same arguments, but which
- is called <tt class="computeroutput"><span class="identifier">u32regex_replace</span></tt>,
+ is called <code class="computeroutput"><span class="identifier">u32regex_replace</span></code>,
and which will accept UTF-8, UTF-16 or UTF-32 encoded data, as well as
an ICU UnicodeString as input. The input sequence and the format string
specifier passed to the algorithm, can be encoded independently (for
@@ -153,8 +146,7 @@
<p>
Example: Credit card number reformatting:
</p>
-<pre class="programlisting">
-<span class="comment">//
+<pre class="programlisting"><span class="comment">//
</span><span class="comment">// Take a credit card number as a string of digits,
</span><span class="comment">// and reformat it as a human readable string with "-"
</span><span class="comment">// separating each group of four digit;,
@@ -174,10 +166,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Unicode Aware Regex Iterators</title>
+<title>Unicode Aware Regex Iterators</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../icu.html" title=" Working With
- Unicode and ICU String Types">
-<link rel="prev" href="unicode_algo.html" title="
- Unicode Regular Expression Algorithms">
-<link rel="next" href="../mfc_strings.html" title=" Using
- Boost Regex With MFC Strings">
+<link rel="up" href="../icu.html" title="Working With Unicode and ICU String Types">
+<link rel="prev" href="unicode_algo.html" title="Unicode Regular Expression Algorithms">
+<link rel="next" href="../mfc_strings.html" title="Using Boost Regex With MFC Strings">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,23 +24,22 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.icu.unicode_iter"></a><a href="unicode_iter.html" title="
- Unicode Aware Regex Iterators">
- Unicode Aware Regex Iterators</a></h5></div></div></div>
-<a name="boost_regex.ref.non_std_strings.icu.unicode_iter.u32regex_iterator"></a><h4>
-<a name="id573998"></a>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_iter"></a><a href="unicode_iter.html" title="Unicode Aware Regex Iterators">
+ Unicode Aware Regex Iterators</a>
+</h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_iter.u32regex_iterator"></a><h5>
+<a name="id606994"></a>
<a href="unicode_iter.html#boost_regex.ref.non_std_strings.icu.unicode_iter.u32regex_iterator">u32regex_iterator</a>
- </h4>
+ </h5>
<p>
- Type <tt class="computeroutput"><span class="identifier">u32regex_iterator</span></tt>
- is in all respects the same as regex_iterator except that since
- the regular expression type is always <tt class="computeroutput"><span class="identifier">u32regex</span></tt>
+ Type <code class="computeroutput"><span class="identifier">u32regex_iterator</span></code>
+ is in all respects the same as regex_iterator
except that since
+ the regular expression type is always <code class="computeroutput"><span class="identifier">u32regex</span></code>
it only takes one template parameter (the iterator type). It also calls
- <tt class="computeroutput"><span class="identifier">u32regex_search</span></tt> internally,
+ <code class="computeroutput"><span class="identifier">u32regex_search</span></code> internally,
allowing it to interface correctly with UTF-8, UTF-16, and UTF-32 data:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">class</span> <span class="identifier">u32regex_iterator</span>
<span class="special">{</span>
<span class="comment">// for members see regex_iterator
@@ -55,12 +50,11 @@
<span class="keyword">typedef</span> <span class="identifier">u32regex_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">UChar32</span><span class="special">*></span> <span class="identifier">utf32regex_iterator</span><span class="special">;</span>
</pre>
<p>
- In order to simplify the construction of a <tt class="computeroutput"><span class="identifier">u32regex_iterator</span></tt>
+ In order to simplify the construction of a <code class="computeroutput"><span class="identifier">u32regex_iterator</span></code>
from a string, there are a series of non-member helper functions called
make_u32regex_iterator:
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span>
+<pre class="programlisting"><span class="identifier">u32regex_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span>
<span class="identifier">make_u32regex_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">u32regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
@@ -95,8 +89,7 @@
Example: search for international currency symbols, along with their
associated numeric value:
</p>
-<pre class="programlisting">
-<span class="keyword">void</span> <span class="identifier">enumerate_currencies</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">text</span><span class="special">)</span>
+<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">enumerate_currencies</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">text</span><span class="special">)</span>
<span class="special">{</span>
<span class="comment">// enumerate and print all the currency symbols, along
</span> <span class="comment">// with any associated numeric values:
@@ -132,20 +125,19 @@
<p>
Provided of course that the input is encoded as UTF-8.
</p>
-<a name="boost_regex.ref.non_std_strings.icu.unicode_iter.u32regex_token_iterator"></a><h4>
-<a name="id575751"></a>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_iter.u32regex_token_iterator"></a><h5>
+<a name="id608741"></a>
<a href="unicode_iter.html#boost_regex.ref.non_std_strings.icu.unicode_iter.u32regex_token_iterator">u32regex_token_iterator</a>
- </h4>
+ </h5>
<p>
- Type <tt class="computeroutput"><span class="identifier">u32regex_token_iterator</span></tt>
- is in all respects the same as regex_token_iterator except
- that since the regular expression type is always <tt class="computeroutput"><span class="identifier">u32regex</span></tt>
+ Type <code class="computeroutput"><span class="identifier">u32regex_token_iterator</span></code>
+ is in all respects the same as regex_token_iterator
except
+ that since the regular expression type is always <code class="computeroutput"><span class="identifier">u32regex</span></code>
it only takes one template parameter (the iterator type). It also calls
- <tt class="computeroutput"><span class="identifier">u32regex_search</span></tt> internally,
+ <code class="computeroutput"><span class="identifier">u32regex_search</span></code> internally,
allowing it to interface correctly with UTF-8, UTF-16, and UTF-32 data:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">class</span> <span class="identifier">u32regex_token_iterator</span>
<span class="special">{</span>
<span class="comment">// for members see regex_token_iterator
@@ -156,12 +148,11 @@
<span class="keyword">typedef</span> <span class="identifier">u32regex_token_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">UChar32</span><span class="special">*></span> <span class="identifier">utf32regex_token_iterator</span><span class="special">;</span>
</pre>
<p>
- In order to simplify the construction of a <tt class="computeroutput"><span class="identifier">u32regex_token_iterator</span></tt>
+ In order to simplify the construction of a <code class="computeroutput"><span class="identifier">u32regex_token_iterator</span></code>
from a string, there are a series of non-member helper functions called
- <tt class="computeroutput"><span class="identifier">make_u32regex_token_iterator</span></tt>:
+ <code class="computeroutput"><span class="identifier">make_u32regex_token_iterator</span></code>:
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex_token_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span>
+<pre class="programlisting"><span class="identifier">u32regex_token_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span>
<span class="identifier">make_u32regex_token_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">u32regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">,</span>
@@ -202,8 +193,7 @@
of marked sub-expression sub in regular expression <span class="emphasis"><em>e</em></span>,
found in text <span class="emphasis"><em>s</em></span>, using match_flags <span class="emphasis"><em>m</em></span>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">N</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">N</span><span class="special">></span>
<span class="identifier">u32regex_token_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span>
<span class="identifier">make_u32regex_token_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
@@ -248,8 +238,7 @@
for each submatch in regular expression <span class="emphasis"><em>e</em></span>, found
in text <span class="emphasis"><em>s</em></span>, using match_flags <span class="emphasis"><em>m</em></span>.
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex_token_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span>
+<pre class="programlisting"><span class="identifier">u32regex_token_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*></span>
<span class="identifier">make_u32regex_token_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">u32regex</span><span class="special">&</span> <span class="identifier">e</span><span class="special">,</span>
@@ -294,8 +283,7 @@
Example: search for international currency symbols, along with their
associated numeric value:
</p>
-<pre class="programlisting">
-<span class="keyword">void</span> <span class="identifier">enumerate_currencies2</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">text</span><span class="special">)</span>
+<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">enumerate_currencies2</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span><span class="special">&</span> <span class="identifier">text</span><span class="special">)</span>
<span class="special">{</span>
<span class="comment">// enumerate and print all the currency symbols, along
</span> <span class="comment">// with any associated numeric values:
@@ -321,10 +309,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/icu/unicode_types.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Unicode regular expression types</title>
+<title>Unicode regular expression types</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../icu.html" title=" Working With
- Unicode and ICU String Types">
-<link rel="prev" href="intro.html" title=" Introduction
- to using Regex with ICU">
-<link rel="next" href="unicode_algo.html" title="
- Unicode Regular Expression Algorithms">
+<link rel="up" href="../icu.html" title="Working With Unicode and ICU String Types">
+<link rel="prev" href="intro.html" title="Introduction to using Regex with ICU">
+<link rel="next" href="unicode_algo.html" title="Unicode Regular Expression Algorithms">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,113 +24,105 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.icu.unicode_types"></a><a href="unicode_types.html" title="
- Unicode regular expression types">
- Unicode regular expression types</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.icu.unicode_types"></a><a href="unicode_types.html" title="Unicode regular expression types">
+ Unicode regular expression types</a>
+</h5></div></div></div>
<p>
- Header <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt> provides a regular expression traits
+ Header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">icu</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> provides a regular expression traits
class that handles UTF-32 characters:
</p>
-<pre class="programlisting">
-<span class="keyword">class</span> <span class="identifier">icu_regex_traits</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">class</span> <span class="identifier">icu_regex_traits</span><span class="special">;</span>
</pre>
<p>
and a regular expression type based upon that:
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">UChar32</span><span class="special">,</span><span class="identifier">icu_regex_traits</span><span class="special">></span> <span class="identifier">u32regex</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">UChar32</span><span class="special">,</span><span class="identifier">icu_regex_traits</span><span class="special">></span> <span class="identifier">u32regex</span><span class="special">;</span>
</pre>
<p>
- The type <tt class="computeroutput"><span class="identifier">u32regex</span></tt> is
+ The type <code class="computeroutput"><span class="identifier">u32regex</span></code> is
regular expression type to use for all Unicode regular expressions; internally
it uses UTF-32 code points, but can be created from, and used to search,
either UTF-8, or UTF-16 encoded strings as well as UTF-32 ones.
</p>
<p>
- The constructors, and assign member functions of <tt class="computeroutput"><span class="identifier">u32regex</span></tt>,
+ The constructors, and assign member functions of <code class="computeroutput"><span class="identifier">u32regex</span></code>,
require UTF-32 encoded strings, but there are a series of overloaded
- algorithms called <tt class="computeroutput"><span class="identifier">make_u32regex</span></tt>
+ algorithms called <code class="computeroutput"><span class="identifier">make_u32regex</span></code>
which allow regular expressions to be created from UTF-8, UTF-16, or
UTF-32 encoded strings:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">InputIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">InputIterator</span><span class="special">></span>
<span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="identifier">InputIterator</span> <span class="identifier">i</span><span class="special">,</span>
<span class="identifier">InputIterator</span> <span class="identifier">j</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">opt</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Creates a regular expression
+ <span class="bold"><strong>Effects</strong></span>: Creates a regular expression
object from the iterator sequence [i,j). The character encoding of the
sequence is determined based upon sizeof(*i): 1 implies UTF-8, 2 implies
UTF-16, and 4 implies UTF-32.
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">opt</span>
<span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Creates a regular expression
+ <span class="bold"><strong>Effects</strong></span>: Creates a regular expression
object from the Null-terminated UTF-8 characater sequence <span class="emphasis"><em>p</em></span>.
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">unsigned</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">unsigned</span> <span class="keyword">char</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">opt</span>
<span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Creates a regular expression
+ <span class="bold"><strong>Effects</strong></span>: Creates a regular expression
object from the Null-terminated UTF-8 characater sequence p.
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">wchar_t</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="keyword">wchar_t</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">opt</span>
<span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Creates a regular expression
+ <span class="bold"><strong>Effects</strong></span>: Creates a regular expression
object from the Null-terminated characater sequence p. The character
encoding of the sequence is determined based upon sizeof(wchar_t): 1
implies UTF-8, 2 implies UTF-16, and 4 implies UTF-32.
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">UChar</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">UChar</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">opt</span>
<span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Creates a regular expression
+ <span class="bold"><strong>Effects</strong></span>: Creates a regular expression
object from the Null-terminated UTF-16 characater sequence p.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="identifier">C</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span><span class="special"><</span><span class="keyword">class</span> <span class="identifier">C</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">></span>
<span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">C</span><span class="special">,</span> <span class="identifier">T</span><span class="special">,</span> <span class="identifier">A</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">opt</span>
<span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Creates a regular expression
+ <span class="bold"><strong>Effects</strong></span>: Creates a regular expression
object from the string s. The character encoding of the string is determined
based upon sizeof(C): 1 implies UTF-8, 2 implies UTF-16, and 4 implies
UTF-32.
</p>
-<pre class="programlisting">
-<span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">UnicodeString</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">u32regex</span> <span class="identifier">make_u32regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">UnicodeString</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">opt</span>
<span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">perl</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Creates a regular expression
+ <span class="bold"><strong>Effects</strong></span>: Creates a regular expression
object from the UTF-16 encoding string s.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Using
- Boost Regex With MFC Strings</title>
+<title>Using Boost Regex With MFC Strings</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../non_std_strings.html" title=" Interfacing With Non-Standard
- String Types">
-<link rel="prev" href="icu/unicode_iter.html" title="
- Unicode Aware Regex Iterators">
-<link rel="next" href="mfc_strings/mfc_intro.html" title="
- Introduction to Boost.Regex and MFC Strings">
+<link rel="up" href="../non_std_strings.html" title="Interfacing With Non-Standard String Types">
+<link rel="prev" href="icu/unicode_iter.html" title="Unicode Aware Regex Iterators">
+<link rel="next" href="mfc_strings/mfc_intro.html" title="Introduction to Boost.Regex and MFC Strings">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.non_std_strings.mfc_strings"></a><a href="mfc_strings.html" title=" Using
- Boost Regex With MFC Strings"> Using
- Boost Regex With MFC Strings</a></h4></div></div></div>
+<a name="boost_regex.ref.non_std_strings.mfc_strings"></a><a href="mfc_strings.html" title="Using Boost Regex With MFC Strings"> Using
+ Boost Regex With MFC Strings</a>
+</h4></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="mfc_strings/mfc_intro.html">
Introduction to Boost.Regex and MFC Strings</a></span></dt>
@@ -46,10 +42,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Overloaded Algorithms For MFC String Types</title>
+<title>Overloaded Algorithms For MFC String Types</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../mfc_strings.html" title=" Using
- Boost Regex With MFC Strings">
-<link rel="prev" href="mfc_regex_create.html" title="
- Regular Expression Creation From an MFC String">
-<link rel="next" href="mfc_iter.html" title="
- Iterating Over the Matches Within An MFC String">
+<link rel="up" href="../mfc_strings.html" title="Using Boost Regex With MFC Strings">
+<link rel="prev" href="mfc_regex_create.html" title="Regular Expression Creation From an MFC String">
+<link rel="next" href="mfc_iter.html" title="Iterating Over the Matches Within An MFC String">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,31 +24,30 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo"></a><a href="mfc_algo.html" title="
- Overloaded Algorithms For MFC String Types">
- Overloaded Algorithms For MFC String Types</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo"></a><a href="mfc_algo.html" title="Overloaded Algorithms For MFC String Types">
+ Overloaded Algorithms For MFC String Types</a>
+</h5></div></div></div>
<p>
- For each regular expression algorithm that's overloaded for a <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></tt> argument, there is also
+ For each regular expression algorithm that's overloaded for a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code> argument, there is also
one overloaded for the MFC/ATL string types. These algorithm signatures
all look a lot more complex than they actually are, but for completeness
here they are anyway:
</p>
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_match"></a><h4>
-<a name="id580927"></a>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_match"></a><h5>
+<a name="id613898"></a>
<a href="mfc_algo.html#boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_match">regex_match</a>
- </h4>
+ </h5>
<p>
There are two overloads, the first reports what matched in a match_results
structure, the second does not.
</p>
<p>
- All the usual caveats for regex_match apply, in particular
+ All the usual caveats for regex_match
apply, in particular
the algorithm will only report a successful match if all of the input
- text matches the expression, if this isn't what you want then use regex_search
+ text matches the expression, if this isn't what you want then use regex_search
instead.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">B</span><span class="special">*,</span> <span class="identifier">A</span><span class="special">>&</span> <span class="identifier">what</span><span class="special">,</span>
@@ -60,15 +55,14 @@
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
<span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span>
- <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span> <span class="identifier">what</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span> <span class="identifier">what</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span></code>
</p>
<p>
- <span class="bold"><b>Example:</b></span>
+ <span class="bold"><strong>Example:</strong></span>
</p>
-<pre class="programlisting">
-<span class="comment">//
+<pre class="programlisting"><span class="comment">//
</span><span class="comment">// Extract filename part of a path from a CString and return the result
</span><span class="comment">// as another CString:
</span><span class="comment">//
@@ -87,28 +81,26 @@
<span class="special">}</span>
<span class="special">}</span>
</pre>
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_match__second_overload_"></a><h4>
-<a name="id581844"></a>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_match__second_overload_"></a><h5>
+<a name="id614810"></a>
<a href="mfc_algo.html#boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_match__second_overload_">regex_match
(second overload)</a>
- </h4>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">B</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
<span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span>
- <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span></code>
</p>
<p>
- <span class="bold"><b>Example:</b></span>
+ <span class="bold"><strong>Example:</strong></span>
</p>
-<pre class="programlisting">
-<span class="comment">//
+<pre class="programlisting"><span class="comment">//
</span><span class="comment">// Find out if *password* meets our password requirements,
</span><span class="comment">// as defined by the regular expression *requirements*.
</span><span class="comment">//
@@ -117,31 +109,29 @@
<span class="keyword">return</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">password</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">make_regex</span><span class="special">(</span><span class="identifier">requirements</span><span class="special">));</span>
<span class="special">}</span>
</pre>
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_search"></a><h4>
-<a name="id582440"></a>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_search"></a><h5>
+<a name="id615401"></a>
<a href="mfc_algo.html#boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_search">regex_search</a>
- </h4>
+ </h5>
<p>
- There are two additional overloads for regex_search, the first reports
+ There are two additional overloads for regex_search
, the first reports
what matched the second does not:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">A</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*,</span> <span class="identifier">A</span><span class="special">>&</span> <span class="identifier">what</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns ::boost::regex_search(s.GetString(),
+ <span class="bold"><strong>Effects</strong></span>: returns ::boost::regex_search(s.GetString(),
s.GetString() + s.GetLength(), what, e, f);
</p>
<p>
- <span class="bold"><b>Example</b></span>: Postcode extraction from an
+ <span class="bold"><strong>Example</strong></span>: Postcode extraction from an
address string.
</p>
-<pre class="programlisting">
-<span class="identifier">CString</span> <span class="identifier">extract_postcode</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CString</span><span class="special">&</span> <span class="identifier">address</span><span class="special">)</span>
+<pre class="programlisting"><span class="identifier">CString</span> <span class="identifier">extract_postcode</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CString</span><span class="special">&</span> <span class="identifier">address</span><span class="special">)</span>
<span class="special">{</span>
<span class="comment">// searches throw address for a UK postcode and returns the result,
</span> <span class="comment">// the expression used is by Phil A. on www.regxlib.com:
@@ -158,32 +148,30 @@
<span class="special">}</span>
<span class="special">}</span>
</pre>
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_search__second_overload_"></a><h4>
-<a name="id583183"></a>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_search__second_overload_"></a><h5>
+<a name="id616138"></a>
<a href="mfc_algo.html#boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_search__second_overload_">regex_search
(second overload)</a>
- </h4>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">T</span><span class="special">></span>
<span class="keyword">inline</span> <span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">T</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">)</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
<span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span>
- <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">f</span><span class="special">);</span></code>
</p>
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_replace"></a><h4>
-<a name="id583590"></a>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_replace"></a><h5>
+<a name="id616543"></a>
<a href="mfc_algo.html#boost_regex.ref.non_std_strings.mfc_strings.mfc_algo.regex_replace">regex_replace</a>
- </h4>
+ </h5>
<p>
- There are two additional overloads for regex_replace, the first sends
+ There are two additional overloads for regex_replace
, the first sends
output to an output iterator, while the second creates a new string
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span>
<span class="identifier">charT</span><span class="special">></span>
<span class="identifier">OutputIterator</span> <span class="identifier">regex_replace</span><span class="special">(</span><span class="identifier">OutputIterator</span> <span class="identifier">out</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span>
@@ -193,26 +181,24 @@
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">)</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_replace</span><span class="special">(</span><span class="identifier">out</span><span class="special">,</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">fmt</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
- <span class="identifier">flags</span><span class="special">);</span></tt>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_replace</span><span class="special">(</span><span class="identifier">out</span><span class="special">,</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">fmt</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span>
+ <span class="identifier">flags</span><span class="special">);</span></code>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="identifier">charT</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="identifier">regex_replace</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">fmt</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">)</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns a new string created
- using regex_replace,
+ <span class="bold"><strong>Effects</strong></span>: returns a new string created
+ using regex_replace
,
and the same memory manager as string <span class="emphasis"><em>s</em></span>.
</p>
<p>
- <span class="bold"><b>Example</b></span>:
+ <span class="bold"><strong>Example</strong></span>:
</p>
-<pre class="programlisting">
-<span class="comment">//
+<pre class="programlisting"><span class="comment">//
</span><span class="comment">// Take a credit card number as a string of digits,
</span><span class="comment">// and reformat it as a human readable string with "-"
</span><span class="comment">// separating each group of four digits:
@@ -228,10 +214,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_intro.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Introduction to Boost.Regex and MFC Strings</title>
+<title>Introduction to Boost.Regex and MFC Strings</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../mfc_strings.html" title=" Using
- Boost Regex With MFC Strings">
-<link rel="prev" href="../mfc_strings.html" title=" Using
- Boost Regex With MFC Strings">
-<link rel="next" href="mfc_regex_types.html" title="
- Regex Types Used With MFC Strings">
+<link rel="up" href="../mfc_strings.html" title="Using Boost Regex With MFC Strings">
+<link rel="prev" href="../mfc_strings.html" title="Using Boost Regex With MFC Strings">
+<link rel="next" href="mfc_regex_types.html" title="Regex Types Used With MFC Strings">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,11 +24,11 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_intro"></a><a href="mfc_intro.html" title="
- Introduction to Boost.Regex and MFC Strings">
- Introduction to Boost.Regex and MFC Strings</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_intro"></a><a href="mfc_intro.html" title="Introduction to Boost.Regex and MFC Strings">
+ Introduction to Boost.Regex and MFC Strings</a>
+</h5></div></div></div>
<p>
- The header <tt class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">mfc</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></tt> provides Boost.Regex support for
+ The header <code class="computeroutput"><span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">/</span><span class="identifier">mfc</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> provides Boost.Regex support for
MFC string types: note that this support requires Visual Studio .NET
(Visual C++ 7) or later, where all of the MFC and ATL string types are
based around the CSimpleStringT class template.
@@ -42,8 +38,7 @@
then you can substitute any of the following MFC/ATL types (all of which
inherit from CSimpleStringT):
</p>
-<pre class="programlisting">
-<span class="identifier">CString</span>
+<pre class="programlisting"><span class="identifier">CString</span>
<span class="identifier">CStringA</span>
<span class="identifier">CStringW</span>
<span class="identifier">CAtlString</span>
@@ -56,10 +51,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Iterating Over the Matches Within An MFC String</title>
+<title>Iterating Over the Matches Within An MFC String</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../mfc_strings.html" title=" Using
- Boost Regex With MFC Strings">
-<link rel="prev" href="mfc_algo.html" title="
- Overloaded Algorithms For MFC String Types">
-<link rel="next" href="../../posix.html" title=" POSIX Compatible C API's">
+<link rel="up" href="../mfc_strings.html" title="Using Boost Regex With MFC Strings">
+<link rel="prev" href="mfc_algo.html" title="Overloaded Algorithms For MFC String Types">
+<link rel="next" href="../../posix.html" title="POSIX Compatible C API's">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,20 +24,19 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_iter"></a><a href="mfc_iter.html" title="
- Iterating Over the Matches Within An MFC String">
- Iterating Over the Matches Within An MFC String</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_iter"></a><a href="mfc_iter.html" title="Iterating Over the Matches Within An MFC String">
+ Iterating Over the Matches Within An MFC String</a>
+</h5></div></div></div>
<p>
The following helper functions are provided to ease the conversion from
- an MFC/ATL string to a regex_iterator or regex_token_iterator:
+ an MFC/ATL string to a regex_iterator
or regex_token_iterator
:
</p>
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_iter.regex_iterator_creation_helper"></a><h4>
-<a name="id584678"></a>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_iter.regex_iterator_creation_helper"></a><h5>
+<a name="id617624"></a>
<a href="mfc_iter.html#boost_regex.ref.non_std_strings.mfc_strings.mfc_iter.regex_iterator_creation_helper">regex_iterator
creation helper</a>
- </h4>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">regex_iterator</span><span class="special"><</span><span class="identifier">charT</span> <span class="keyword">const</span><span class="special">*></span>
<span class="identifier">make_regex_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
@@ -48,15 +44,14 @@
<span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">regex_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">regex_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
<span class="identifier">e</span><span class="special">,</span>
- <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="identifier">f</span><span class="special">);</span></code>
</p>
<p>
- <span class="bold"><b>Example</b></span>:
+ <span class="bold"><strong>Example</strong></span>:
</p>
-<pre class="programlisting">
-<span class="keyword">void</span> <span class="identifier">enumerate_links</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CString</span><span class="special">&</span> <span class="identifier">html</span><span class="special">)</span>
+<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">enumerate_links</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CString</span><span class="special">&</span> <span class="identifier">html</span><span class="special">)</span>
<span class="special">{</span>
<span class="comment">// enumerate and print all the links in some HTML text,
</span> <span class="comment">// the expression used is by Andew Lee on www.regxlib.com:
@@ -72,13 +67,12 @@
<span class="special">}</span>
<span class="special">}</span>
</pre>
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_iter.regex_token_iterator_creation_helpers"></a><h4>
-<a name="id585433"></a>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_iter.regex_token_iterator_creation_helpers"></a><h5>
+<a name="id618372"></a>
<a href="mfc_iter.html#boost_regex.ref.non_std_strings.mfc_strings.mfc_iter.regex_token_iterator_creation_helpers">regex_token_iterator
creation helpers</a>
- </h4>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">regex_token_iterator</span><span class="special"><</span><span class="identifier">charT</span> <span class="keyword">const</span><span class="special">*></span>
<span class="identifier">make_regex_token_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
@@ -87,13 +81,12 @@
<span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
<span class="identifier">e</span><span class="special">,</span>
<span class="identifier">sub</span><span class="special">,</span>
- <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="identifier">f</span><span class="special">);</span></code>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">regex_token_iterator</span><span class="special"><</span><span class="identifier">charT</span> <span class="keyword">const</span><span class="special">*></span>
<span class="identifier">make_regex_token_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
@@ -102,13 +95,12 @@
<span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
<span class="identifier">e</span><span class="special">,</span>
<span class="identifier">subs</span><span class="special">,</span>
- <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="identifier">f</span><span class="special">);</span></code>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">N</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">N</span><span class="special">></span>
<span class="identifier">regex_token_iterator</span><span class="special"><</span><span class="identifier">charT</span> <span class="keyword">const</span><span class="special">*></span>
<span class="identifier">make_regex_token_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
@@ -117,16 +109,15 @@
<span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
<span class="identifier">e</span><span class="special">,</span>
<span class="identifier">subs</span><span class="special">,</span>
- <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="identifier">f</span><span class="special">);</span></code>
</p>
<p>
- <span class="bold"><b>Example</b></span>:
+ <span class="bold"><strong>Example</strong></span>:
</p>
-<pre class="programlisting">
-<span class="keyword">void</span> <span class="identifier">enumerate_links2</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CString</span><span class="special">&</span> <span class="identifier">html</span><span class="special">)</span>
+<pre class="programlisting"><span class="keyword">void</span> <span class="identifier">enumerate_links2</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">CString</span><span class="special">&</span> <span class="identifier">html</span><span class="special">)</span>
<span class="special">{</span>
<span class="comment">// enumerate and print all the links in some HTML text,
</span> <span class="comment">// the expression used is by Andew Lee on www.regxlib.com:
@@ -145,10 +136,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_create.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Regular Expression Creation From an MFC String</title>
+<title>Regular Expression Creation From an MFC String</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../mfc_strings.html" title=" Using
- Boost Regex With MFC Strings">
-<link rel="prev" href="mfc_regex_types.html" title="
- Regex Types Used With MFC Strings">
-<link rel="next" href="mfc_algo.html" title="
- Overloaded Algorithms For MFC String Types">
+<link rel="up" href="../mfc_strings.html" title="Using Boost Regex With MFC Strings">
+<link rel="prev" href="mfc_regex_types.html" title="Regex Types Used With MFC Strings">
+<link rel="next" href="mfc_algo.html" title="Overloaded Algorithms For MFC String Types">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,30 +24,30 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_regex_create"></a><a href="mfc_regex_create.html" title="
- Regular Expression Creation From an MFC String">
- Regular Expression Creation From an MFC String</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_regex_create"></a><a href="mfc_regex_create.html" title="Regular Expression Creation From an MFC String">
+ Regular Expression Creation From an MFC String</a>
+</h5></div></div></div>
<p>
The following helper function is available to assist in the creation
of a regular expression from an MFC/ATL string type:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span>
<span class="identifier">make_regex</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ATL</span><span class="special">::</span><span class="identifier">CSimpleStringT</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="special">::</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">syntax_option_type</span> <span class="identifier">f</span> <span class="special">=</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">normal</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
- <span class="identifier">f</span><span class="special">);</span></tt>
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetString</span><span class="special">()</span> <span class="special">+</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">GetLength</span><span class="special">(),</span>
+ <span class="identifier">f</span><span class="special">);</span></code>
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_regex_types.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Regex Types Used With MFC Strings</title>
+<title>Regex Types Used With MFC Strings</title>
<link rel="stylesheet" href="../../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../../index.html" title="Boost.Regex">
-<link rel="up" href="../mfc_strings.html" title=" Using
- Boost Regex With MFC Strings">
-<link rel="prev" href="mfc_intro.html" title="
- Introduction to Boost.Regex and MFC Strings">
-<link rel="next" href="mfc_regex_create.html" title="
- Regular Expression Creation From an MFC String">
+<link rel="up" href="../mfc_strings.html" title="Using Boost Regex With MFC Strings">
+<link rel="prev" href="mfc_intro.html" title="Introduction to Boost.Regex and MFC Strings">
+<link rel="next" href="mfc_regex_create.html" title="Regular Expression Creation From an MFC String">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,31 +24,31 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h5 class="title">
-<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_regex_types"></a><a href="mfc_regex_types.html" title="
- Regex Types Used With MFC Strings">
- Regex Types Used With MFC Strings</a></h5></div></div></div>
+<a name="boost_regex.ref.non_std_strings.mfc_strings.mfc_regex_types"></a><a href="mfc_regex_types.html" title="Regex Types Used With MFC Strings">
+ Regex Types Used With MFC Strings</a>
+</h5></div></div></div>
<p>
The following typedefs are provided for the convenience of those working
with TCHAR's:
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">TCHAR</span><span class="special">></span> <span class="identifier">tregex</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">TCHAR</span><span class="special">></span> <span class="identifier">tregex</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">match_results</span><span class="special"><</span><span class="identifier">TCHAR</span> <span class="keyword">const</span><span class="special">*></span> <span class="identifier">tmatch</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">regex_iterator</span><span class="special"><</span><span class="identifier">TCHAR</span> <span class="keyword">const</span><span class="special">*></span> <span class="identifier">tregex_iterator</span><span class="special">;</span>
<span class="keyword">typedef</span> <span class="identifier">regex_token_iterator</span><span class="special"><</span><span class="identifier">TCHAR</span> <span class="keyword">const</span><span class="special">*></span> <span class="identifier">tregex_token_iterator</span><span class="special">;</span>
</pre>
<p>
If you are working with explicitly narrow or wide characters rather than
- TCHAR, then use the regular Boost.Regex types <tt class="computeroutput"><span class="identifier">regex</span></tt>
- and <tt class="computeroutput"><span class="identifier">wregex</span></tt> instead.
+ TCHAR, then use the regular Boost.Regex types <code class="computeroutput"><span class="identifier">regex</span></code>
+ and <code class="computeroutput"><span class="identifier">wregex</span></code> instead.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/posix.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/posix.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/posix.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> POSIX Compatible C API's</title>
+<title>POSIX Compatible C API's</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="non_std_strings/mfc_strings/mfc_iter.html" title="
- Iterating Over the Matches Within An MFC String">
-<link rel="next" href="concepts.html" title=" Concepts">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="non_std_strings/mfc_strings/mfc_iter.html" title="Iterating Over the Matches Within An MFC String">
+<link rel="next" href="concepts.html" title="Concepts">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,13 +24,14 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.posix"></a> POSIX Compatible C API's</h3></div></div></div>
+<a name="boost_regex.ref.posix"></a> POSIX Compatible C API's
+</h3></div></div></div>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
<th align="left">Note</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
+<tr><td align="left" valign="top"><p>
this is an abridged reference to the POSIX API functions, these are provided
for compatibility with other libraries, rather than as an API to be used
in new code (unless you need access from a language other than C++). This
@@ -39,14 +39,12 @@
as the names used are macros that expand to the actual function names.
</p></td></tr>
</table></div>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">cregex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
or:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">h</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">h</span><span class="special">></span>
</pre>
<p>
The following functions are available for users who need a POSIX compatible
@@ -59,9 +57,9 @@
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../../../../../doc/html/images/important.png"></td>
<th align="left">Important</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
- Note that all the symbols defined here are enclosed inside namespace <tt class="computeroutput"><span class="identifier">boost</span></tt> when used in C++ programs, unless
- you use <tt class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">h</span><span class="special">></span></tt>
+<tr><td align="left" valign="top"><p>
+ Note that all the symbols defined here are enclosed inside namespace <code class="computeroutput"><span class="identifier">boost</span></code> when used in C++ programs, unless
+ you use <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">h</span><span class="special">></span></code>
instead - in which case the symbols are still defined in namespace boost,
but are made available in the global namespace as well.
</p></td></tr>
@@ -69,8 +67,7 @@
<p>
The functions are defined as:
</p>
-<pre class="programlisting">
-<span class="keyword">extern</span> <span class="string">"C"</span> <span class="special">{</span>
+<pre class="programlisting"><span class="keyword">extern</span> <span class="string">"C"</span> <span class="special">{</span>
<span class="keyword">struct</span> <span class="identifier">regex_tA</span><span class="special">;</span>
<span class="keyword">struct</span> <span class="identifier">regex_tW</span><span class="special">;</span>
@@ -125,13 +122,13 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
- <span class="identifier">re_nsub</span></tt>
+ <code class="computeroutput"><span class="keyword">unsigned</span> <span class="keyword">int</span>
+ <span class="identifier">re_nsub</span></code>
</p>
</td>
<td>
<p>
- This is filled in by <tt class="computeroutput"><span class="identifier">regcomp</span></tt>
+ This is filled in by <code class="computeroutput"><span class="identifier">regcomp</span></code>
and indicates the number of sub-expressions contained in the regular
expression.
</p>
@@ -140,7 +137,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">TCHAR</span><span class="special">*</span> <span class="identifier">re_endp</span></tt>
+ <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">TCHAR</span><span class="special">*</span> <span class="identifier">re_endp</span></code>
</p>
</td>
<td>
@@ -157,23 +154,23 @@
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/html/images/note.png"></td>
<th align="left">Note</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
- <tt class="computeroutput"><span class="identifier">regex_t</span></tt> is actually a
- <tt class="computeroutput"><span class="preprocessor">#define</span></tt> - it is either
- <tt class="computeroutput"><span class="identifier">regex_tA</span></tt> or <tt class="computeroutput"><span class="identifier">regex_tW</span></tt> depending upon whether <tt class="computeroutput"><span class="identifier">UNICODE</span></tt> is defined or not, <tt class="computeroutput"><span class="identifier">TCHAR</span></tt> is either <tt class="computeroutput"><span class="keyword">char</span></tt>
- or <tt class="computeroutput"><span class="keyword">wchar_t</span></tt> again depending
- upon the macro <tt class="computeroutput"><span class="identifier">UNICODE</span></tt>.
+<tr><td align="left" valign="top"><p>
+ <code class="computeroutput"><span class="identifier">regex_t</span></code> is actually a
+ <code class="computeroutput"><span class="preprocessor">#define</span></code> - it is either
+ <code class="computeroutput"><span class="identifier">regex_tA</span></code> or <code class="computeroutput"><span class="identifier">regex_tW</span></code> depending upon whether <code class="computeroutput"><span class="identifier">UNICODE</span></code> is defined or not, <code class="computeroutput"><span class="identifier">TCHAR</span></code> is either <code class="computeroutput"><span class="keyword">char</span></code>
+ or <code class="computeroutput"><span class="keyword">wchar_t</span></code> again depending
+ upon the macro <code class="computeroutput"><span class="identifier">UNICODE</span></code>.
</p></td></tr>
</table></div>
<a name="regcomp"></a><p>
</p>
-<a name="boost_regex.ref.posix.regcomp"></a><h4>
-<a name="id588362"></a>
+<a name="boost_regex.ref.posix.regcomp"></a><h5>
+<a name="id621289"></a>
<a href="posix.html#boost_regex.ref.posix.regcomp">regcomp</a>
- </h4>
+ </h5>
<p>
- <tt class="computeroutput"><span class="identifier">regcomp</span></tt> takes a pointer to
- a <tt class="computeroutput"><span class="identifier">regex_t</span></tt>, a pointer to the
+ <code class="computeroutput"><span class="identifier">regcomp</span></code> takes a pointer to
+ a <code class="computeroutput"><span class="identifier">regex_t</span></code>, a pointer to the
expression to compile and a flags parameter which can be a combination of:
</p>
<div class="informaltable"><table class="table">
@@ -202,9 +199,9 @@
</td>
<td>
<p>
- Compiles modern regular expressions. Equivalent to <tt class="computeroutput"><span class="identifier">regbase</span><span class="special">::</span><span class="identifier">char_classes</span> <span class="special">|</span>
+ Compiles modern regular expressions. Equivalent to <code class="computeroutput"><span class="identifier">regbase</span><span class="special">::</span><span class="identifier">char_classes</span> <span class="special">|</span>
<span class="identifier">regbase</span><span class="special">::</span><span class="identifier">intervals</span> <span class="special">|</span>
- <span class="identifier">regbase</span><span class="special">::</span><span class="identifier">bk_refs</span></tt>.
+ <span class="identifier">regbase</span><span class="special">::</span><span class="identifier">bk_refs</span></code>.
</p>
</td>
</tr>
@@ -217,12 +214,12 @@
<td>
<p>
Compiles basic (obsolete) regular expression syntax. Equivalent to
- <tt class="computeroutput"><span class="identifier">regbase</span><span class="special">::</span><span class="identifier">char_classes</span> <span class="special">|</span>
+ <code class="computeroutput"><span class="identifier">regbase</span><span class="special">::</span><span class="identifier">char_classes</span> <span class="special">|</span>
<span class="identifier">regbase</span><span class="special">::</span><span class="identifier">intervals</span> <span class="special">|</span>
<span class="identifier">regbase</span><span class="special">::</span><span class="identifier">limited_ops</span> <span class="special">|</span>
<span class="identifier">regbase</span><span class="special">::</span><span class="identifier">bk_braces</span> <span class="special">|</span>
<span class="identifier">regbase</span><span class="special">::</span><span class="identifier">bk_parens</span> <span class="special">|</span>
- <span class="identifier">regbase</span><span class="special">::</span><span class="identifier">bk_refs</span></tt>.
+ <span class="identifier">regbase</span><span class="special">::</span><span class="identifier">bk_refs</span></code>.
</p>
</td>
</tr>
@@ -346,8 +343,8 @@
</td>
<td>
<p>
- A shortcut for awk-like behavior: <tt class="computeroutput"><span class="identifier">REG_EXTENDED</span>
- <span class="special">|</span> <span class="identifier">REG_ESCAPE_IN_LISTS</span></tt>
+ A shortcut for awk-like behavior: <code class="computeroutput"><span class="identifier">REG_EXTENDED</span>
+ <span class="special">|</span> <span class="identifier">REG_ESCAPE_IN_LISTS</span></code>
</p>
</td>
</tr>
@@ -359,8 +356,8 @@
</td>
<td>
<p>
- A shortcut for grep like behavior: <tt class="computeroutput"><span class="identifier">REG_BASIC</span>
- <span class="special">|</span> <span class="identifier">REG_NEWLINE_ALT</span></tt>
+ A shortcut for grep like behavior: <code class="computeroutput"><span class="identifier">REG_BASIC</span>
+ <span class="special">|</span> <span class="identifier">REG_NEWLINE_ALT</span></code>
</p>
</td>
</tr>
@@ -372,8 +369,8 @@
</td>
<td>
<p>
- A shortcut for egrep like behavior: <tt class="computeroutput"><span class="identifier">REG_EXTENDED</span>
- <span class="special">|</span> <span class="identifier">REG_NEWLINE_ALT</span></tt>
+ A shortcut for egrep like behavior: <code class="computeroutput"><span class="identifier">REG_EXTENDED</span>
+ <span class="special">|</span> <span class="identifier">REG_NEWLINE_ALT</span></code>
</p>
</td>
</tr>
@@ -381,10 +378,10 @@
</table></div>
<a name="regerror"></a><p>
</p>
-<a name="boost_regex.ref.posix.regerror"></a><h4>
-<a name="id589006"></a>
+<a name="boost_regex.ref.posix.regerror"></a><h5>
+<a name="id621933"></a>
<a href="posix.html#boost_regex.ref.posix.regerror">regerror</a>
- </h4>
+ </h5>
<p>
regerror takes the following parameters, it maps an error code to a human
readable string:
@@ -469,10 +466,10 @@
</p>
<a name="regexec"></a><p>
</p>
-<a name="boost_regex.ref.posix.regexec"></a><h4>
-<a name="id589189"></a>
+<a name="boost_regex.ref.posix.regexec"></a><h5>
+<a name="id622116"></a>
<a href="posix.html#boost_regex.ref.posix.regexec">regexec</a>
- </h4>
+ </h5>
<p>
regexec finds the first occurrence of expression e within string buf. If
len is non-zero then <span class="emphasis"><em>*m</em></span> is filled in with what matched
@@ -539,21 +536,22 @@
</table></div>
<a name="regfree"></a><p>
</p>
-<a name="boost_regex.ref.posix.regfree"></a><h4>
-<a name="id589331"></a>
+<a name="boost_regex.ref.posix.regfree"></a><h5>
+<a name="id622257"></a>
<a href="posix.html#boost_regex.ref.posix.regfree">regfree</a>
- </h4>
+ </h5>
<p>
- <tt class="computeroutput"><span class="identifier">regfree</span></tt> frees all the memory
+ <code class="computeroutput"><span class="identifier">regfree</span></code> frees all the memory
that was allocated by regcomp.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/regex_iterator.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/regex_iterator.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/regex_iterator.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> regex_iterator</title>
+<title>regex_iterator</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="regex_replace.html" title=" regex_replace">
-<link rel="next" href="regex_token_iterator.html" title=" regex_token_iterator">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="regex_replace.html" title="regex_replace">
+<link rel="next" href="regex_token_iterator.html" title="regex_token_iterator">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,15 +24,15 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.regex_iterator"></a> regex_iterator</h3></div></div></div>
+<a name="boost_regex.ref.regex_iterator"></a> regex_iterator
+</h3></div></div></div>
<p>
- The iterator type regex_iterator will enumerate all
+ The iterator type regex_iterator
will enumerate all
of the regular expression matches found in some sequence: dereferencing a
- regex_iterator
- yields a reference to a match_results object.
+ regex_iterator
+ yields a reference to a match_results
object.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">charT</span> <span class="special">=</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">traits</span> <span class="special">=</span> <span class="identifier">regex_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="special">></span>
<span class="keyword">class</span> <span class="identifier">regex_iterator</span>
@@ -77,39 +77,37 @@
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
-<a name="boost_regex.ref.regex_iterator.description"></a><h4>
-<a name="id547078"></a>
+<a name="boost_regex.ref.regex_iterator.description"></a><h5>
+<a name="id580264"></a>
<a href="regex_iterator.html#boost_regex.ref.regex_iterator.description">Description</a>
- </h4>
+ </h5>
<p>
- A regex_iterator
+ A regex_iterator
is constructed from a pair of iterators, and enumerates all occurrences of
a regular expression within that iterator range.
</p>
<a name="boost_regex.regex_iterator.construct1"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_iterator</span><span class="special">();</span>
+<pre class="programlisting"><span class="identifier">regex_iterator</span><span class="special">();</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: constructs an end of sequence
- regex_iterator.
+ <span class="bold"><strong>Effects</strong></span>: constructs an end of sequence
+ regex_iterator
.
</p>
<a name="boost_regex.regex_iterator.construct2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_iterator</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">b</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">regex_iterator</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">a</span><span class="special">,</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">b</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">regex_type</span><span class="special">&</span> <span class="identifier">re</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a regex_iterator that will enumerate
+ <span class="bold"><strong>Effects</strong></span>: constructs a regex_iterator
that will enumerate
all occurrences of the expression <span class="emphasis"><em>re</em></span>, within the sequence
- [a,b), and found using match_flag_type <span class="emphasis"><em>m</em></span>.
- The object <span class="emphasis"><em>re</em></span> must exist for the lifetime of the regex_iterator.
+ [a,b), and found using match_flag_type
<span class="emphasis"><em>m</em></span>.
+ The object <span class="emphasis"><em>re</em></span> must exist for the lifetime of the regex_iterator
.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -118,51 +116,46 @@
</p>
<a name="boost_regex.regex_iterator.construct3"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">regex_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a copy of <tt class="computeroutput"><span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: constructs a copy of <code class="computeroutput"><span class="identifier">that</span></code>.
</p>
<p>
- <span class="bold"><b>Postconditions</b></span>: <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Postconditions</strong></span>: <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span></code>.
</p>
<a name="boost_regex.regex_iterator.assign"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&);</span>
+<pre class="programlisting"><span class="identifier">regex_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: sets <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> equal to those in <tt class="computeroutput"><span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: sets <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> equal to those in <code class="computeroutput"><span class="identifier">that</span></code>.
</p>
<p>
- <span class="bold"><b>Postconditions</b></span>: *this == that.
+ <span class="bold"><strong>Postconditions</strong></span>: *this == that.
</p>
<a name="boost_regex.regex_iterator.op_eq"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns true if *this is equal
+ <span class="bold"><strong>Effects</strong></span>: returns true if *this is equal
to that.
</p>
<a name="boost_regex.regex_iterator.op_ne"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="keyword">const</span> <span class="identifier">regex_iterator</span><span class="special">&)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">!(*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">!(*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.regex_iterator.op_deref"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">*()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">*()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: dereferencing a regex_iterator object it yields
- a const reference to a match_results object, whose members
+ <span class="bold"><strong>Effects</strong></span>: dereferencing a regex_iterator
object it yields
+ a const reference to a match_results
object, whose members
are set as follows:
</p>
<div class="informaltable"><table class="table">
@@ -186,31 +179,31 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">re</span><span class="special">.</span><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">re</span><span class="special">.</span><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span></code>
</p>
</td>
<td>
@@ -223,44 +216,44 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span></code>
</p>
</td>
<td>
<p>
- The same as the start of the match found: <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></tt>
+ The same as the start of the match found: <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- True if the prefix did not match an empty string: <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
- <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">second</span></tt>
+ True if the prefix did not match an empty string: <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
+ <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">second</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- The same as the end of the match found: <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></tt>
+ The same as the end of the match found: <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span></code>
</p>
</td>
<td>
@@ -272,20 +265,20 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- True if the suffix did not match an empty string: <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
- <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">second</span></tt>
+ True if the suffix did not match an empty string: <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
+ <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">second</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
<td>
@@ -298,7 +291,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
<td>
@@ -310,7 +303,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
@@ -323,12 +316,12 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></tt>,
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></code>,
the start of the sequence that matched sub-expression <span class="emphasis"><em>n</em></span>.
Alternatively, if sub-expression <span class="emphasis"><em>n</em></span> did not participate
in the match, then last.
@@ -338,12 +331,12 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></tt>,
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></code>,
the end of the sequence that matched sub-expression <span class="emphasis"><em>n</em></span>.
Alternatively, if sub-expression <span class="emphasis"><em>n</em></span> did not participate
in the match, then last.
@@ -353,12 +346,12 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">)[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></tt>,
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></code>,
true if sub-expression <span class="emphasis"><em>n</em></span> participated in the
match, false otherwise.
</p>
@@ -367,12 +360,12 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">position</span><span class="special">(</span><span class="identifier">n</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">position</span><span class="special">(</span><span class="identifier">n</span><span class="special">)</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></tt>,
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="special">(*</span><span class="identifier">it</span><span class="special">).</span><span class="identifier">size</span><span class="special">()</span></code>,
then the distance from the start of the underlying sequence to the
start of sub-expression match <span class="emphasis"><em>n</em></span>.
</p>
@@ -382,29 +375,27 @@
</table></div>
<a name="boost_regex.regex_iterator.op_arrow"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">*</span> <span class="keyword">operator</span><span class="special">->()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">*</span> <span class="keyword">operator</span><span class="special">->()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">&(*</span><span class="keyword">this</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">&(*</span><span class="keyword">this</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.regex_iterator.op_inc"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">++();</span>
+<pre class="programlisting"><span class="identifier">regex_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">++();</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: moves the iterator to the next
+ <span class="bold"><strong>Effects</strong></span>: moves the iterator to the next
match in the underlying sequence, or the end of sequence iterator if none
if found. When the last match found matched a zero length string, then the
- regex_iterator
+ regex_iterator
will find the next match as follows: if there exists a non-zero length match
that starts at the same location as the last one, then returns it, otherwise
starts looking for the next (possibly zero length) match from one position
to the right of the last match.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -412,24 +403,22 @@
in non-recursive mode).
</p>
<p>
- <span class="bold"><b>Returns</b></span>: *this.
+ <span class="bold"><strong>Returns</strong></span>: *this.
</p>
<a name="boost_regex.regex_iterator.op_inc2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_iterator</span> <span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">regex_iterator</span> <span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a copy result of <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt>, then
- calls <tt class="computeroutput"><span class="special">++(*</span><span class="keyword">this</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: constructs a copy result of <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>, then
+ calls <code class="computeroutput"><span class="special">++(*</span><span class="keyword">this</span><span class="special">)</span></code>.
</p>
<p>
- <span class="bold"><b>Returns</b></span>: result.
+ <span class="bold"><strong>Returns</strong></span>: result.
</p>
<a name="boost_regex.regex_iterator.make"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="identifier">regex_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*,</span> <span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">></span>
<span class="identifier">make_regex_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
@@ -441,21 +430,20 @@
<span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns an iterator that enumerates
+ <span class="bold"><strong>Effects</strong></span>: returns an iterator that enumerates
all occurences of expression <span class="emphasis"><em>e</em></span> in text <span class="emphasis"><em>p</em></span>
- using match_flag_type
+ using match_flag_type
<span class="emphasis"><em>m</em></span>.
</p>
-<a name="boost_regex.ref.regex_iterator.examples"></a><h4>
-<a name="id550235"></a>
+<a name="boost_regex.ref.regex_iterator.examples"></a><h5>
+<a name="id583397"></a>
<a href="regex_iterator.html#boost_regex.ref.regex_iterator.examples">Examples</a>
- </h4>
+ </h5>
<p>
The following example takes a C++ source file and builds up an index of class
names, and the location of that class in the file.
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">map</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">fstream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
@@ -549,10 +537,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/regex_match.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/regex_match.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/regex_match.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> regex_match</title>
+<title>regex_match</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="sub_match.html" title=" sub_match">
-<link rel="next" href="regex_search.html" title=" regex_search">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="sub_match.html" title="sub_match">
+<link rel="next" href="regex_search.html" title="regex_search">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,13 +24,13 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.regex_match"></a> regex_match</h3></div></div></div>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<a name="boost_regex.ref.regex_match"></a> regex_match
+</h3></div></div></div>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- The algorithm regex_match
- determines whether a given regular expression matches <span class="bold"><b>all</b></span>
+ The algorithm regex_match
+ determines whether a given regular expression matches <span class="bold"><strong>all</strong></span>
of a given character sequence denoted by a pair of bidirectional-iterators,
the algorithm is defined as follows, the main use of this function is data
input validation.
@@ -40,15 +40,14 @@
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="../../../../../../doc/html/images/important.png"></td>
<th align="left">Important</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
- Note that the result is true only if the expression matches the <span class="bold"><b>whole</b></span> of the input sequence. If you want to search
- for an expression somewhere within the sequence then use regex_search. If you want to match
- a prefix of the character string then use regex_search with the flag match_continuous
+<tr><td align="left" valign="top"><p>
+ Note that the result is true only if the expression matches the <span class="bold"><strong>whole</strong></span> of the input sequence. If you want to search
+ for an expression somewhere within the sequence then use regex_search
. If you want to match
+ a prefix of the character string then use regex_search
with the flag match_continuous
set.
</p></td></tr>
</table></div>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span> <span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
@@ -80,31 +79,30 @@
<span class="keyword">const</span> <span class="identifier">basic_regex</span> <span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
-<a name="boost_regex.ref.regex_match.description"></a><h4>
-<a name="id530617"></a>
+<a name="boost_regex.ref.regex_match.description"></a><h5>
+<a name="id563869"></a>
<a href="regex_match.html#boost_regex.ref.regex_match.description">Description</a>
- </h4>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span> <span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: Type BidirectionalIterator meets
+ <span class="bold"><strong>Requires</strong></span>: Type BidirectionalIterator meets
the requirements of a Bidirectional Iterator (24.1.4).
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Determines whether there is an
+ <span class="bold"><strong>Effects</strong></span>: Determines whether there is an
exact match between the regular expression <span class="emphasis"><em>e</em></span>, and all
of the character sequence [first, last), parameter <span class="emphasis"><em>flags</em></span>
- (see match_flag_type)
+ (see match_flag_type
)
is used to control how the expression is matched against the character sequence.
Returns true if such a match exists, false otherwise.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -112,7 +110,7 @@
in non-recursive mode).
</p>
<p>
- <span class="bold"><b>Postconditions</b></span>: If the function returns
+ <span class="bold"><strong>Postconditions</strong></span>: If the function returns
false, then the effect on parameter <span class="emphasis"><em>m</em></span> is undefined,
otherwise the effects on parameter <span class="emphasis"><em>m</em></span> are given in the
table:
@@ -138,127 +136,127 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">e</span><span class="special">.</span><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">e</span><span class="special">.</span><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">first</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">first</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">last</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">last</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">first</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">last</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
@@ -271,72 +269,69 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>, the start of the sequence that
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>, the start of the sequence that
matched sub-expression <span class="emphasis"><em>n</em></span>. Alternatively, if
sub-expression <span class="emphasis"><em>n</em></span> did not participate in the
- match, then <tt class="computeroutput"><span class="identifier">last</span></tt>.
+ match, then <code class="computeroutput"><span class="identifier">last</span></code>.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>, the end of the sequence that matched
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>, the end of the sequence that matched
sub-expression <span class="emphasis"><em>n</em></span>. Alternatively, if sub-expression
- <span class="emphasis"><em>n</em></span> did not participate in the match, then <tt class="computeroutput"><span class="identifier">last</span></tt>.
+ <span class="emphasis"><em>n</em></span> did not participate in the match, then <code class="computeroutput"><span class="identifier">last</span></code>.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>, true if sub-expression <span class="emphasis"><em>n</em></span>
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>, true if sub-expression <span class="emphasis"><em>n</em></span>
participated in the match, false otherwise.
</p>
</td>
</tr>
</tbody>
</table></div>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span> <span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Behaves "as if" by constructing
- an instance of <tt class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="identifier">what</span></tt>,
- and then returning the result of <tt class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">what</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span>
- <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Behaves "as if" by constructing
+ an instance of <code class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="identifier">what</span></code>,
+ and then returning the result of <code class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">what</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span>
+ <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">str</span><span class="special">,</span> <span class="identifier">match_results</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span> <span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
<span class="special">+</span> <span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>::</span><span class="identifier">length</span><span class="special">(</span><span class="identifier">str</span><span class="special">),</span>
- <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>::</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
@@ -344,37 +339,34 @@
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">str</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span> <span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
<span class="special">+</span> <span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>::</span><span class="identifier">length</span><span class="special">(</span><span class="identifier">str</span><span class="special">),</span>
- <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_match</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span> <span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_match</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<a name="boost_regex.ref.regex_match.examples"></a><h4>
-<a name="id533809"></a>
+<a name="boost_regex.ref.regex_match.examples"></a><h5>
+<a name="id567048"></a>
<a href="regex_match.html#boost_regex.ref.regex_match.examples">Examples</a>
- </h4>
+ </h5>
<p>
The following example processes an ftp response:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">stdlib</span><span class="special">.</span><span class="identifier">h</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">stdlib</span><span class="special">.</span><span class="identifier">h</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
@@ -408,10 +400,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/regex_replace.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/regex_replace.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/regex_replace.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> regex_replace</title>
+<title>regex_replace</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="regex_search.html" title=" regex_search">
-<link rel="next" href="regex_iterator.html" title=" regex_iterator">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="regex_search.html" title="regex_search">
+<link rel="next" href="regex_iterator.html" title="regex_iterator">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,22 +24,21 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.regex_replace"></a> regex_replace</h3></div></div></div>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<a name="boost_regex.ref.regex_replace"></a> regex_replace
+</h3></div></div></div>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- The algorithm regex_replace searches through a
+ The algorithm regex_replace
searches through a
string finding all the matches to the regular expression: for each match
- it then calls match_results<>::format to format the string and
+ it then calls match_results<>::format
to format the string and
sends the result to the output iterator. Sections of text that do not match
are copied to the output unchanged only if the <span class="emphasis"><em>flags</em></span>
- parameter does not have the flag <tt class="computeroutput"><span class="identifier">format_no_copy</span></tt>
- set. If the flag <tt class="computeroutput"><span class="identifier">format_first_only</span></tt>
+ parameter does not have the flag <code class="computeroutput"><span class="identifier">format_no_copy</span></code>
+ set. If the flag <code class="computeroutput"><span class="identifier">format_first_only</span></code>
is set then only the first occurrence is replaced rather than all occurrences.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">OutputIterator</span> <span class="identifier">regex_replace</span><span class="special">(</span><span class="identifier">OutputIterator</span> <span class="identifier">out</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">last</span><span class="special">,</span>
@@ -53,12 +52,11 @@
<span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">fmt</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
-<a name="boost_regex.ref.regex_replace.description"></a><h4>
-<a name="id541136"></a>
+<a name="boost_regex.ref.regex_replace.description"></a><h5>
+<a name="id574348"></a>
<a href="regex_replace.html#boost_regex.ref.regex_replace.description">Description</a>
- </h4>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">OutputIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">OutputIterator</span> <span class="identifier">regex_replace</span><span class="special">(</span><span class="identifier">OutputIterator</span> <span class="identifier">out</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">last</span><span class="special">,</span>
@@ -73,84 +71,76 @@
and copies the resulting string to <span class="emphasis"><em>out</em></span>.
</p>
<p>
- If the flag <tt class="computeroutput"><span class="identifier">format_no_copy</span></tt>
+ If the flag <code class="computeroutput"><span class="identifier">format_no_copy</span></code>
is set in <span class="emphasis"><em>flags</em></span> then unmatched sections of text are
not copied to output.
</p>
<p>
- If the flag <tt class="computeroutput"><span class="identifier">format_first_only</span></tt>
+ If the flag <code class="computeroutput"><span class="identifier">format_first_only</span></code>
is set in flags then only the first occurence of <span class="emphasis"><em>e</em></span> is
replaced.
</p>
<p>
The manner in which the format string <span class="emphasis"><em>fmt</em></span> is interpretted,
along with the rules used for finding matches, are determined by the flags
- set in <span class="emphasis"><em>flags</em></span>: see match_flag_type.
+ set in <span class="emphasis"><em>flags</em></span>: see match_flag_type
.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an regex_iterator object:
+ <span class="bold"><strong>Effects</strong></span>: Constructs an regex_iterator
object:
</p>
-<pre class="programlisting">
-<span class="identifier">regex_iterator</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="identifier">regex_iterator</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="identifier">i</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">),</span>
</pre>
<p>
and uses <span class="emphasis"><em>i</em></span> to enumerate through all of the matches
- <span class="emphasis"><em>m</em></span> of type match_results <tt class="computeroutput"><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span></tt>
+ <span class="emphasis"><em>m</em></span> of type match_results
<code class="computeroutput"><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span></code>
that occur within the sequence [first, last).
</p>
<p>
If no such matches are found and
</p>
-<pre class="programlisting">
-<span class="special">!(</span><span class="identifier">flags</span> <span class="special">&</span> <span class="identifier">format_no_copy</span><span class="special">)</span>
+<pre class="programlisting"><span class="special">!(</span><span class="identifier">flags</span> <span class="special">&</span> <span class="identifier">format_no_copy</span><span class="special">)</span>
</pre>
<p>
then calls
</p>
-<pre class="programlisting">
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">out</span><span class="special">).</span>
+<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">out</span><span class="special">).</span>
</pre>
<p>
Otherwise, for each match found, if
</p>
-<pre class="programlisting">
-<span class="special">!(</span><span class="identifier">flags</span> <span class="special">&</span> <span class="identifier">format_no_copy</span><span class="special">)</span>
+<pre class="programlisting"><span class="special">!(</span><span class="identifier">flags</span> <span class="special">&</span> <span class="identifier">format_no_copy</span><span class="special">)</span>
</pre>
<p>
calls
</p>
-<pre class="programlisting">
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span><span class="special">,</span> <span class="identifier">out</span><span class="special">),</span>
+<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span><span class="special">,</span> <span class="identifier">out</span><span class="special">),</span>
</pre>
<p>
and then calls
</p>
-<pre class="programlisting">
-<span class="identifier">m</span><span class="special">.</span><span class="identifier">format</span><span class="special">(</span><span class="identifier">out</span><span class="special">,</span> <span class="identifier">fmt</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">).</span>
+<pre class="programlisting"><span class="identifier">m</span><span class="special">.</span><span class="identifier">format</span><span class="special">(</span><span class="identifier">out</span><span class="special">,</span> <span class="identifier">fmt</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">).</span>
</pre>
<p>
Finally if
</p>
-<pre class="programlisting">
-<span class="special">!(</span><span class="identifier">flags</span> <span class="special">&</span> <span class="identifier">format_no_copy</span><span class="special">)</span>
+<pre class="programlisting"><span class="special">!(</span><span class="identifier">flags</span> <span class="special">&</span> <span class="identifier">format_no_copy</span><span class="special">)</span>
</pre>
<p>
calls
</p>
-<pre class="programlisting">
-<span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">last_m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last_m</span><span class="special">,</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span><span class="special">,</span> <span class="identifier">out</span><span class="special">)</span>
+<pre class="programlisting"><span class="identifier">std</span><span class="special">::</span><span class="identifier">copy</span><span class="special">(</span><span class="identifier">last_m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last_m</span><span class="special">,</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span><span class="special">,</span> <span class="identifier">out</span><span class="special">)</span>
</pre>
<p>
where <span class="emphasis"><em>last_m</em></span> is a copy of the last match found.
</p>
<p>
- If <tt class="computeroutput"><span class="identifier">flags</span> <span class="special">&</span>
- <span class="identifier">format_first_only</span></tt> is non-zero then
+ If <code class="computeroutput"><span class="identifier">flags</span> <span class="special">&</span>
+ <span class="identifier">format_first_only</span></code> is non-zero then
only the first match found is replaced.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -158,31 +148,29 @@
in non-recursive mode).
</p>
<p>
- <span class="bold"><b>Returns</b></span>: out.
+ <span class="bold"><strong>Returns</strong></span>: out.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
<span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="identifier">regex_replace</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>&</span> <span class="identifier">fmt</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Constructs an object <tt class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="identifier">result</span></tt>, calls <tt class="computeroutput"><span class="identifier">regex_replace</span><span class="special">(</span><span class="identifier">back_inserter</span><span class="special">(</span><span class="identifier">result</span><span class="special">),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span>
+ <span class="bold"><strong>Effects</strong></span>: Constructs an object <code class="computeroutput"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="identifier">result</span></code>, calls <code class="computeroutput"><span class="identifier">regex_replace</span><span class="special">(</span><span class="identifier">back_inserter</span><span class="special">(</span><span class="identifier">result</span><span class="special">),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">fmt</span><span class="special">,</span>
- <span class="identifier">flags</span><span class="special">)</span></tt>,
- and then returns <tt class="computeroutput"><span class="identifier">result</span></tt>.
+ <span class="identifier">flags</span><span class="special">)</span></code>,
+ and then returns <code class="computeroutput"><span class="identifier">result</span></code>.
</p>
-<a name="boost_regex.ref.regex_replace.examples"></a><h4>
-<a name="id542698"></a>
+<a name="boost_regex.ref.regex_replace.examples"></a><h5>
+<a name="id575897"></a>
<a href="regex_replace.html#boost_regex.ref.regex_replace.examples">Examples</a>
- </h4>
+ </h5>
<p>
The following example takes C/C++ source code as input, and outputs syntax
highlighted HTML code.
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">fstream</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">fstream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">sstream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iterator</span><span class="special">></span>
@@ -294,10 +282,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/regex_search.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/regex_search.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/regex_search.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> regex_search</title>
+<title>regex_search</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="regex_match.html" title=" regex_match">
-<link rel="next" href="regex_replace.html" title=" regex_replace">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="regex_match.html" title="regex_match">
+<link rel="next" href="regex_replace.html" title="regex_replace">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,19 +24,18 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.regex_search"></a> regex_search</h3></div></div></div>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<a name="boost_regex.ref.regex_search"></a> regex_search
+</h3></div></div></div>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
- The algorithm regex_search will search a range
+ The algorithm regex_search
will search a range
denoted by a pair of bidirectional-iterators for a given regular expression.
The algorithm uses various heuristics to reduce the search time by only checking
for a match if a match could conceivably start at that position. The algorithm
is defined as follows:
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
@@ -73,30 +72,29 @@
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
-<a name="boost_regex.ref.regex_search.description"></a><h4>
-<a name="id536028"></a>
+<a name="boost_regex.ref.regex_search.description"></a><h5>
+<a name="id569258"></a>
<a href="regex_search.html#boost_regex.ref.regex_search.description">Description</a>
- </h4>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+ </h5>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Requires</b></span>: Type BidirectionalIterator meets
+ <span class="bold"><strong>Requires</strong></span>: Type BidirectionalIterator meets
the requirements of a Bidirectional Iterator (24.1.4).
</p>
<p>
- <span class="bold"><b>Effects</b></span>: Determines whether there is some
+ <span class="bold"><strong>Effects</strong></span>: Determines whether there is some
sub-sequence within [first,last) that matches the regular expression <span class="emphasis"><em>e</em></span>,
parameter <span class="emphasis"><em>flags</em></span> is used to control how the expression
is matched against the character sequence. Returns true if such a sequence
exists, false otherwise.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -104,7 +102,7 @@
in non-recursive mode).
</p>
<p>
- <span class="bold"><b>Postconditions</b></span>: If the function returns
+ <span class="bold"><strong>Postconditions</strong></span>: If the function returns
false, then the effect on parameter <span class="emphasis"><em>m</em></span> is undefined,
otherwise the effects on parameter <span class="emphasis"><em>m</em></span> are given in the
table:
@@ -130,105 +128,105 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">e</span><span class="special">.</span><span class="identifier">mark_count</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">e</span><span class="special">.</span><span class="identifier">mark_count</span><span class="special">()</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="keyword">false</span></tt>
+ <code class="computeroutput"><span class="keyword">false</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">first</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">last</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
- <span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
+ <span class="identifier">m</span><span class="special">.</span><span class="identifier">prefix</span><span class="special">().</span><span class="identifier">second</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">last</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">last</span></tt>
+ <code class="computeroutput"><span class="identifier">last</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
- <span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">first</span> <span class="special">!=</span>
+ <span class="identifier">m</span><span class="special">.</span><span class="identifier">suffix</span><span class="special">().</span><span class="identifier">second</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
<td>
@@ -241,7 +239,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
<td>
@@ -253,7 +251,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="number">0</span><span class="special">].</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
@@ -266,12 +264,12 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">first</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">first</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>, the start of the sequence that
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>, the start of the sequence that
matched sub-expression <span class="emphasis"><em>n</em></span>. Alternatively, if
sub-expression <span class="emphasis"><em>n</em></span> did not participate in the
match, then last.
@@ -281,45 +279,43 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">second</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">second</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>, the end of the sequence that matched
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>, the end of the sequence that matched
sub-expression <span class="emphasis"><em>n</em></span>. Alternatively, if sub-expression
- <span class="emphasis"><em>n</em></span> did not participate in the match, then <tt class="computeroutput"><span class="identifier">last</span></tt>.
+ <span class="emphasis"><em>n</em></span> did not participate in the match, then <code class="computeroutput"><span class="identifier">last</span></code>.
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">matched</span></tt>
+ <code class="computeroutput"><span class="identifier">m</span><span class="special">[</span><span class="identifier">n</span><span class="special">].</span><span class="identifier">matched</span></code>
</p>
</td>
<td>
<p>
- For all integers <tt class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>, true if sub-expression <span class="emphasis"><em>n</em></span>
+ For all integers <code class="computeroutput"><span class="identifier">n</span> <span class="special"><</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>, true if sub-expression <span class="emphasis"><em>n</em></span>
participated in the match, false otherwise.
</p>
</td>
</tr>
</tbody>
</table></div>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">str</span><span class="special">,</span> <span class="identifier">match_results</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
<span class="special">+</span> <span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>::</span><span class="identifier">length</span><span class="special">(</span><span class="identifier">str</span><span class="special">),</span>
- <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="identifier">match_results</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>::</span><span class="identifier">const_iterator</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
@@ -327,53 +323,49 @@
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">m</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">iterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">iterator</span> <span class="identifier">first</span><span class="special">,</span> <span class="identifier">iterator</span> <span class="identifier">last</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Behaves "as if" by constructing
- an instance of <tt class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="identifier">what</span></tt>,
- and then returning the result of <tt class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">what</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span>
- <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Behaves "as if" by constructing
+ an instance of <code class="computeroutput"><span class="identifier">match_results</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="identifier">what</span></code>,
+ and then returning the result of <code class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">last</span><span class="special">,</span> <span class="identifier">what</span><span class="special">,</span> <span class="identifier">e</span><span class="special">,</span>
+ <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">str</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">str</span><span class="special">,</span> <span class="identifier">str</span>
<span class="special">+</span> <span class="identifier">char_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">>::</span><span class="identifier">length</span><span class="special">(</span><span class="identifier">str</span><span class="special">),</span>
- <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">ST</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">SA</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="keyword">bool</span> <span class="identifier">regex_search</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">ST</span><span class="special">,</span> <span class="identifier">SA</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">basic_regex</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">e</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">flags</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Returns the result of <tt class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: Returns the result of <code class="computeroutput"><span class="identifier">regex_search</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">begin</span><span class="special">(),</span> <span class="identifier">s</span><span class="special">.</span><span class="identifier">end</span><span class="special">(),</span> <span class="identifier">e</span><span class="special">,</span> <span class="identifier">flags</span><span class="special">)</span></code>.
</p>
-<a name="boost_regex.ref.regex_search.examples"></a><h4>
-<a name="id539302"></a>
+<a name="boost_regex.ref.regex_search.examples"></a><h5>
+<a name="id572523"></a>
<a href="regex_search.html#boost_regex.ref.regex_search.examples">Examples</a>
- </h4>
+ </h5>
<p>
The following example, takes the contents of a file in the form of a string,
and searches for all the C++ class declarations in the file. The code will
- work regardless of the way that <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></tt>
+ work regardless of the way that <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></code>
is implemented, for example it could easily be modified to work with the
SGI rope class, which uses a non-contiguous storage strategy.
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">string</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">map</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
@@ -417,10 +409,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/regex_token_iterator.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/regex_token_iterator.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/regex_token_iterator.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> regex_token_iterator</title>
+<title>regex_token_iterator</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="regex_iterator.html" title=" regex_iterator">
-<link rel="next" href="bad_expression.html" title=" bad_expression">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="regex_iterator.html" title="regex_iterator">
+<link rel="next" href="bad_expression.html" title="bad_expression">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,22 +24,22 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.regex_token_iterator"></a> regex_token_iterator</h3></div></div></div>
+<a name="boost_regex.ref.regex_token_iterator"></a> regex_token_iterator
+</h3></div></div></div>
<p>
- The template class regex_token_iterator is an iterator
+ The template class regex_token_iterator
is an iterator
adapter; that is to say it represents a new view of an existing iterator
sequence, by enumerating all the occurrences of a regular expression within
that sequence, and presenting one or more character sequence for each match
- found. Each position enumerated by the iterator is a sub_match object that represents
+ found. Each position enumerated by the iterator is a sub_match
object that represents
what matched a particular sub-expression within the regular expression. When
- class regex_token_iterator is used to
+ class regex_token_iterator
is used to
enumerate a single sub-expression with index -1, then the iterator performs
field splitting: that is to say it enumerates one character sequence for
each section of the character container sequence that does not match the
regular expression specified.
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">charT</span> <span class="special">=</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="keyword">class</span> <span class="identifier">traits</span> <span class="special">=</span> <span class="identifier">regex_traits</span><span class="special"><</span><span class="identifier">charT</span><span class="special">></span> <span class="special">></span>
<span class="keyword">class</span> <span class="identifier">regex_token_iterator</span>
@@ -135,43 +135,41 @@
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">>&</span> <span class="identifier">submatch</span><span class="special">,</span>
<span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
-<a name="boost_regex.ref.regex_token_iterator.description"></a><h4>
-<a name="id556067"></a>
+<a name="boost_regex.ref.regex_token_iterator.description"></a><h5>
+<a name="id589351"></a>
<a href="regex_token_iterator.html#boost_regex.ref.regex_token_iterator.description">Description</a>
- </h4>
+ </h5>
<a name="boost_regex.regex_token_iterator.construct1"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_token_iterator</span><span class="special">();</span>
+<pre class="programlisting"><span class="identifier">regex_token_iterator</span><span class="special">();</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: constructs an end of sequence iterator.
+ <span class="bold"><strong>Effects</strong></span>: constructs an end of sequence iterator.
</p>
<a name="boost_regex.regex_token_iterator.construct2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">a</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">a</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">b</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">regex_type</span><span class="special">&</span> <span class="identifier">re</span><span class="special">,</span>
<span class="keyword">int</span> <span class="identifier">submatch</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Preconditions</b></span>: <tt class="computeroutput"><span class="special">!</span><span class="identifier">re</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></tt>. Object <span class="emphasis"><em>re</em></span> shall exist
+ <span class="bold"><strong>Preconditions</strong></span>: <code class="computeroutput"><span class="special">!</span><span class="identifier">re</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></code>. Object <span class="emphasis"><em>re</em></span> shall exist
for the lifetime of the iterator constructed from it.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a regex_token_iterator that will enumerate
+ <span class="bold"><strong>Effects</strong></span>: constructs a regex_token_iterator
that will enumerate
one string for each regular expression match of the expression <span class="emphasis"><em>re</em></span>
found within the sequence [a,b), using match flags <span class="emphasis"><em>m</em></span>
- (see match_flag_type).
+ (see match_flag_type
).
The string enumerated is the sub-expression <span class="emphasis"><em>submatch</em></span>
for each match found; if <span class="emphasis"><em>submatch</em></span> is -1, then enumerates
all the text sequences that did not match the expression <span class="emphasis"><em>re</em></span>
(that is to performs field splitting).
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -180,33 +178,32 @@
</p>
<a name="boost_regex.regex_token_iterator.construct3"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">a</span><span class="special">,</span>
+<pre class="programlisting"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">a</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">b</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">regex_type</span><span class="special">&</span> <span class="identifier">re</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="keyword">int</span><span class="special">>&</span> <span class="identifier">submatches</span><span class="special">,</span>
<span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Preconditions</b></span>: <tt class="computeroutput"><span class="identifier">submatches</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span>
- <span class="special">&&</span> <span class="special">!</span><span class="identifier">re</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></tt>. Object <span class="emphasis"><em>re</em></span> shall exist
+ <span class="bold"><strong>Preconditions</strong></span>: <code class="computeroutput"><span class="identifier">submatches</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span>
+ <span class="special">&&</span> <span class="special">!</span><span class="identifier">re</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></code>. Object <span class="emphasis"><em>re</em></span> shall exist
for the lifetime of the iterator constructed from it.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a regex_token_iterator that will enumerate
- <tt class="computeroutput"><span class="identifier">submatches</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></tt>
+ <span class="bold"><strong>Effects</strong></span>: constructs a regex_token_iterator
that will enumerate
+ <code class="computeroutput"><span class="identifier">submatches</span><span class="special">.</span><span class="identifier">size</span><span class="special">()</span></code>
strings for each regular expression match of the expression <span class="emphasis"><em>re</em></span>
found within the sequence [a,b), using match flags <span class="emphasis"><em>m</em></span>
- (see match_flag_type).
+ (see match_flag_type
).
For each match found one string will be enumerated for each sub-expression
- index contained within submatches vector; if <tt class="computeroutput"><span class="identifier">submatches</span><span class="special">[</span><span class="number">0</span><span class="special">]</span></tt>
+ index contained within submatches vector; if <code class="computeroutput"><span class="identifier">submatches</span><span class="special">[</span><span class="number">0</span><span class="special">]</span></code>
is -1, then the first string enumerated for each match will be all of the
text from end of the last match to the start of the current match, in addition
there will be one extra string enumerated when no more matches can be found:
from the end of the last match found, to the end of the underlying sequence.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -215,8 +212,7 @@
</p>
<a name="boost_regex.regex_token_iterator.construct4"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">N</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <span class="identifier">N</span><span class="special">></span>
<span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="identifier">BidirectionalIterator</span> <span class="identifier">a</span><span class="special">,</span>
<span class="identifier">BidirectionalIterator</span> <span class="identifier">b</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">regex_type</span><span class="special">&</span> <span class="identifier">re</span><span class="special">,</span>
@@ -224,23 +220,23 @@
<span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Preconditions</b></span>: <tt class="computeroutput"><span class="special">!</span><span class="identifier">re</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></tt>. Object <span class="emphasis"><em>re</em></span> shall exist
+ <span class="bold"><strong>Preconditions</strong></span>: <code class="computeroutput"><span class="special">!</span><span class="identifier">re</span><span class="special">.</span><span class="identifier">empty</span><span class="special">()</span></code>. Object <span class="emphasis"><em>re</em></span> shall exist
for the lifetime of the iterator constructed from it.
</p>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a regex_token_iterator that will enumerate
+ <span class="bold"><strong>Effects</strong></span>: constructs a regex_token_iterator
that will enumerate
<span class="emphasis"><em>R</em></span> strings for each regular expression match of the expression
<span class="emphasis"><em>re</em></span> found within the sequence [a,b), using match flags
- <span class="emphasis"><em>m</em></span> (see match_flag_type). For each match
+ <span class="emphasis"><em>m</em></span> (see match_flag_type
). For each match
found one string will be enumerated for each sub-expression index contained
- within the <span class="emphasis"><em>submatches</em></span> array; if <tt class="computeroutput"><span class="identifier">submatches</span><span class="special">[</span><span class="number">0</span><span class="special">]</span></tt>
+ within the <span class="emphasis"><em>submatches</em></span> array; if <code class="computeroutput"><span class="identifier">submatches</span><span class="special">[</span><span class="number">0</span><span class="special">]</span></code>
is -1, then the first string enumerated for each match will be all of the
text from end of the last match to the start of the current match, in addition
there will be one extra string enumerated when no more matches can be found:
from the end of the last match found, to the end of the underlying sequence.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -249,70 +245,63 @@
</p>
<a name="boost_regex.regex_token_iterator.construct5"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">regex_token_iterator</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a copy of <tt class="computeroutput"><span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: constructs a copy of <code class="computeroutput"><span class="identifier">that</span></code>.
</p>
<p>
- <span class="bold"><b>Postconditions</b></span>: <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Postconditions</strong></span>: <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span></code>.
</p>
<a name="boost_regex.regex_token_iterator.assign"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">=(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="identifier">that</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: sets <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> to be equal to <tt class="computeroutput"><span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: sets <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> to be equal to <code class="computeroutput"><span class="identifier">that</span></code>.
</p>
<p>
- <span class="bold"><b>Postconditions</b></span>: <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Postconditions</strong></span>: <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span></code>.
</p>
<a name="boost_regex.regex_token_iterator.op_eq"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns true if <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> is the same position as <tt class="computeroutput"><span class="identifier">that</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns true if <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> is the same position as <code class="computeroutput"><span class="identifier">that</span></code>.
</p>
<a name="boost_regex.regex_token_iterator.op_ne"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="keyword">const</span> <span class="identifier">regex_token_iterator</span><span class="special">&)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">!(*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">!(*</span><span class="keyword">this</span> <span class="special">==</span> <span class="identifier">that</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.regex_token_iterator.op_deref"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">*()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">*()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns the current character sequence
+ <span class="bold"><strong>Effects</strong></span>: returns the current character sequence
being enumerated.
</p>
<a name="boost_regex.regex_token_iterator.op_arrow"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">*</span> <span class="keyword">operator</span><span class="special">->()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">*</span> <span class="keyword">operator</span><span class="special">->()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">&(*</span><span class="keyword">this</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">&(*</span><span class="keyword">this</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.regex_token_iterator.op_inc1"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">++();</span>
+<pre class="programlisting"><span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">++();</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: Moves on to the next character
+ <span class="bold"><strong>Effects</strong></span>: Moves on to the next character
sequence to be enumerated.
</p>
<p>
- <span class="bold"><b>Throws</b></span>: <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></tt>
+ <span class="bold"><strong>Throws</strong></span>: <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">runtime_error</span></code>
if the complexity of matching the expression against an N character string
begins to exceed O(N<sup>2</sup>), or if the program runs out of stack space while matching
the expression (if Boost.Regex is configured in recursive mode), or if the
@@ -320,24 +309,22 @@
in non-recursive mode).
</p>
<p>
- <span class="bold"><b>Returns</b></span>: <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt>.
+ <span class="bold"><strong>Returns</strong></span>: <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>.
</p>
<a name="boost_regex.regex_token_iterator.op_inc2"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">regex_token_iterator</span><span class="special">&</span> <span class="keyword">operator</span><span class="special">++(</span><span class="keyword">int</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: constructs a copy result of <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt>, then
- calls <tt class="computeroutput"><span class="special">++(*</span><span class="keyword">this</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: constructs a copy result of <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>, then
+ calls <code class="computeroutput"><span class="special">++(*</span><span class="keyword">this</span><span class="special">)</span></code>.
</p>
<p>
- <span class="bold"><b>Returns</b></span>: result.
+ <span class="bold"><strong>Returns</strong></span>: result.
</p>
<a name="boost_regex.regex_token_iterator.make"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">></span>
<span class="identifier">regex_token_iterator</span><span class="special"><</span><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*,</span> <span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">></span>
<span class="identifier">make_regex_token_iterator</span><span class="special">(</span>
<span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span> <span class="identifier">p</span><span class="special">,</span>
@@ -388,22 +375,21 @@
<span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_flag_type</span> <span class="identifier">m</span> <span class="special">=</span> <span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">match_default</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns a regex_token_iterator that enumerates
- one sub_match
+ <span class="bold"><strong>Effects</strong></span>: returns a regex_token_iterator
that enumerates
+ one sub_match
for each value in <span class="emphasis"><em>submatch</em></span> for each occurrence of regular
expression <span class="emphasis"><em>e</em></span> in string <span class="emphasis"><em>p</em></span>, matched
- using match_flag_type
+ using match_flag_type
<span class="emphasis"><em>m</em></span>.
</p>
-<a name="boost_regex.ref.regex_token_iterator.examples"></a><h4>
-<a name="id560313"></a>
+<a name="boost_regex.ref.regex_token_iterator.examples"></a><h5>
+<a name="id593568"></a>
<a href="regex_token_iterator.html#boost_regex.ref.regex_token_iterator.examples">Examples</a>
- </h4>
+ </h5>
<p>
The following example takes a string and splits it into a series of tokens:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
<span class="keyword">using</span> <span class="keyword">namespace</span> <span class="identifier">std</span><span class="special">;</span>
@@ -441,8 +427,7 @@
The following example takes a html file and outputs a list of all the linked
files:
</p>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">fstream</span><span class="special">></span>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">fstream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iostream</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">iterator</span><span class="special">></span>
<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
@@ -511,10 +496,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/regex_traits.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/regex_traits.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/regex_traits.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> regex_traits</title>
+<title>regex_traits</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="error_type.html" title=" error_type">
-<link rel="next" href="non_std_strings.html" title=" Interfacing With Non-Standard
- String Types">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="error_type.html" title="error_type">
+<link rel="next" href="non_std_strings.html" title="Interfacing With Non-Standard String Types">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.regex_traits"></a> regex_traits</h3></div></div></div>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
+<a name="boost_regex.ref.regex_traits"></a> regex_traits
+</h3></div></div></div>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">implementationT</span> <span class="special">=</span> <span class="identifier">sensible_default_choice</span><span class="special">></span>
<span class="keyword">struct</span> <span class="identifier">regex_traits</span> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">implementationT</span>
@@ -39,35 +38,35 @@
<span class="keyword">struct</span> <span class="identifier">c_regex_traits</span><span class="special">;</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
-<span class="keyword">struct</span> <span class="identifier">cpp_regex_traits</span><span class="special">;</span>
+<span class="keyword">class</span> <span class="identifier">cpp_regex_traits</span><span class="special">;</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">></span>
-<span class="keyword">struct</span> <span class="identifier">w32_regex_traits</span><span class="special">;</span>
+<span class="keyword">class</span> <span class="identifier">w32_regex_traits</span><span class="special">;</span>
<span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
-<a name="boost_regex.ref.regex_traits.description"></a><h4>
-<a name="id570424"></a>
+<a name="boost_regex.ref.regex_traits.description"></a><h5>
+<a name="id603469"></a>
<a href="regex_traits.html#boost_regex.ref.regex_traits.description">Description</a>
- </h4>
+ </h5>
<p>
- The class <tt class="computeroutput"><span class="identifier">regex_traits</span></tt> is
+ The class <code class="computeroutput"><span class="identifier">regex_traits</span></code> is
just a thin wrapper around an actual implemention class, which may be one
of:
</p>
<div class="itemizedlist"><ul type="disc">
<li>
-<tt class="computeroutput"><span class="identifier">c_regex_traits</span></tt>: this class
+<code class="computeroutput"><span class="identifier">c_regex_traits</span></code>: this class
is deprecated, it wraps the C locale, and is used as the default implementation
when the platform is not Win32, and the C++ locale is not available.
</li>
<li>
-<tt class="computeroutput"><span class="identifier">cpp_regex_traits</span></tt>: the default
+<code class="computeroutput"><span class="identifier">cpp_regex_traits</span></code>: the default
traits class for non-Win32 platforms, allows the regex class to be imbued
with a std::locale instance.
</li>
<li>
-<tt class="computeroutput"><span class="identifier">w32_regex_traits</span></tt>: the default
+<code class="computeroutput"><span class="identifier">w32_regex_traits</span></code>: the default
traits class implementation on Win32 platforms, allows the regex class
to be imbued with an LCID.
</li>
@@ -78,26 +77,26 @@
</p>
<div class="itemizedlist"><ul type="disc">
<li>
- BOOST_REGEX_USE_C_LOCALE: makes <tt class="computeroutput"><span class="identifier">c_regex_traits</span></tt>
+ BOOST_REGEX_USE_C_LOCALE: makes <code class="computeroutput"><span class="identifier">c_regex_traits</span></code>
the default.
</li>
<li>
- BOOST_REGEX_USE_CPP_LOCALE: makes <tt class="computeroutput"><span class="identifier">cpp_regex_traits</span></tt>
+ BOOST_REGEX_USE_CPP_LOCALE: makes <code class="computeroutput"><span class="identifier">cpp_regex_traits</span></code>
the default.
</li>
</ul></div>
<p>
- All these traits classes fulfil the <a href="concepts/traits_concept.html" title=" Traits Class
- Requirements">traits
+ All these traits classes fulfil the <a href="concepts/traits_concept.html" title="Traits Class Requirements">traits
class requirements</a>.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/sub_match.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/sub_match.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/sub_match.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,13 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> sub_match</title>
+<title>sub_match</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="match_results.html" title=" match_results">
-<link rel="next" href="regex_match.html" title=" regex_match">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="match_results.html" title="match_results">
+<link rel="next" href="regex_match.html" title="regex_match">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -24,38 +24,38 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.sub_match"></a> sub_match</h3></div></div></div>
-<pre class="programlisting">
-<span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
+<a name="boost_regex.ref.sub_match"></a> sub_match
+</h3></div></div></div>
+<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">regex</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span>
</pre>
<p>
Regular expressions are different from many simple pattern-matching algorithms
in that as well as finding an overall match they can also produce sub-expression
matches: each sub-expression being delimited in the pattern by a pair of
parenthesis (...). There has to be some method for reporting sub-expression
- matches back to the user: this is achieved this by defining a class match_results
+ matches back to the user: this is achieved this by defining a class match_results
that acts as an indexed collection of sub-expression matches, each sub-expression
- match being contained in an object of type sub_match.
+ match being contained in an object of type sub_match
.
</p>
<p>
- Objects of type sub_match
- may only be obtained by subscripting an object of type match_results.
+ Objects of type sub_match
+ may only be obtained by subscripting an object of type match_results
.
</p>
<p>
- Objects of type sub_match
- may be compared to objects of type <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></tt>,
- or <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></tt> or <tt class="computeroutput"><span class="keyword">const</span>
- <span class="identifier">charT</span></tt>.
+ Objects of type sub_match
+ may be compared to objects of type <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code>,
+ or <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></code> or <code class="computeroutput"><span class="keyword">const</span>
+ <span class="identifier">charT</span></code>.
</p>
<p>
- Objects of type sub_match
- may be added to objects of type <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></tt>,
- or <tt class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></tt> or <tt class="computeroutput"><span class="keyword">const</span>
- <span class="identifier">charT</span></tt>, to produce a new <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></tt>
+ Objects of type sub_match
+ may be added to objects of type <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code>,
+ or <code class="computeroutput"><span class="keyword">const</span> <span class="identifier">charT</span><span class="special">*</span></code> or <code class="computeroutput"><span class="keyword">const</span>
+ <span class="identifier">charT</span></code>, to produce a new <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span></code>
object.
</p>
<p>
- When the marked sub-expression denoted by an object of type sub_match participated in a regular
+ When the marked sub-expression denoted by an object of type sub_match
participated in a regular
expression match then member <span class="emphasis"><em>matched</em></span> evaluates to <span class="emphasis"><em>true</em></span>,
and members <span class="emphasis"><em>first</em></span> and <span class="emphasis"><em>second</em></span> denote
the range of characters [first,second) which formed that match. Otherwise
@@ -64,25 +64,24 @@
values.
</p>
<p>
- When the marked sub-expression denoted by an object of type sub_match was repeated, then the
- sub_match
+ When the marked sub-expression denoted by an object of type sub_match
was repeated, then the
+ sub_match
object represents the match obtained by the <span class="emphasis"><em>last</em></span> repeat.
The complete set of all the captures obtained for all the repeats, may be
accessed via the captures() member function (Note: this has serious performance
implications, you have to explicitly enable this feature).
</p>
<p>
- If an object of type sub_match represents sub-expression
+ If an object of type sub_match
represents sub-expression
0 - that is to say the whole match - then member <span class="emphasis"><em>matched</em></span>
- is always <span class="emphasis"><em>true</em></span>, unless a <a href="../partial_matches.html" title=" Partial Matches">partial
- match</a> was obtained as a result of the flag <tt class="computeroutput"><span class="identifier">match_partial</span></tt>
+ is always <span class="emphasis"><em>true</em></span>, unless a <a href="../partial_matches.html" title="Partial Matches">partial
+ match</a> was obtained as a result of the flag <code class="computeroutput"><span class="identifier">match_partial</span></code>
being passed to a regular expression algorithm, in which case member <span class="emphasis"><em>matched</em></span>
is <span class="emphasis"><em>false</em></span>, and members <span class="emphasis"><em>first</em></span> and
<span class="emphasis"><em>second</em></span> represent the character range that formed the
partial match.
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span><span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">class</span> <span class="identifier">sub_match</span><span class="special">;</span>
@@ -329,58 +328,52 @@
<span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
-<a name="boost_regex.ref.sub_match.description"></a><h4>
-<a name="id514998"></a>
+<a name="boost_regex.ref.sub_match.description"></a><h5>
+<a name="id548389"></a>
<a href="sub_match.html#boost_regex.ref.sub_match.description">Description</a>
- </h4>
-<a name="boost_regex.ref.sub_match.members"></a><h5>
-<a name="id515023"></a>
- Members
</h5>
+<a name="boost_regex.ref.sub_match.members"></a><h6>
+<a name="id548412"></a>
+ Members
+ </h6>
<a name="boost_regex.sub_match.value_type"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="identifier">value_type</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="identifier">value_type</span><span class="special">;</span>
</pre>
<p>
The type pointed to by the iterators.
</p>
<a name="boost_regex.sub_match.diff_type"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">>::</span><span class="identifier">difference_type</span> <span class="identifier">difference_type</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="keyword">typename</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">iterator</span><span class="special">>::</span><span class="identifier">difference_type</span> <span class="identifier">difference_type</span><span class="special">;</span>
</pre>
<p>
A type that represents the difference between two iterators.
</p>
<a name="boost_regex.sub_match.it_type"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">iterator</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">BidirectionalIterator</span> <span class="identifier">iterator</span><span class="special">;</span>
</pre>
<p>
The iterator type.
</p>
<a name="boost_regex.sub_match.first"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">iterator</span> <span class="identifier">first</span>
+<pre class="programlisting"><span class="identifier">iterator</span> <span class="identifier">first</span>
</pre>
<p>
An iterator denoting the position of the start of the match.
</p>
<a name="boost_regex.sub_match.second"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">iterator</span> <span class="identifier">second</span>
+<pre class="programlisting"><span class="identifier">iterator</span> <span class="identifier">second</span>
</pre>
<p>
An iterator denoting the position of the end of the match.
</p>
<a name="boost_regex.sub_match.matched"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">bool</span> <span class="identifier">matched</span>
+<pre class="programlisting"><span class="keyword">bool</span> <span class="identifier">matched</span>
</pre>
<p>
A Boolean value denoting whether this sub-expression participated in the
@@ -388,88 +381,80 @@
</p>
<a name="boost_regex.sub_match.length"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">static</span> <span class="identifier">difference_type</span> <span class="identifier">length</span><span class="special">();</span>
+<pre class="programlisting"><span class="keyword">static</span> <span class="identifier">difference_type</span> <span class="identifier">length</span><span class="special">();</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns the length of this matched
- sub-expression, or 0 if this sub-expression was not matched: <tt class="computeroutput"><span class="identifier">matched</span> <span class="special">?</span> <span class="identifier">distance</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">second</span><span class="special">)</span> <span class="special">:</span> <span class="number">0</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns the length of this matched
+ sub-expression, or 0 if this sub-expression was not matched: <code class="computeroutput"><span class="identifier">matched</span> <span class="special">?</span> <span class="identifier">distance</span><span class="special">(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">second</span><span class="special">)</span> <span class="special">:</span> <span class="number">0</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.sub_match.cast"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">operator</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">operator</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: converts <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> into a string: returns <tt class="computeroutput"><span class="special">(</span><span class="identifier">matched</span> <span class="special">?</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">second</span><span class="special">)</span> <span class="special">:</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>())</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: converts <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> into a string: returns <code class="computeroutput"><span class="special">(</span><span class="identifier">matched</span> <span class="special">?</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">second</span><span class="special">)</span> <span class="special">:</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>())</span></code>.
</p>
<a name="boost_regex.sub_match.str"></a><p>
</p>
-<pre class="programlisting">
-<span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">></span> <span class="identifier">str</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">></span> <span class="identifier">str</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns a string representation
- of <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt>:
- <tt class="computeroutput"><span class="special">(</span><span class="identifier">matched</span>
- <span class="special">?</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">second</span><span class="special">)</span> <span class="special">:</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>())</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns a string representation
+ of <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>:
+ <code class="computeroutput"><span class="special">(</span><span class="identifier">matched</span>
+ <span class="special">?</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>(</span><span class="identifier">first</span><span class="special">,</span> <span class="identifier">second</span><span class="special">)</span> <span class="special">:</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>())</span></code>.
</p>
<a name="boost_regex.sub_match.compare1"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special">&</span> <span class="identifier">s</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special">&</span> <span class="identifier">s</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: performs a lexical comparison to
- <span class="emphasis"><em>s</em></span>: returns <tt class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: performs a lexical comparison to
+ <span class="emphasis"><em>s</em></span>: returns <code class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">s</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></code>.
</p>
<a name="boost_regex.sub_match.compare2"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">value_type</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: compares <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> to the string <span class="emphasis"><em>s</em></span>:
- returns <tt class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: compares <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> to the string <span class="emphasis"><em>s</em></span>:
+ returns <code class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.sub_match.compare3"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">*</span> <span class="identifier">s</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">compare</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">value_type</span><span class="special">*</span> <span class="identifier">s</span><span class="special">)</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: compares <tt class="computeroutput"><span class="special">*</span><span class="keyword">this</span></tt> to the null-terminated string <span class="emphasis"><em>s</em></span>:
- returns <tt class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: compares <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> to the null-terminated string <span class="emphasis"><em>s</em></span>:
+ returns <code class="computeroutput"><span class="identifier">str</span><span class="special">().</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">s</span><span class="special">)</span></code>.
</p>
<a name="boost_regex.sub_match.cap_seq_type"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">typedef</span> <span class="identifier">implementation</span><span class="special">-</span><span class="keyword">private</span> <span class="identifier">capture_sequence_type</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">typedef</span> <span class="identifier">implementation</span><span class="special">-</span><span class="keyword">private</span> <span class="identifier">capture_sequence_type</span><span class="special">;</span>
</pre>
<p>
Defines an implementation-specific type that satisfies the requirements of
a standard library Sequence (21.1.1 including the optional Table 68 operations),
- whose value_type is a <tt class="computeroutput"><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span></tt>. This type happens to be <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="special">></span></tt>,
+ whose value_type is a <code class="computeroutput"><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span></code>. This type happens to be <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special"><</span><span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">></span> <span class="special">></span></code>,
but you shouldn't actually rely on that.
</p>
<a name="boost_regex.sub_match.captures"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">const</span> <span class="identifier">capture_sequence_type</span><span class="special">&</span> <span class="identifier">captures</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
+<pre class="programlisting"><span class="keyword">const</span> <span class="identifier">capture_sequence_type</span><span class="special">&</span> <span class="identifier">captures</span><span class="special">()</span><span class="keyword">const</span><span class="special">;</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns a sequence containing all
+ <span class="bold"><strong>Effects</strong></span>: returns a sequence containing all
the captures obtained for this sub-expression.
</p>
<p>
- <span class="bold"><b>Preconditions</b></span>: the library must be built
+ <span class="bold"><strong>Preconditions</strong></span>: the library must be built
and used with BOOST_REGEX_MATCH_EXTRA defined, and you must pass the flag
- <tt class="computeroutput"><span class="identifier">match_extra</span></tt> to the regex
- matching functions ( regex_match, regex_search, regex_iterator or regex_token_iterator) in order for
+ <code class="computeroutput"><span class="identifier">match_extra</span></code> to the regex
+ matching functions ( regex_match
, regex_search
, regex_iterator
or regex_token_iterator
) in order for
this member #function to be defined and return useful information.
</p>
<p>
- <span class="bold"><b>Rationale</b></span>: Enabling this feature has several
+ <span class="bold"><strong>Rationale</strong></span>: Enabling this feature has several
consequences:
</p>
<div class="itemizedlist"><ul type="disc">
@@ -487,506 +472,463 @@
to take place.
</li>
</ul></div>
-<a name="boost_regex.ref.sub_match.sub_match_non_member_operators"></a><h5>
-<a name="id516625"></a>
+<a name="boost_regex.ref.sub_match.sub_match_non_member_operators"></a><h6>
+<a name="id549987"></a>
<a href="sub_match.html#boost_regex.ref.sub_match.sub_match_non_member_operators">sub_match
non-member operators</a>
- </h5>
+ </h6>
<a name="boost_regex.sub_match.op_compare1"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">==</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">==</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare2"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">!=</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">!=</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare3"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special"><</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special"><</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare4"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special"><=</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special"><=</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare5"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">>=</span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">>=</span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare6"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
- <span class="special">></span> <span class="number">0</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">compare</span><span class="special">(</span><span class="identifier">rhs</span><span class="special">)</span>
+ <span class="special">></span> <span class="number">0</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare7"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">==</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">==</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare8"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">!=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">!=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare9"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special"><</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special"><</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare10"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">></span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">></span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare11"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">>=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">>=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare12"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special"><=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special"><=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare13"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">==</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">==</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare14"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">!=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">!=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare15"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special"><</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special"><</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare16"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">></span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">></span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare17"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">>=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">>=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare18"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special"><=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special"><=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare19"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">==</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">==</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare20"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">!=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">!=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare21"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special"><</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special"><</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare22"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">></span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">></span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare23"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">>=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">>=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare24"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special"><=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special"><=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare25"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">==</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">==</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare26"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">!=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">!=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare27"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special"><</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special"><</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare28"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">></span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">></span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare29"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">>=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">>=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare30"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special"><=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special"><=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare31"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">==</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">==</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare32"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">!=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">!=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare33"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special"><</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special"><</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare34"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">></span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">></span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare35"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special">>=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special">>=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare36"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span>
- <span class="special"><=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span>
+ <span class="special"><=</span> <span class="identifier">rhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare37"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">==</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">==</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">==</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare38"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">!=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">!=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">!=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare39"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special"><</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special"><</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare40"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">></span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">></span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">></span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare41"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special">>=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">>=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">>=</span> <span class="identifier">rhs</span></code>.
</p>
<a name="boost_regex.sub_match.op_compare42"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="keyword">bool</span> <span class="keyword">operator</span> <span class="special"><=</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">lhs</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">rhs</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special"><=</span> <span class="identifier">rhs</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">lhs</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special"><=</span> <span class="identifier">rhs</span></code>.
</p>
<p>
- The addition operators for sub_match allow you to add a sub_match
- to any type to which you can add a <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></tt>
+ The addition operators for sub_match
allow you to add a sub_match
+ to any type to which you can add a <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">string</span></code>
and obtain a new string as the result.
</p>
<a name="boost_regex.sub_match.op_add1"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">operator</span> <span class="special">+</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
<span class="identifier">traits</span><span class="special">,</span>
@@ -994,13 +936,12 @@
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">s</span>
- <span class="special">+</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">s</span>
+ <span class="special">+</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_add2"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">,</span> <span class="identifier">Allocator</span><span class="special">></span>
<span class="keyword">operator</span> <span class="special">+</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">,</span>
@@ -1008,91 +949,86 @@
<span class="identifier">Allocator</span><span class="special">>&</span> <span class="identifier">s</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">+</span> <span class="identifier">s</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">+</span> <span class="identifier">s</span></code>.
</p>
<a name="boost_regex.sub_match.op_add3"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">></span>
<span class="keyword">operator</span> <span class="special">+</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">*</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">s</span>
- <span class="special">+</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">s</span>
+ <span class="special">+</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_add4"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">></span>
<span class="keyword">operator</span> <span class="special">+</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span> <span class="special">*</span> <span class="identifier">s</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">+</span> <span class="identifier">s</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">+</span> <span class="identifier">s</span></code>.
</p>
<a name="boost_regex.sub_match.op_add5"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">></span>
<span class="keyword">operator</span> <span class="special">+</span> <span class="special">(</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">s</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">s</span>
- <span class="special">+</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">s</span>
+ <span class="special">+</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
<a name="boost_regex.sub_match.op_add6"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">></span>
<span class="keyword">operator</span> <span class="special">+</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">,</span>
<span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span> <span class="keyword">const</span><span class="special">&</span> <span class="identifier">s</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">+</span> <span class="identifier">s</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">+</span> <span class="identifier">s</span></code>.
</p>
<a name="boost_regex.sub_match.op_add7"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_string</span><span class="special"><</span><span class="keyword">typename</span> <span class="identifier">iterator_traits</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>::</span><span class="identifier">value_type</span><span class="special">></span>
<span class="keyword">operator</span> <span class="special">+</span> <span class="special">(</span><span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m1</span><span class="special">,</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m2</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="identifier">m1</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
- <span class="special">+</span> <span class="identifier">m2</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="identifier">m1</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span>
+ <span class="special">+</span> <span class="identifier">m2</span><span class="special">.</span><span class="identifier">str</span><span class="special">()</span></code>.
</p>
-<a name="boost_regex.ref.sub_match.stream_inserter"></a><h5>
-<a name="id528696"></a>
+<a name="boost_regex.ref.sub_match.stream_inserter"></a><h6>
+<a name="id561958"></a>
<a href="sub_match.html#boost_regex.ref.sub_match.stream_inserter">Stream inserter</a>
- </h5>
+ </h6>
<a name="boost_regex.sub_match.op_stream"></a><p>
</p>
-<pre class="programlisting">
-<span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
+<pre class="programlisting"><span class="keyword">template</span> <span class="special"><</span><span class="keyword">class</span> <span class="identifier">charT</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">traits</span><span class="special">,</span> <span class="keyword">class</span> <span class="identifier">BidirectionalIterator</span><span class="special">></span>
<span class="identifier">basic_ostream</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span>
<span class="keyword">operator</span> <span class="special"><<</span> <span class="special">(</span><span class="identifier">basic_ostream</span><span class="special"><</span><span class="identifier">charT</span><span class="special">,</span> <span class="identifier">traits</span><span class="special">>&</span> <span class="identifier">os</span>
<span class="keyword">const</span> <span class="identifier">sub_match</span><span class="special"><</span><span class="identifier">BidirectionalIterator</span><span class="special">>&</span> <span class="identifier">m</span><span class="special">);</span>
</pre>
<p>
- <span class="bold"><b>Effects</b></span>: returns <tt class="computeroutput"><span class="special">(</span><span class="identifier">os</span> <span class="special"><<</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></tt>.
+ <span class="bold"><strong>Effects</strong></span>: returns <code class="computeroutput"><span class="special">(</span><span class="identifier">os</span> <span class="special"><<</span> <span class="identifier">m</span><span class="special">.</span><span class="identifier">str</span><span class="special">())</span></code>.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> syntax_option_type</title>
+<title>syntax_option_type</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../ref.html" title=" Reference">
-<link rel="prev" href="bad_expression.html" title=" bad_expression">
-<link rel="next" href="syntax_option_type/syntax_option_type_synopsis.html" title="
- syntax_option_type Synopsis">
+<link rel="up" href="../ref.html" title="Reference">
+<link rel="prev" href="bad_expression.html" title="bad_expression">
+<link rel="next" href="syntax_option_type/syntax_option_type_synopsis.html" title="syntax_option_type Synopsis">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.ref.syntax_option_type"></a> syntax_option_type</h3></div></div></div>
+<a name="boost_regex.ref.syntax_option_type"></a> syntax_option_type
+</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="syntax_option_type/syntax_option_type_synopsis.html">
syntax_option_type Synopsis</a></span></dt>
@@ -43,10 +43,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_basic.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_basic.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_basic.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Options for POSIX Basic Regular Expressions</title>
+<title>Options for POSIX Basic Regular Expressions</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax_option_type.html" title=" syntax_option_type">
-<link rel="prev" href="syntax_option_type_extended.html" title="
- Options for POSIX Extended Regular Expressions">
-<link rel="next" href="syntax_option_type_literal.html" title="
- Options for Literal Strings">
+<link rel="up" href="../syntax_option_type.html" title="syntax_option_type">
+<link rel="prev" href="syntax_option_type_extended.html" title="Options for POSIX Extended Regular Expressions">
+<link rel="next" href="syntax_option_type_literal.html" title="Options for Literal Strings">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.syntax_option_type.syntax_option_type_basic"></a><a href="syntax_option_type_basic.html" title="
- Options for POSIX Basic Regular Expressions">
- Options for POSIX Basic Regular Expressions</a></h4></div></div></div>
+<a name="boost_regex.ref.syntax_option_type.syntax_option_type_basic"></a><a href="syntax_option_type_basic.html" title="Options for POSIX Basic Regular Expressions">
+ Options for POSIX Basic Regular Expressions</a>
+</h4></div></div></div>
<p>
Exactly one of the following must always be set for POSIX basic regular
expressions:
@@ -72,8 +69,7 @@
<td>
<p>
Specifies that the grammar recognized by the regular expression
- engine is the same as that used by <a href="../../syntax/basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">POSIX
+ engine is the same as that used by <a href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX
basic regular expressions</a> in IEEE Std 1003.1-2001, Portable
Operating System Interface (POSIX ), Base Definitions and Headers,
Section 9, Regular Expressions (FWD.1).
@@ -111,13 +107,12 @@
<td>
<p>
Specifies that the grammar recognized by the regular expression
- engine is the same as that used by POSIX utility <tt class="computeroutput"><span class="identifier">grep</span></tt> in IEEE Std 1003.1-2001,
+ engine is the same as that used by POSIX utility <code class="computeroutput"><span class="identifier">grep</span></code> in IEEE Std 1003.1-2001,
Portable Operating System Interface (POSIX ), Shells and Utilities,
Section 4, Utilit\ies, grep (FWD.1).
</p>
<p>
- That is to say, the same as <a href="../../syntax/basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">POSIX
+ That is to say, the same as <a href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX
basic syntax</a>, but with the newline character acting as an
alternation character; the expression is treated as a newline separated
list of alternatives.
@@ -137,8 +132,7 @@
</td>
<td>
<p>
- Specifies that the grammar recognised is the superset of the <a href="../../syntax/basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">POSIX-Basic syntax</a>
+ Specifies that the grammar recognised is the superset of the POSIX-Basic syntax
used by the emacs program.
</p>
</td>
@@ -205,7 +199,7 @@
<p>
Specifies that when a regular expression is matched against a character
container sequence, then no sub-expression matches are to be stored
- in the supplied match_results structure.
+ in the supplied match_results
structure.
</p>
</td>
</tr>
@@ -243,9 +237,8 @@
</td>
<td>
<p>
- Specifies that character ranges of the form <tt class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">b</span><span class="special">]</span></tt>
- should be locale sensitive. This bit is on by default for <a href="../../syntax/basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">POSIX-Basic regular expressions</a>,
+ Specifies that character ranges of the form <code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">b</span><span class="special">]</span></code>
+ should be locale sensitive. This bit is on by default for POSIX-Basic regular expressions,
but can be unset to force ranges to be compared by code point only.
</p>
</td>
@@ -265,7 +258,7 @@
<p>
Specifies that the \n character has the same effect as the alternation
operator |. Allows newline separated lists to be used as a list
- of alternatives. This bit is already set, if you use the <tt class="computeroutput"><span class="identifier">grep</span></tt> option.
+ of alternatives. This bit is already set, if you use the <code class="computeroutput"><span class="identifier">grep</span></code> option.
</p>
</td>
</tr>
@@ -282,7 +275,7 @@
</td>
<td>
<p>
- When set then character classes such as <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">alnum</span><span class="special">:]]</span></tt>
+ When set then character classes such as <code class="computeroutput"><span class="special">[[:</span><span class="identifier">alnum</span><span class="special">:]]</span></code>
are not allowed.
</p>
</td>
@@ -301,9 +294,8 @@
<td>
<p>
When set this makes the escape character ordinary inside lists,
- so that <tt class="computeroutput"><span class="special">[\</span><span class="identifier">b</span><span class="special">]</span></tt> would match either '\' or 'b'.
- This bit is on by default for <a href="../../syntax/basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">POSIX-basic
+ so that <code class="computeroutput"><span class="special">[\</span><span class="identifier">b</span><span class="special">]</span></code> would match either '\' or 'b'.
+ This bit is on by default for <a href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX-basic
regular expressions</a>, but can be unset to force escapes to
be recognised inside lists.
</p>
@@ -339,8 +331,8 @@
</td>
<td>
<p>
- When set then <tt class="computeroutput"><span class="special">\?</span></tt> acts
- as a zero-or-one repeat operator, and <tt class="computeroutput"><span class="special">\+</span></tt>
+ When set then <code class="computeroutput"><span class="special">\?</span></code> acts
+ as a zero-or-one repeat operator, and <code class="computeroutput"><span class="special">\+</span></code>
acts as a one-or-more repeat operator.
</p>
</td>
@@ -358,7 +350,7 @@
</td>
<td>
<p>
- When set then <tt class="computeroutput"><span class="special">\|</span></tt> acts
+ When set then <code class="computeroutput"><span class="special">\|</span></code> acts
as the alternation operator.
</p>
</td>
@@ -376,7 +368,7 @@
</td>
<td>
<p>
- Prevents basic_regex from throwing
+ Prevents basic_regex
from throwing
an exception when an invalid expression is encountered.
</p>
</td>
@@ -386,10 +378,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_extended.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_extended.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_extended.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Options for POSIX Extended Regular Expressions</title>
+<title>Options for POSIX Extended Regular Expressions</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax_option_type.html" title=" syntax_option_type">
-<link rel="prev" href="syntax_option_type_perl.html" title="
- Options for Perl Regular Expressions">
-<link rel="next" href="syntax_option_type_basic.html" title="
- Options for POSIX Basic Regular Expressions">
+<link rel="up" href="../syntax_option_type.html" title="syntax_option_type">
+<link rel="prev" href="syntax_option_type_perl.html" title="Options for Perl Regular Expressions">
+<link rel="next" href="syntax_option_type_basic.html" title="Options for POSIX Basic Regular Expressions">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,12 +24,11 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.syntax_option_type.syntax_option_type_extended"></a><a href="syntax_option_type_extended.html" title="
- Options for POSIX Extended Regular Expressions">
- Options for POSIX Extended Regular Expressions</a></h4></div></div></div>
+<a name="boost_regex.ref.syntax_option_type.syntax_option_type_extended"></a><a href="syntax_option_type_extended.html" title="Options for POSIX Extended Regular Expressions">
+ Options for POSIX Extended Regular Expressions</a>
+</h4></div></div></div>
<p>
- Exactly one of the following must always be set for <a href="../../syntax/basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax">POSIX
+ Exactly one of the following must always be set for <a href="../../syntax/basic_extended.html" title="POSIX Extended Regular Expression Syntax">POSIX
extended regular expressions</a>:
</p>
<div class="informaltable"><table class="table">
@@ -79,8 +75,7 @@
(FWD.1).
</p>
<p>
- Refer to the <a href="../../syntax/basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax">POSIX
+ Refer to the <a href="../../syntax/basic_extended.html" title="POSIX Extended Regular Expression Syntax">POSIX
extended regular expression guide</a> for more information.
</p>
<p>
@@ -111,8 +106,7 @@
grep (FWD.1).
</p>
<p>
- That is to say, the same as <a href="../../syntax/basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax">POSIX
+ That is to say, the same as <a href="../../syntax/basic_extended.html" title="POSIX Extended Regular Expression Syntax">POSIX
extended syntax</a>, but with the newline character acting as
an alternation character in addition to "|".
</p>
@@ -137,8 +131,7 @@
and Utilities, Section 4, awk (FWD.1).
</p>
<p>
- That is to say: the same as <a href="../../syntax/basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax">POSIX
+ That is to say: the same as <a href="../../syntax/basic_extended.html" title="POSIX Extended Regular Expression Syntax">POSIX
extended syntax</a>, but with escape sequences in character
classes permitted.
</p>
@@ -214,7 +207,7 @@
<p>
Specifies that when a regular expression is matched against a character
container sequence, then no sub-expression matches are to be stored
- in the supplied match_results structure.
+ in the supplied match_results
structure.
</p>
</td>
</tr>
@@ -252,7 +245,7 @@
</td>
<td>
<p>
- Specifies that character ranges of the form <tt class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">b</span><span class="special">]</span></tt>
+ Specifies that character ranges of the form <code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">b</span><span class="special">]</span></code>
should be locale sensitive. This bit is on by default for POSIX-Extended
regular expressions, but can be unset to force ranges to be compared
by code point only.
@@ -292,7 +285,7 @@
<td>
<p>
When set this makes the escape character ordinary inside lists,
- so that <tt class="computeroutput"><span class="special">[\</span><span class="identifier">b</span><span class="special">]</span></tt> would match either '\' or 'b'.
+ so that <code class="computeroutput"><span class="special">[\</span><span class="identifier">b</span><span class="special">]</span></code> would match either '\' or 'b'.
This bit is on by default for POSIX-Extended regular expressions,
but can be unset to force escapes to be recognised inside lists.
</p>
@@ -330,7 +323,7 @@
</td>
<td>
<p>
- Prevents basic_regex from throwing
+ Prevents basic_regex
from throwing
an exception when an invalid expression is encountered.
</p>
</td>
@@ -340,10 +333,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_literal.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_literal.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_literal.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Options for Literal Strings</title>
+<title>Options for Literal Strings</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax_option_type.html" title=" syntax_option_type">
-<link rel="prev" href="syntax_option_type_basic.html" title="
- Options for POSIX Basic Regular Expressions">
-<link rel="next" href="../match_flag_type.html" title=" match_flag_type">
+<link rel="up" href="../syntax_option_type.html" title="syntax_option_type">
+<link rel="prev" href="syntax_option_type_basic.html" title="Options for POSIX Basic Regular Expressions">
+<link rel="next" href="../match_flag_type.html" title="match_flag_type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.syntax_option_type.syntax_option_type_literal"></a><a href="syntax_option_type_literal.html" title="
- Options for Literal Strings">
- Options for Literal Strings</a></h4></div></div></div>
+<a name="boost_regex.ref.syntax_option_type.syntax_option_type_literal"></a><a href="syntax_option_type_literal.html" title="Options for Literal Strings">
+ Options for Literal Strings</a>
+</h4></div></div></div>
<p>
The following must always be set to interpret the expression as a string
literal:
@@ -145,10 +143,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_overview.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_overview.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_overview.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Overview of syntax_option_type</title>
+<title>Overview of syntax_option_type</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax_option_type.html" title=" syntax_option_type">
-<link rel="prev" href="syntax_option_type_synopsis.html" title="
- syntax_option_type Synopsis">
-<link rel="next" href="syntax_option_type_perl.html" title="
- Options for Perl Regular Expressions">
+<link rel="up" href="../syntax_option_type.html" title="syntax_option_type">
+<link rel="prev" href="syntax_option_type_synopsis.html" title="syntax_option_type Synopsis">
+<link rel="next" href="syntax_option_type_perl.html" title="Options for Perl Regular Expressions">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,38 +24,35 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.syntax_option_type.syntax_option_type_overview"></a><a href="syntax_option_type_overview.html" title="
- Overview of syntax_option_type">
- Overview of syntax_option_type</a></h4></div></div></div>
+<a name="boost_regex.ref.syntax_option_type.syntax_option_type_overview"></a><a href="syntax_option_type_overview.html" title="Overview of syntax_option_type">
+ Overview of syntax_option_type</a>
+</h4></div></div></div>
<p>
- The type syntax_option_type is an implementation
+ The type syntax_option_type
is an implementation
specific bitmask type (see C++ standard 17.3.2.1.2). Setting its elements
- has the effects listed in the table below, a valid value of type syntax_option_type
- will always have exactly one of the elements <tt class="computeroutput"><span class="identifier">normal</span></tt>,
- <tt class="computeroutput"><span class="identifier">basic</span></tt>, <tt class="computeroutput"><span class="identifier">extended</span></tt>,
- <tt class="computeroutput"><span class="identifier">awk</span></tt>, <tt class="computeroutput"><span class="identifier">grep</span></tt>,
- <tt class="computeroutput"><span class="identifier">egrep</span></tt>, <tt class="computeroutput"><span class="identifier">sed</span></tt>,
- <tt class="computeroutput"><span class="identifier">literal</span></tt> or <tt class="computeroutput"><span class="identifier">perl</span></tt> set.
+ has the effects listed in the table below, a valid value of type syntax_option_type
+ will always have exactly one of the elements <code class="computeroutput"><span class="identifier">normal</span></code>,
+ <code class="computeroutput"><span class="identifier">basic</span></code>, <code class="computeroutput"><span class="identifier">extended</span></code>,
+ <code class="computeroutput"><span class="identifier">awk</span></code>, <code class="computeroutput"><span class="identifier">grep</span></code>,
+ <code class="computeroutput"><span class="identifier">egrep</span></code>, <code class="computeroutput"><span class="identifier">sed</span></code>,
+ <code class="computeroutput"><span class="identifier">literal</span></code> or <code class="computeroutput"><span class="identifier">perl</span></code> set.
</p>
<p>
Note that for convenience all the constants listed here are duplicated
- within the scope of class template basic_regex, so you can use any
+ within the scope of class template basic_regex
, so you can use any
of:
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">constant_name</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex_constants</span><span class="special">::</span><span class="identifier">constant_name</span>
</pre>
<p>
or
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">constant_name</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">constant_name</span>
</pre>
<p>
or
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">wregex</span><span class="special">::</span><span class="identifier">constant_name</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">wregex</span><span class="special">::</span><span class="identifier">constant_name</span>
</pre>
<p>
in an interchangeable manner.
@@ -66,10 +60,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_perl.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_perl.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_perl.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Options for Perl Regular Expressions</title>
+<title>Options for Perl Regular Expressions</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax_option_type.html" title=" syntax_option_type">
-<link rel="prev" href="syntax_option_type_overview.html" title="
- Overview of syntax_option_type">
-<link rel="next" href="syntax_option_type_extended.html" title="
- Options for POSIX Extended Regular Expressions">
+<link rel="up" href="../syntax_option_type.html" title="syntax_option_type">
+<link rel="prev" href="syntax_option_type_overview.html" title="Overview of syntax_option_type">
+<link rel="next" href="syntax_option_type_extended.html" title="Options for POSIX Extended Regular Expressions">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.syntax_option_type.syntax_option_type_perl"></a><a href="syntax_option_type_perl.html" title="
- Options for Perl Regular Expressions">
- Options for Perl Regular Expressions</a></h4></div></div></div>
+<a name="boost_regex.ref.syntax_option_type.syntax_option_type_perl"></a><a href="syntax_option_type_perl.html" title="Options for Perl Regular Expressions">
+ Options for Perl Regular Expressions</a>
+</h4></div></div></div>
<p>
One of the following must always be set for perl regular expressions:
</p>
@@ -76,12 +73,11 @@
part 10, RegExp (Regular Expression) Objects (FWD.1).
</p>
<p>
- This is functionally identical to the <a href="../../syntax/perl_syntax.html" title=" Perl Regular Expression
- Syntax">Perl
+ This is functionally identical to the <a href="../../syntax/perl_syntax.html" title="Perl Regular Expression Syntax">Perl
regular expression syntax</a>.
</p>
<p>
- Boost.Regex also recognizes all of the perl-compatible <tt class="computeroutput"><span class="special">(?...)</span></tt> extensions in this mode.
+ Boost.Regex also recognizes all of the perl-compatible <code class="computeroutput"><span class="special">(?...)</span></code> extensions in this mode.
</p>
</td>
</tr>
@@ -215,7 +211,7 @@
<p>
Specifies that when a regular expression is matched against a character
container sequence, then no sub-expression matches are to be stored
- in the supplied match_results structure.
+ in the supplied match_results
structure.
</p>
</td>
</tr>
@@ -253,7 +249,7 @@
</td>
<td>
<p>
- Specifies that character ranges of the form <tt class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">b</span><span class="special">]</span></tt>
+ Specifies that character ranges of the form <code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">b</span><span class="special">]</span></code>
should be locale sensitive.
</p>
</td>
@@ -290,7 +286,7 @@
</td>
<td>
<p>
- Prevents basic_regex from throwing
+ Prevents basic_regex
from throwing
an exception when an invalid expression is encountered.
</p>
</td>
@@ -329,9 +325,9 @@
<td>
<p>
Normally whether Boost.Regex will match "." against a
- newline character is determined by the match flag <tt class="computeroutput"><span class="identifier">match_dot_not_newline</span></tt>. Specifying
- this flag is equivalent to prefixing the expression with <tt class="computeroutput"><span class="special">(?-</span><span class="identifier">s</span><span class="special">)</span></tt> and therefore causes "."
- not to match a newline character regardless of whether <tt class="computeroutput"><span class="identifier">match_not_dot_newline</span></tt> is set
+ newline character is determined by the match flag <code class="computeroutput"><span class="identifier">match_dot_not_newline</span></code>. Specifying
+ this flag is equivalent to prefixing the expression with <code class="computeroutput"><span class="special">(?-</span><span class="identifier">s</span><span class="special">)</span></code> and therefore causes "."
+ not to match a newline character regardless of whether <code class="computeroutput"><span class="identifier">match_not_dot_newline</span></code> is set
in the match flags.
</p>
</td>
@@ -350,9 +346,9 @@
<td>
<p>
Normally whether Boost.Regex will match "." against a
- newline character is determined by the match flag <tt class="computeroutput"><span class="identifier">match_dot_not_newline</span></tt>. Specifying
- this flag is equivalent to prefixing the expression with <tt class="computeroutput"><span class="special">(?</span><span class="identifier">s</span><span class="special">)</span></tt> and therefore causes "."
- to match a newline character regardless of whether <tt class="computeroutput"><span class="identifier">match_not_dot_newline</span></tt> is set
+ newline character is determined by the match flag <code class="computeroutput"><span class="identifier">match_dot_not_newline</span></code>. Specifying
+ this flag is equivalent to prefixing the expression with <code class="computeroutput"><span class="special">(?</span><span class="identifier">s</span><span class="special">)</span></code> and therefore causes "."
+ to match a newline character regardless of whether <code class="computeroutput"><span class="identifier">match_not_dot_newline</span></code> is set
in the match flags.
</p>
</td>
@@ -380,10 +376,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_synopsis.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_synopsis.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/ref/syntax_option_type/syntax_option_type_synopsis.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- syntax_option_type Synopsis</title>
+<title>syntax_option_type Synopsis</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax_option_type.html" title=" syntax_option_type">
-<link rel="prev" href="../syntax_option_type.html" title=" syntax_option_type">
-<link rel="next" href="syntax_option_type_overview.html" title="
- Overview of syntax_option_type">
+<link rel="up" href="../syntax_option_type.html" title="syntax_option_type">
+<link rel="prev" href="../syntax_option_type.html" title="syntax_option_type">
+<link rel="next" href="syntax_option_type_overview.html" title="Overview of syntax_option_type">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,18 +24,17 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.ref.syntax_option_type.syntax_option_type_synopsis"></a><a href="syntax_option_type_synopsis.html" title="
- syntax_option_type Synopsis">
- syntax_option_type Synopsis</a></h4></div></div></div>
+<a name="boost_regex.ref.syntax_option_type.syntax_option_type_synopsis"></a><a href="syntax_option_type_synopsis.html" title="syntax_option_type Synopsis">
+ syntax_option_type Synopsis</a>
+</h4></div></div></div>
<p>
- Type syntax_option_type
+ Type syntax_option_type
is an implementation specific bitmask type that controls how a regular
expression string is to be interpreted. For convenience note that all the
constants listed here, are also duplicated within the scope of class template
- basic_regex.
+ basic_regex
.
</p>
-<pre class="programlisting">
-<span class="keyword">namespace</span> <span class="identifier">std</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">regex_constants</span><span class="special">{</span>
+<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">std</span><span class="special">{</span> <span class="keyword">namespace</span> <span class="identifier">regex_constants</span><span class="special">{</span>
<span class="keyword">typedef</span> <span class="identifier">implementation</span><span class="special">-</span><span class="identifier">specific</span><span class="special">-</span><span class="identifier">bitmask</span><span class="special">-</span><span class="identifier">type</span> <span class="identifier">syntax_option_type</span><span class="special">;</span>
@@ -65,10 +62,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Regular Expression Syntax</title>
+<title>Regular Expression Syntax</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="partial_matches.html" title=" Partial Matches">
-<link rel="next" href="syntax/perl_syntax.html" title=" Perl Regular Expression
- Syntax">
+<link rel="prev" href="partial_matches.html" title="Partial Matches">
+<link rel="next" href="syntax/perl_syntax.html" title="Perl Regular Expression Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.syntax"></a> Regular Expression Syntax</h2></div></div></div>
+<a name="boost_regex.syntax"></a> Regular Expression Syntax
+</h2></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="syntax/perl_syntax.html"> Perl Regular Expression
Syntax</a></span></dt>
@@ -63,18 +63,15 @@
</p>
<div class="itemizedlist"><ul type="disc">
<li>
-<a href="syntax/perl_syntax.html" title=" Perl Regular Expression
- Syntax">Perl (this is the default
+<a href="syntax/perl_syntax.html" title="Perl Regular Expression Syntax">Perl (this is the default
behavior)</a>.
</li>
<li>
-<a href="syntax/basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax">POSIX extended (including
+<a href="syntax/basic_extended.html" title="POSIX Extended Regular Expression Syntax">POSIX extended (including
the egrep and awk variations)</a>.
</li>
<li>
-<a href="syntax/basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">POSIX Basic (including the
+<a href="syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX Basic (including the
grep and emacs variations)</a>.
</li>
</ul></div>
@@ -82,25 +79,14 @@
You can also construct a regular expression that treats every character as
a literal, but that's not really a "syntax"!
</p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/basic_extended.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/basic_extended.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/basic_extended.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> POSIX Extended Regular
- Expression Syntax</title>
+<title>POSIX Extended Regular Expression Syntax</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax.html" title=" Regular Expression Syntax">
-<link rel="prev" href="perl_syntax.html" title=" Perl Regular Expression
- Syntax">
-<link rel="next" href="basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">
+<link rel="up" href="../syntax.html" title="Regular Expression Syntax">
+<link rel="prev" href="perl_syntax.html" title="Perl Regular Expression Syntax">
+<link rel="next" href="basic_syntax.html" title="POSIX Basic Regular Expression Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,60 +24,59 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.syntax.basic_extended"></a><a href="basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax"> POSIX Extended Regular
- Expression Syntax</a></h3></div></div></div>
-<a name="boost_regex.syntax.basic_extended.synopsis"></a><h3>
-<a name="id470414"></a>
+<a name="boost_regex.syntax.basic_extended"></a><a href="basic_extended.html" title="POSIX Extended Regular Expression Syntax"> POSIX Extended Regular
+ Expression Syntax</a>
+</h3></div></div></div>
+<a name="boost_regex.syntax.basic_extended.synopsis"></a><h4>
+<a name="id504146"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.synopsis">Synopsis</a>
- </h3>
+ </h4>
<p>
The POSIX-Extended regular expression syntax is supported by the POSIX C
- regular expression API's, and variations are used by the utilities <tt class="computeroutput"><span class="identifier">egrep</span></tt> and <tt class="computeroutput"><span class="identifier">awk</span></tt>.
+ regular expression API's, and variations are used by the utilities <code class="computeroutput"><span class="identifier">egrep</span></code> and <code class="computeroutput"><span class="identifier">awk</span></code>.
You can construct POSIX extended regular expressions in Boost.Regex by passing
- the flag <tt class="computeroutput"><span class="identifier">extended</span></tt> to the
+ the flag <code class="computeroutput"><span class="identifier">extended</span></code> to the
regex constructor, for example:
</p>
-<pre class="programlisting">
-<span class="comment">// e1 is a case sensitive POSIX-Extended expression:
+<pre class="programlisting"><span class="comment">// e1 is a case sensitive POSIX-Extended expression:
</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e1</span><span class="special">(</span><span class="identifier">my_expression</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">extended</span><span class="special">);</span>
<span class="comment">// e2 a case insensitive POSIX-Extended expression:
</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e2</span><span class="special">(</span><span class="identifier">my_expression</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">extended</span><span class="special">|</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">icase</span><span class="special">);</span>
</pre>
<a name="boost_regex.posix_extended_syntax"></a><p>
</p>
-<a name="boost_regex.syntax.basic_extended.posix_extended_syntax"></a><h3>
-<a name="id470682"></a>
+<a name="boost_regex.syntax.basic_extended.posix_extended_syntax"></a><h4>
+<a name="id504411"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.posix_extended_syntax">POSIX
Extended Syntax</a>
- </h3>
+ </h4>
<p>
In POSIX-Extended regular expressions, all characters match themselves except
for the following special characters:
</p>
<pre class="programlisting">.[{()\*+?|^$</pre>
-<a name="boost_regex.syntax.basic_extended.wildcard_"></a><h4>
-<a name="id470723"></a>
+<a name="boost_regex.syntax.basic_extended.wildcard_"></a><h5>
+<a name="id504451"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.wildcard_">Wildcard:</a>
- </h4>
+ </h5>
<p>
The single character '.' when used outside of a character set will match
any single character except:
</p>
<div class="itemizedlist"><ul type="disc">
<li>
- The NULL character when the flag <tt class="computeroutput"><span class="identifier">match_no_dot_null</span></tt>
+ The NULL character when the flag <code class="computeroutput"><span class="identifier">match_no_dot_null</span></code>
is passed to the matching algorithms.
</li>
<li>
- The newline character when the flag <tt class="computeroutput"><span class="identifier">match_not_dot_newline</span></tt>
+ The newline character when the flag <code class="computeroutput"><span class="identifier">match_not_dot_newline</span></code>
is passed to the matching algorithms.
</li>
</ul></div>
-<a name="boost_regex.syntax.basic_extended.anchors_"></a><h4>
-<a name="id470793"></a>
+<a name="boost_regex.syntax.basic_extended.anchors_"></a><h5>
+<a name="id504519"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.anchors_">Anchors:</a>
- </h4>
+ </h5>
<p>
A '^' character shall match the start of a line when used as the first character
of an expression, or the first character of a sub-expression.
@@ -89,39 +85,39 @@
A '$' character shall match the end of a line when used as the last character
of an expression, or the last character of a sub-expression.
</p>
-<a name="boost_regex.syntax.basic_extended.marked_sub_expressions_"></a><h4>
-<a name="id470830"></a>
+<a name="boost_regex.syntax.basic_extended.marked_sub_expressions_"></a><h5>
+<a name="id504554"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.marked_sub_expressions_">Marked
sub-expressions:</a>
- </h4>
+ </h5>
<p>
- A section beginning <tt class="computeroutput"><span class="special">(</span></tt> and ending
- <tt class="computeroutput"><span class="special">)</span></tt> acts as a marked sub-expression.
+ A section beginning <code class="computeroutput"><span class="special">(</span></code> and ending
+ <code class="computeroutput"><span class="special">)</span></code> acts as a marked sub-expression.
Whatever matched the sub-expression is split out in a separate field by the
matching algorithms. Marked sub-expressions can also repeated, or referred
to by a back-reference.
</p>
-<a name="boost_regex.syntax.basic_extended.repeats_"></a><h4>
-<a name="id470888"></a>
+<a name="boost_regex.syntax.basic_extended.repeats_"></a><h5>
+<a name="id504611"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.repeats_">Repeats:</a>
- </h4>
+ </h5>
<p>
Any atom (a single character, a marked sub-expression, or a character class)
- can be repeated with the <tt class="computeroutput"><span class="special">*</span></tt>,
- <tt class="computeroutput"><span class="special">+</span></tt>, <tt class="computeroutput"><span class="special">?</span></tt>,
- and <tt class="computeroutput"><span class="special">{}</span></tt> operators.
+ can be repeated with the <code class="computeroutput"><span class="special">*</span></code>,
+ <code class="computeroutput"><span class="special">+</span></code>, <code class="computeroutput"><span class="special">?</span></code>,
+ and <code class="computeroutput"><span class="special">{}</span></code> operators.
</p>
<p>
- The <tt class="computeroutput"><span class="special">*</span></tt> operator will match the
+ The <code class="computeroutput"><span class="special">*</span></code> operator will match the
preceding atom <span class="emphasis"><em>zero or more times</em></span>, for example the expression
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">*</span><span class="identifier">b</span></tt> will match any of the following:
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">*</span><span class="identifier">b</span></code> will match any of the following:
</p>
<pre class="programlisting">b
ab
aaaaaaaab
</pre>
<p>
- The <tt class="computeroutput"><span class="special">+</span></tt> operator will match the
+ The <code class="computeroutput"><span class="special">+</span></code> operator will match the
preceding atom <span class="emphasis"><em>one or more times</em></span>, for example the expression
a+b will match any of the following:
</p>
@@ -134,9 +130,9 @@
<pre class="programlisting">b
</pre>
<p>
- The <tt class="computeroutput"><span class="special">?</span></tt> operator will match the
+ The <code class="computeroutput"><span class="special">?</span></code> operator will match the
preceding atom <span class="emphasis"><em>zero or one times</em></span>, for example the expression
- <tt class="computeroutput"><span class="identifier">ca</span><span class="special">?</span><span class="identifier">b</span></tt> will match any of the following:
+ <code class="computeroutput"><span class="identifier">ca</span><span class="special">?</span><span class="identifier">b</span></code> will match any of the following:
</p>
<pre class="programlisting">cb
cab
@@ -150,15 +146,15 @@
An atom can also be repeated with a bounded repeat:
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">}</span></tt> Matches
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">}</span></code> Matches
'a' repeated <span class="emphasis"><em>exactly n times</em></span>.
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,}</span></tt> Matches
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,}</span></code> Matches
'a' repeated <span class="emphasis"><em>n or more times</em></span>.
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">m</span><span class="special">}</span></tt> Matches 'a' repeated <span class="emphasis"><em>between n
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">m</span><span class="special">}</span></code> Matches 'a' repeated <span class="emphasis"><em>between n
and m times inclusive</em></span>.
</p>
<p>
@@ -168,32 +164,29 @@
<p>
Will match either of:
</p>
-<pre class="programlisting">
-<span class="identifier">aa</span>
+<pre class="programlisting"><span class="identifier">aa</span>
<span class="identifier">aaa</span>
</pre>
<p>
But neither of:
</p>
-<pre class="programlisting">
-<span class="identifier">a</span>
+<pre class="programlisting"><span class="identifier">a</span>
<span class="identifier">aaaa</span>
</pre>
<p>
It is an error to use a repeat operator, if the preceding construct can not
be repeated, for example:
</p>
-<pre class="programlisting">
-<span class="identifier">a</span><span class="special">(*)</span>
+<pre class="programlisting"><span class="identifier">a</span><span class="special">(*)</span>
</pre>
<p>
- Will raise an error, as there is nothing for the <tt class="computeroutput"><span class="special">*</span></tt>
+ Will raise an error, as there is nothing for the <code class="computeroutput"><span class="special">*</span></code>
operator to be applied to.
</p>
-<a name="boost_regex.syntax.basic_extended.back_references_"></a><h4>
-<a name="id471342"></a>
+<a name="boost_regex.syntax.basic_extended.back_references_"></a><h5>
+<a name="id505058"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.back_references_">Back references:</a>
- </h4>
+ </h5>
<p>
An escape character followed by a digit <span class="emphasis"><em>n</em></span>, where <span class="emphasis"><em>n</em></span>
is in the range 1-9, matches the same string that was matched by sub-expression
@@ -203,43 +196,41 @@
<p>
Will match the string:
</p>
-<pre class="programlisting">
-<span class="identifier">aaabbaaa</span>
+<pre class="programlisting"><span class="identifier">aaabbaaa</span>
</pre>
<p>
But not the string:
</p>
-<pre class="programlisting">
-<span class="identifier">aaabba</span>
+<pre class="programlisting"><span class="identifier">aaabba</span>
</pre>
<div class="caution"><table border="0" summary="Caution">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Caution]" src="../../../../../../doc/html/images/caution.png"></td>
<th align="left">Caution</th>
</tr>
-<tr><td colspan="2" align="left" valign="top"><p>
+<tr><td align="left" valign="top"><p>
The POSIX standard does not support back-references for "extended"
regular expressions, this is a compatible extension to that standard.
</p></td></tr>
</table></div>
-<a name="boost_regex.syntax.basic_extended.alternation"></a><h4>
-<a name="id471440"></a>
+<a name="boost_regex.syntax.basic_extended.alternation"></a><h5>
+<a name="id505152"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.alternation">Alternation</a>
- </h4>
+ </h5>
<p>
- The <tt class="computeroutput"><span class="special">|</span></tt> operator will match either
- of its arguments, so for example: <tt class="computeroutput"><span class="identifier">abc</span><span class="special">|</span><span class="identifier">def</span></tt> will
+ The <code class="computeroutput"><span class="special">|</span></code> operator will match either
+ of its arguments, so for example: <code class="computeroutput"><span class="identifier">abc</span><span class="special">|</span><span class="identifier">def</span></code> will
match either "abc" or "def".
</p>
<p>
- Parenthesis can be used to group alternations, for example: <tt class="computeroutput"><span class="identifier">ab</span><span class="special">(</span><span class="identifier">d</span><span class="special">|</span><span class="identifier">ef</span><span class="special">)</span></tt>
+ Parenthesis can be used to group alternations, for example: <code class="computeroutput"><span class="identifier">ab</span><span class="special">(</span><span class="identifier">d</span><span class="special">|</span><span class="identifier">ef</span><span class="special">)</span></code>
will match either of "abd" or "abef".
</p>
-<a name="boost_regex.syntax.basic_extended.character_sets_"></a><h4>
-<a name="id471545"></a>
+<a name="boost_regex.syntax.basic_extended.character_sets_"></a><h5>
+<a name="id505256"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.character_sets_">Character
sets:</a>
- </h4>
+ </h5>
<p>
A character set is a bracket-expression starting with [ and ending with ],
it defines a set of characters, and matches any single character that is
@@ -248,109 +239,107 @@
<p>
A bracket expression may contain any combination of the following:
</p>
-<a name="boost_regex.syntax.basic_extended.single_characters_"></a><h5>
-<a name="id471583"></a>
+<a name="boost_regex.syntax.basic_extended.single_characters_"></a><h6>
+<a name="id505292"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.single_characters_">Single
characters:</a>
- </h5>
+ </h6>
<p>
- For example <tt class="computeroutput"><span class="special">[</span><span class="identifier">abc</span><span class="special">]</span></tt>, will match any of the characters 'a', 'b',
+ For example <code class="computeroutput"><span class="special">[</span><span class="identifier">abc</span><span class="special">]</span></code>, will match any of the characters 'a', 'b',
or 'c'.
</p>
-<a name="boost_regex.syntax.basic_extended.character_ranges_"></a><h5>
-<a name="id471636"></a>
+<a name="boost_regex.syntax.basic_extended.character_ranges_"></a><h6>
+<a name="id505342"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.character_ranges_">Character
ranges:</a>
- </h5>
+ </h6>
<p>
- For example <tt class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></tt>
+ For example <code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></code>
will match any single character in the range 'a' to 'c'. By default, for
POSIX-Extended regular expressions, a character <span class="emphasis"><em>x</em></span> is
within the range <span class="emphasis"><em>y</em></span> to <span class="emphasis"><em>z</em></span>, if it
collates within that range; this results in locale specific behavior . This
- behavior can be turned off by unsetting the <tt class="computeroutput"><span class="identifier">collate</span></tt>
- option flag - in
+ behavior can be turned off by unsetting the <code class="computeroutput"><span class="identifier">collate</span></code>
+ option flag - in
which case whether a character appears within a range is determined by comparing
the code points of the characters only.
</p>
-<a name="boost_regex.syntax.basic_extended.negation_"></a><h5>
-<a name="id471737"></a>
+<a name="boost_regex.syntax.basic_extended.negation_"></a><h6>
+<a name="id505443"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.negation_">Negation:</a>
- </h5>
+ </h6>
<p>
If the bracket-expression begins with the ^ character, then it matches the
- complement of the characters it contains, for example <tt class="computeroutput"><span class="special">[^</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></tt> matches any character that is not in the
- range <tt class="computeroutput"><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span></tt>.
+ complement of the characters it contains, for example <code class="computeroutput"><span class="special">[^</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></code> matches any character that is not in the
+ range <code class="computeroutput"><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span></code>.
</p>
-<a name="boost_regex.syntax.basic_extended.character_classes_"></a><h5>
-<a name="id471821"></a>
+<a name="boost_regex.syntax.basic_extended.character_classes_"></a><h6>
+<a name="id505526"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.character_classes_">Character
classes:</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">name</span><span class="special">:]]</span></tt>
- matches the named character class "name", for example <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></tt> matches any lower case character. See
- <a href="character_classes.html" title=" Character Class
- Names">character class names</a>.
+ An expression of the form <code class="computeroutput"><span class="special">[[:</span><span class="identifier">name</span><span class="special">:]]</span></code>
+ matches the named character class "name", for example <code class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></code> matches any lower case character. See
+ character class names.
</p>
-<a name="boost_regex.syntax.basic_extended.collating_elements_"></a><h5>
-<a name="id471905"></a>
+<a name="boost_regex.syntax.basic_extended.collating_elements_"></a><h6>
+<a name="id505608"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.collating_elements_">Collating
Elements:</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[.</span><span class="identifier">col</span><span class="special">.]</span></tt> matches
+ An expression of the form <code class="computeroutput"><span class="special">[[.</span><span class="identifier">col</span><span class="special">.]</span></code> matches
the collating element <span class="emphasis"><em>col</em></span>. A collating element is any
single character, or any sequence of characters that collates as a single
unit. Collating elements may also be used as the end point of a range, for
- example: <tt class="computeroutput"><span class="special">[[.</span><span class="identifier">ae</span><span class="special">.]-</span><span class="identifier">c</span><span class="special">]</span></tt>
+ example: <code class="computeroutput"><span class="special">[[.</span><span class="identifier">ae</span><span class="special">.]-</span><span class="identifier">c</span><span class="special">]</span></code>
matches the character sequence "ae", plus any single character
in the range "ae"-c, assuming that "ae" is treated as
a single collating element in the current locale.
</p>
<p>
Collating elements may be used in place of escapes (which are not normally
- allowed inside character sets), for example <tt class="computeroutput"><span class="special">[[.^.]</span><span class="identifier">abc</span><span class="special">]</span></tt> would
+ allowed inside character sets), for example <code class="computeroutput"><span class="special">[[.^.]</span><span class="identifier">abc</span><span class="special">]</span></code> would
match either one of the characters 'abc^'.
</p>
<p>
- As an extension, a collating element may also be specified via its symbolic name, for example:
+ As an extension, a collating element may also be specified via its symbolic name, for example:
</p>
-<pre class="programlisting">
-<span class="special">[[.</span><span class="identifier">NUL</span><span class="special">.]]</span>
+<pre class="programlisting"><span class="special">[[.</span><span class="identifier">NUL</span><span class="special">.]]</span>
</pre>
<p>
matches a NUL character.
</p>
-<a name="boost_regex.syntax.basic_extended.equivalence_classes_"></a><h5>
-<a name="id472066"></a>
+<a name="boost_regex.syntax.basic_extended.equivalence_classes_"></a><h6>
+<a name="id505770"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.equivalence_classes_">Equivalence
classes:</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[=</span><span class="identifier">col</span><span class="special">=]]</span></tt>,
+ An expression of the form <code class="computeroutput"><span class="special">[[=</span><span class="identifier">col</span><span class="special">=]]</span></code>,
matches any character or collating element whose primary sort key is the
same as that for collating element <span class="emphasis"><em>col</em></span>, as with colating
- elements the name <span class="emphasis"><em>col</em></span> may be a <a href="collating_names.html" title=" Collating Names">symbolic
+ elements the name <span class="emphasis"><em>col</em></span> may be a <a href="collating_names.html" title="Collating Names">symbolic
name</a>. A primary sort key is one that ignores case, accentation, or
- locale-specific tailorings; so for example <tt class="computeroutput"><span class="special">[[=</span><span class="identifier">a</span><span class="special">=]]</span></tt> matches
+ locale-specific tailorings; so for example <code class="computeroutput"><span class="special">[[=</span><span class="identifier">a</span><span class="special">=]]</span></code> matches
any of the characters: a, À, Á, Â, Ã, Ä, Å, A, à, á, â, ã, ä and å. Unfortunately implementation
of this is reliant on the platform's collation and localisation support;
this feature can not be relied upon to work portably across all platforms,
or even all locales on one platform.
</p>
-<a name="boost_regex.syntax.basic_extended.combinations_"></a><h5>
-<a name="id472176"></a>
+<a name="boost_regex.syntax.basic_extended.combinations_"></a><h6>
+<a name="id505874"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.combinations_">Combinations:</a>
- </h5>
+ </h6>
<p>
All of the above can be combined in one character set declaration, for example:
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">[.</span><span class="identifier">NUL</span><span class="special">.]]</span></tt>.
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">[.</span><span class="identifier">NUL</span><span class="special">.]]</span></code>.
</p>
-<a name="boost_regex.syntax.basic_extended.escapes"></a><h4>
-<a name="id472256"></a>
+<a name="boost_regex.syntax.basic_extended.escapes"></a><h5>
+<a name="id505953"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.escapes">Escapes</a>
- </h4>
+ </h5>
<p>
The POSIX standard defines no escape sequences for POSIX-Extended regular
expressions, except that:
@@ -365,7 +354,7 @@
<li>
An escape inside a character class declaration shall match itself: in other
words the escape character is not "special" inside a character
- class declaration; so <tt class="computeroutput"><span class="special">[\^]</span></tt>
+ class declaration; so <code class="computeroutput"><span class="special">[\^]</span></code>
will match either a literal '\' or a '^'.
</li>
</ul></div>
@@ -373,11 +362,11 @@
However, that's rather restrictive, so the following standard-compatible
extensions are also supported by Boost.Regex:
</p>
-<a name="boost_regex.syntax.basic_extended.escapes_matching_a_specific_character"></a><h5>
-<a name="id472326"></a>
+<a name="boost_regex.syntax.basic_extended.escapes_matching_a_specific_character"></a><h6>
+<a name="id506024"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.escapes_matching_a_specific_character">Escapes
matching a specific character</a>
- </h5>
+ </h6>
<p>
The following escape sequences are all synonyms for single characters:
</p>
@@ -556,17 +545,17 @@
<td>
<p>
Matches the single character which has the symbolic name name. For
- example <tt class="computeroutput"><span class="special">\\</span><span class="identifier">N</span><span class="special">{</span><span class="identifier">newline</span><span class="special">}</span></tt> matches the single character \n.
+ example <code class="computeroutput"><span class="special">\\</span><span class="identifier">N</span><span class="special">{</span><span class="identifier">newline</span><span class="special">}</span></code> matches the single character \n.
</p>
</td>
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.basic_extended._quot_single_character_quot__character_classes_"></a><h5>
-<a name="id472676"></a>
+<a name="boost_regex.syntax.basic_extended._quot_single_character_quot__character_classes_"></a><h6>
+<a name="id506371"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended._quot_single_character_quot__character_classes_">"Single
character" character classes:</a>
- </h5>
+ </h6>
<p>
Any escaped character <span class="emphasis"><em>x</em></span>, if <span class="emphasis"><em>x</em></span> is
the name of a character class shall match any character that is a member
@@ -597,130 +586,130 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">d</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">d</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">l</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">l</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">s</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">s</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">space</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">space</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">u</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">u</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">upper</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">upper</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">w</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">w</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">word</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">word</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">D</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">D</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">digit</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">digit</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">L</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">L</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">lower</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">lower</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">S</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">S</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">space</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">space</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">U</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">U</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">upper</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">upper</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">W</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">W</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">word</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">word</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.basic_extended.character_properties"></a><h5>
-<a name="id473310"></a>
+<a name="boost_regex.syntax.basic_extended.character_properties"></a><h6>
+<a name="id507003"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.character_properties">Character
Properties</a>
- </h5>
+ </h6>
<p>
The character property names in the following table are all equivalent to
the names used in character classes.
@@ -752,7 +741,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">pX</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">pX</span></code>
</p>
</td>
<td>
@@ -762,14 +751,14 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">X</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">X</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></code>
</p>
</td>
<td>
@@ -779,14 +768,14 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">Name</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">Name</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">PX</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">PX</span></code>
</p>
</td>
<td>
@@ -796,14 +785,14 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">X</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">X</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">P</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">P</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></code>
</p>
</td>
<td>
@@ -813,20 +802,20 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">Name</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">Name</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
<p>
- For example <tt class="computeroutput"><span class="special">\</span><span class="identifier">pd</span></tt>
- matches any "digit" character, as does <tt class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">digit</span><span class="special">}</span></tt>.
+ For example <code class="computeroutput"><span class="special">\</span><span class="identifier">pd</span></code>
+ matches any "digit" character, as does <code class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">digit</span><span class="special">}</span></code>.
</p>
-<a name="boost_regex.syntax.basic_extended.word_boundaries"></a><h5>
-<a name="id473712"></a>
+<a name="boost_regex.syntax.basic_extended.word_boundaries"></a><h6>
+<a name="id507404"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.word_boundaries">Word Boundaries</a>
- </h5>
+ </h6>
<p>
The following escape sequences match the boundaries of words:
</p>
@@ -851,7 +840,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\<</span></tt>
+ <code class="computeroutput"><span class="special">\<</span></code>
</p>
</td>
<td>
@@ -863,7 +852,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\></span></tt>
+ <code class="computeroutput"><span class="special">\></span></code>
</p>
</td>
<td>
@@ -875,7 +864,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">b</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">b</span></code>
</p>
</td>
<td>
@@ -887,7 +876,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">B</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">B</span></code>
</p>
</td>
<td>
@@ -898,11 +887,11 @@
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.basic_extended.buffer_boundaries"></a><h5>
-<a name="id473908"></a>
+<a name="boost_regex.syntax.basic_extended.buffer_boundaries"></a><h6>
+<a name="id507597"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.buffer_boundaries">Buffer
boundaries</a>
- </h5>
+ </h6>
<p>
The following match only at buffer boundaries: a "buffer" in this
context is the whole of the input text that is being matched against (note
@@ -953,7 +942,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">A</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">A</span></code>
</p>
</td>
<td>
@@ -965,7 +954,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">z</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">z</span></code>
</p>
</td>
<td>
@@ -977,50 +966,49 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">Z</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">Z</span></code>
</p>
</td>
<td>
<p>
Matches an optional sequence of newlines at the end of a buffer:
- equivalent to the regular expression <tt class="computeroutput"><span class="special">\</span><span class="identifier">n</span><span class="special">*\</span><span class="identifier">z</span></tt>
+ equivalent to the regular expression <code class="computeroutput"><span class="special">\</span><span class="identifier">n</span><span class="special">*\</span><span class="identifier">z</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.basic_extended.continuation_escape"></a><h5>
-<a name="id474144"></a>
+<a name="boost_regex.syntax.basic_extended.continuation_escape"></a><h6>
+<a name="id507832"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.continuation_escape">Continuation
Escape</a>
- </h5>
+ </h6>
<p>
- The sequence <tt class="computeroutput"><span class="special">\</span><span class="identifier">G</span></tt>
+ The sequence <code class="computeroutput"><span class="special">\</span><span class="identifier">G</span></code>
matches only at the end of the last match found, or at the start of the text
being matched if no previous match was found. This escape useful if you're
iterating over the matches contained within a text, and you want each subsequence
match to start where the last one ended.
</p>
-<a name="boost_regex.syntax.basic_extended.quoting_escape"></a><h5>
-<a name="id474196"></a>
+<a name="boost_regex.syntax.basic_extended.quoting_escape"></a><h6>
+<a name="id507882"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.quoting_escape">Quoting
escape</a>
- </h5>
+ </h6>
<p>
- The escape sequence <tt class="computeroutput"><span class="special">\</span><span class="identifier">Q</span></tt>
+ The escape sequence <code class="computeroutput"><span class="special">\</span><span class="identifier">Q</span></code>
begins a "quoted sequence": all the subsequent characters are treated
- as literals, until either the end of the regular expression or <tt class="computeroutput"><span class="special">\</span><span class="identifier">E</span></tt> is found.
- For example the expression: <tt class="computeroutput"><span class="special">\</span><span class="identifier">Q</span><span class="special">\*+\</span><span class="identifier">Ea</span><span class="special">+</span></tt> would match either of:
+ as literals, until either the end of the regular expression or <code class="computeroutput"><span class="special">\</span><span class="identifier">E</span></code> is found.
+ For example the expression: <code class="computeroutput"><span class="special">\</span><span class="identifier">Q</span><span class="special">\*+\</span><span class="identifier">Ea</span><span class="special">+</span></code> would match either of:
</p>
-<pre class="programlisting">
-<span class="special">\*+</span><span class="identifier">a</span>
+<pre class="programlisting"><span class="special">\*+</span><span class="identifier">a</span>
<span class="special">\*+</span><span class="identifier">aaa</span>
</pre>
-<a name="boost_regex.syntax.basic_extended.unicode_escapes"></a><h5>
-<a name="id474322"></a>
+<a name="boost_regex.syntax.basic_extended.unicode_escapes"></a><h6>
+<a name="id508005"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.unicode_escapes">Unicode
escapes</a>
- </h5>
+ </h6>
<div class="informaltable"><table class="table">
<colgroup>
<col>
@@ -1042,7 +1030,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">C</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">C</span></code>
</p>
</td>
<td>
@@ -1055,7 +1043,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">X</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">X</span></code>
</p>
</td>
<td>
@@ -1067,40 +1055,40 @@
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.basic_extended.any_other_escape"></a><h5>
-<a name="id474456"></a>
+<a name="boost_regex.syntax.basic_extended.any_other_escape"></a><h6>
+<a name="id508138"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.any_other_escape">Any other
escape</a>
- </h5>
+ </h6>
<p>
Any other escape sequence matches the character that is escaped, for example
\@ matches a literal '@'.
</p>
-<a name="boost_regex.syntax.basic_extended.operator_precedence"></a><h4>
-<a name="id474488"></a>
+<a name="boost_regex.syntax.basic_extended.operator_precedence"></a><h5>
+<a name="id508168"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.operator_precedence">Operator
precedence</a>
- </h4>
+ </h5>
<p>
The order of precedence for of operators is as follows:
</p>
<div class="orderedlist"><ol type="1">
<li>
- Collation-related bracket symbols <tt class="computeroutput"><span class="special">[==]</span>
- <span class="special">[::]</span> <span class="special">[..]</span></tt>
+ Collation-related bracket symbols <code class="computeroutput"><span class="special">[==]</span>
+ <span class="special">[::]</span> <span class="special">[..]</span></code>
</li>
<li>
- Escaped characters <tt class="computeroutput"><span class="special">\</span></tt>
+ Escaped characters <code class="computeroutput"><span class="special">\</span></code>
</li>
<li>
- Character set (bracket expression) <tt class="computeroutput"><span class="special">[]</span></tt>
+ Character set (bracket expression) <code class="computeroutput"><span class="special">[]</span></code>
</li>
<li>
- Grouping <tt class="computeroutput"><span class="special">()</span></tt>
+ Grouping <code class="computeroutput"><span class="special">()</span></code>
</li>
<li>
- Single-character-ERE duplication <tt class="computeroutput"><span class="special">*</span>
- <span class="special">+</span> <span class="special">?</span> <span class="special">{</span><span class="identifier">m</span><span class="special">,</span><span class="identifier">n</span><span class="special">}</span></tt>
+ Single-character-ERE duplication <code class="computeroutput"><span class="special">*</span>
+ <span class="special">+</span> <span class="special">?</span> <span class="special">{</span><span class="identifier">m</span><span class="special">,</span><span class="identifier">n</span><span class="special">}</span></code>
</li>
<li>
Concatenation
@@ -1109,50 +1097,48 @@
Anchoring ^$
</li>
<li>
- Alternation <tt class="computeroutput"><span class="special">|</span></tt>
+ Alternation <code class="computeroutput"><span class="special">|</span></code>
</li>
</ol></div>
-<a name="boost_regex.syntax.basic_extended.what_gets_matched"></a><h4>
-<a name="id474680"></a>
+<a name="boost_regex.syntax.basic_extended.what_gets_matched"></a><h5>
+<a name="id508357"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.what_gets_matched">What
Gets Matched</a>
- </h4>
+ </h5>
<p>
When there is more that one way to match a regular expression, the "best"
- possible match is obtained using the <a href="leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule">leftmost-longest
+ possible match is obtained using the <a href="leftmost_longest_rule.html" title="The Leftmost Longest Rule">leftmost-longest
rule</a>.
</p>
-<a name="boost_regex.syntax.basic_extended.variations"></a><h3>
-<a name="id474721"></a>
+<a name="boost_regex.syntax.basic_extended.variations"></a><h4>
+<a name="id508397"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.variations">Variations</a>
- </h3>
-<a name="boost_regex.syntax.basic_extended.egrep"></a><h4>
-<a name="id474744"></a>
- Egrep
</h4>
+<a name="boost_regex.syntax.basic_extended.egrep"></a><h5>
+<a name="id508420"></a>
+ Egrep
+ </h5>
<p>
- When an expression is compiled with the <a href="../ref/syntax_option_type.html" title=" syntax_option_type">flag
- <tt class="computeroutput"><span class="identifier">egrep</span></tt></a> set, then the
+ When an expression is compiled with the <a href="../ref/syntax_option_type.html" title="syntax_option_type">flag
+ <code class="computeroutput"><span class="identifier">egrep</span></code></a> set, then the
expression is treated as a newline separated list of <a href="basic_extended.html#boost_regex.posix_extended_syntax">POSIX-Extended
expressions</a>, a match is found if any of the expressions in the list
match, for example:
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e</span><span class="special">(</span><span class="string">"abc\ndef"</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">egrep</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e</span><span class="special">(</span><span class="string">"abc\ndef"</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">egrep</span><span class="special">);</span>
</pre>
<p>
will match either of the POSIX-Basic expressions "abc" or "def".
</p>
<p>
As its name suggests, this behavior is consistent with the Unix utility
- <tt class="computeroutput"><span class="identifier">egrep</span></tt>, and with grep when
+ <code class="computeroutput"><span class="identifier">egrep</span></code>, and with grep when
used with the -E option.
</p>
-<a name="boost_regex.syntax.basic_extended.awk"></a><h4>
-<a name="id474906"></a>
+<a name="boost_regex.syntax.basic_extended.awk"></a><h5>
+<a name="id508578"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.awk">awk</a>
- </h4>
+ </h5>
<p>
In addition to the <a href="basic_extended.html#boost_regex.posix_extended_syntax">POSIX-Extended
features</a> the escape character is special inside a character class
@@ -1163,26 +1149,23 @@
specification are required to be supported - however Boost.Regex supports
these by default anyway.
</p>
-<a name="boost_regex.syntax.basic_extended.options"></a><h3>
-<a name="id474953"></a>
+<a name="boost_regex.syntax.basic_extended.options"></a><h4>
+<a name="id508625"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.options">Options</a>
- </h3>
+ </h4>
<p>
- There are a <a href="../ref/syntax_option_type/syntax_option_type_extended.html" title="
- Options for POSIX Extended Regular Expressions">variety
- of flags</a> that may be combined with the <tt class="computeroutput"><span class="identifier">extended</span></tt>
- and <tt class="computeroutput"><span class="identifier">egrep</span></tt> options when constructing
- the regular expression, in particular note that the <a href="../ref/syntax_option_type/syntax_option_type_extended.html" title="
- Options for POSIX Extended Regular Expressions"><tt class="computeroutput"><span class="identifier">newline_alt</span></tt></a> option alters the syntax,
- while the <a href="../ref/syntax_option_type/syntax_option_type_extended.html" title="
- Options for POSIX Extended Regular Expressions"><tt class="computeroutput"><span class="identifier">collate</span></tt>, <tt class="computeroutput"><span class="identifier">nosubs</span></tt>
- and <tt class="computeroutput"><span class="identifier">icase</span></tt> options</a>
+ There are a <a href="../ref/syntax_option_type/syntax_option_type_extended.html" title="Options for POSIX Extended Regular Expressions">variety
+ of flags</a> that may be combined with the <code class="computeroutput"><span class="identifier">extended</span></code>
+ and <code class="computeroutput"><span class="identifier">egrep</span></code> options when constructing
+ the regular expression, in particular note that the newline_alt
option alters the syntax,
+ while the <a href="../ref/syntax_option_type/syntax_option_type_extended.html" title="Options for POSIX Extended Regular Expressions"><code class="computeroutput"><span class="identifier">collate</span></code>, <code class="computeroutput"><span class="identifier">nosubs</span></code>
+ and <code class="computeroutput"><span class="identifier">icase</span></code> options</a>
modify how the case and locale sensitivity are to be applied.
</p>
-<a name="boost_regex.syntax.basic_extended.references"></a><h3>
-<a name="id475084"></a>
+<a name="boost_regex.syntax.basic_extended.references"></a><h4>
+<a name="id508753"></a>
<a href="basic_extended.html#boost_regex.syntax.basic_extended.references">References</a>
- </h3>
+ </h4>
<p>
<a href="http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap09.html" target="_top">IEEE
Std 1003.1-2001, Portable Operating System Interface (POSIX ), Base Definitions
@@ -1201,10 +1184,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/basic_syntax.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/basic_syntax.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/basic_syntax.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> POSIX Basic Regular
- Expression Syntax</title>
+<title>POSIX Basic Regular Expression Syntax</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax.html" title=" Regular Expression Syntax">
-<link rel="prev" href="basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax">
-<link rel="next" href="character_classes.html" title=" Character Class
- Names">
+<link rel="up" href="../syntax.html" title="Regular Expression Syntax">
+<link rel="prev" href="basic_extended.html" title="POSIX Extended Regular Expression Syntax">
+<link rel="next" href="character_classes.html" title="Character Class Names">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,59 +24,58 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.syntax.basic_syntax"></a><a href="basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax"> POSIX Basic Regular
- Expression Syntax</a></h3></div></div></div>
-<a name="boost_regex.syntax.basic_syntax.synopsis"></a><h3>
-<a name="id475172"></a>
+<a name="boost_regex.syntax.basic_syntax"></a><a href="basic_syntax.html" title="POSIX Basic Regular Expression Syntax"> POSIX Basic Regular
+ Expression Syntax</a>
+</h3></div></div></div>
+<a name="boost_regex.syntax.basic_syntax.synopsis"></a><h4>
+<a name="id508835"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.synopsis">Synopsis</a>
- </h3>
+ </h4>
<p>
- The POSIX-Basic regular expression syntax is used by the Unix utility <tt class="computeroutput"><span class="identifier">sed</span></tt>, and variations are used by <tt class="computeroutput"><span class="identifier">grep</span></tt> and <tt class="computeroutput"><span class="identifier">emacs</span></tt>.
+ The POSIX-Basic regular expression syntax is used by the Unix utility <code class="computeroutput"><span class="identifier">sed</span></code>, and variations are used by <code class="computeroutput"><span class="identifier">grep</span></code> and <code class="computeroutput"><span class="identifier">emacs</span></code>.
You can construct POSIX basic regular expressions in Boost.Regex by passing
- the flag <tt class="computeroutput"><span class="identifier">basic</span></tt> to the regex
- constructor (see syntax_option_type), for example:
+ the flag <code class="computeroutput"><span class="identifier">basic</span></code> to the regex
+ constructor (see syntax_option_type
), for example:
</p>
-<pre class="programlisting">
-<span class="comment">// e1 is a case sensitive POSIX-Basic expression:
+<pre class="programlisting"><span class="comment">// e1 is a case sensitive POSIX-Basic expression:
</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e1</span><span class="special">(</span><span class="identifier">my_expression</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">basic</span><span class="special">);</span>
<span class="comment">// e2 a case insensitive POSIX-Basic expression:
</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e2</span><span class="special">(</span><span class="identifier">my_expression</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">basic</span><span class="special">|</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">icase</span><span class="special">);</span>
</pre>
<a name="boost_regex.posix_basic"></a><p>
</p>
-<a name="boost_regex.syntax.basic_syntax.posix_basic_syntax"></a><h3>
-<a name="id475467"></a>
+<a name="boost_regex.syntax.basic_syntax.posix_basic_syntax"></a><h4>
+<a name="id509127"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.posix_basic_syntax">POSIX
Basic Syntax</a>
- </h3>
+ </h4>
<p>
In POSIX-Basic regular expressions, all characters are match themselves except
for the following special characters:
</p>
<pre class="programlisting">.[\*^$</pre>
-<a name="boost_regex.syntax.basic_syntax.wildcard_"></a><h4>
-<a name="id475508"></a>
+<a name="boost_regex.syntax.basic_syntax.wildcard_"></a><h5>
+<a name="id509166"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.wildcard_">Wildcard:</a>
- </h4>
+ </h5>
<p>
The single character '.' when used outside of a character set will match
any single character except:
</p>
<div class="itemizedlist"><ul type="disc">
<li>
- The NULL character when the flag <tt class="computeroutput"><span class="identifier">match_no_dot_null</span></tt>
+ The NULL character when the flag <code class="computeroutput"><span class="identifier">match_no_dot_null</span></code>
is passed to the matching algorithms.
</li>
<li>
- The newline character when the flag <tt class="computeroutput"><span class="identifier">match_not_dot_newline</span></tt>
+ The newline character when the flag <code class="computeroutput"><span class="identifier">match_not_dot_newline</span></code>
is passed to the matching algorithms.
</li>
</ul></div>
-<a name="boost_regex.syntax.basic_syntax.anchors_"></a><h4>
-<a name="id475578"></a>
+<a name="boost_regex.syntax.basic_syntax.anchors_"></a><h5>
+<a name="id509235"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.anchors_">Anchors:</a>
- </h4>
+ </h5>
<p>
A '^' character shall match the start of a line when used as the first character
of an expression, or the first character of a sub-expression.
@@ -88,30 +84,30 @@
A '$' character shall match the end of a line when used as the last character
of an expression, or the last character of a sub-expression.
</p>
-<a name="boost_regex.syntax.basic_syntax.marked_sub_expressions_"></a><h4>
-<a name="id475615"></a>
+<a name="boost_regex.syntax.basic_syntax.marked_sub_expressions_"></a><h5>
+<a name="id509271"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.marked_sub_expressions_">Marked
sub-expressions:</a>
- </h4>
+ </h5>
<p>
- A section beginning <tt class="computeroutput"><span class="special">\(</span></tt> and ending
- <tt class="computeroutput"><span class="special">\)</span></tt> acts as a marked sub-expression.
+ A section beginning <code class="computeroutput"><span class="special">\(</span></code> and ending
+ <code class="computeroutput"><span class="special">\)</span></code> acts as a marked sub-expression.
Whatever matched the sub-expression is split out in a separate field by the
matching algorithms. Marked sub-expressions can also repeated, or referred-to
by a back-reference.
</p>
-<a name="boost_regex.syntax.basic_syntax.repeats_"></a><h4>
-<a name="id475674"></a>
+<a name="boost_regex.syntax.basic_syntax.repeats_"></a><h5>
+<a name="id509328"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.repeats_">Repeats:</a>
- </h4>
+ </h5>
<p>
Any atom (a single character, a marked sub-expression, or a character class)
can be repeated with the * operator.
</p>
<p>
- For example <tt class="computeroutput"><span class="identifier">a</span><span class="special">*</span></tt>
+ For example <code class="computeroutput"><span class="identifier">a</span><span class="special">*</span></code>
will match any number of letter a's repeated zero or more times (an atom
- repeated zero times matches an empty string), so the expression <tt class="computeroutput"><span class="identifier">a</span><span class="special">*</span><span class="identifier">b</span></tt>
+ repeated zero times matches an empty string), so the expression <code class="computeroutput"><span class="identifier">a</span><span class="special">*</span><span class="identifier">b</span></code>
will match any of the following:
</p>
<pre class="programlisting">b
@@ -122,15 +118,15 @@
An atom can also be repeated with a bounded repeat:
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">\{</span><span class="identifier">n</span><span class="special">\}</span></tt> Matches
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">\{</span><span class="identifier">n</span><span class="special">\}</span></code> Matches
'a' repeated exactly n times.
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">\{</span><span class="identifier">n</span><span class="special">,\}</span></tt> Matches
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">\{</span><span class="identifier">n</span><span class="special">,\}</span></code> Matches
'a' repeated n or more times.
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">\{</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">m</span><span class="special">\}</span></tt> Matches 'a' repeated between n and m times
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">\{</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">m</span><span class="special">\}</span></code> Matches 'a' repeated between n and m times
inclusive.
</p>
<p>
@@ -158,10 +154,10 @@
Will raise an error, as there is nothing for the * operator to be applied
to.
</p>
-<a name="boost_regex.syntax.basic_syntax.back_references_"></a><h4>
-<a name="id475920"></a>
+<a name="boost_regex.syntax.basic_syntax.back_references_"></a><h5>
+<a name="id509572"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.back_references_">Back references:</a>
- </h4>
+ </h5>
<p>
An escape character followed by a digit <span class="emphasis"><em>n</em></span>, where <span class="emphasis"><em>n</em></span>
is in the range 1-9, matches the same string that was matched by sub-expression
@@ -176,11 +172,11 @@
But not the string:
</p>
<pre class="programlisting">aaabba</pre>
-<a name="boost_regex.syntax.basic_syntax.character_sets_"></a><h4>
-<a name="id475996"></a>
+<a name="boost_regex.syntax.basic_syntax.character_sets_"></a><h5>
+<a name="id509646"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.character_sets_">Character
sets:</a>
- </h4>
+ </h5>
<p>
A character set is a bracket-expression starting with [ and ending with ],
it defines a set of characters, and matches any single character that is
@@ -189,69 +185,68 @@
<p>
A bracket expression may contain any combination of the following:
</p>
-<a name="boost_regex.syntax.basic_syntax.single_characters_"></a><h5>
-<a name="id476034"></a>
+<a name="boost_regex.syntax.basic_syntax.single_characters_"></a><h6>
+<a name="id509682"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.single_characters_">Single
characters:</a>
- </h5>
+ </h6>
<p>
- For example <tt class="computeroutput"><span class="special">[</span><span class="identifier">abc</span><span class="special">]</span></tt>, will match any of the characters 'a', 'b',
+ For example <code class="computeroutput"><span class="special">[</span><span class="identifier">abc</span><span class="special">]</span></code>, will match any of the characters 'a', 'b',
or 'c'.
</p>
-<a name="boost_regex.syntax.basic_syntax.character_ranges_"></a><h5>
-<a name="id476086"></a>
+<a name="boost_regex.syntax.basic_syntax.character_ranges_"></a><h6>
+<a name="id509732"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.character_ranges_">Character
ranges:</a>
- </h5>
+ </h6>
<p>
- For example <tt class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></tt>
+ For example <code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></code>
will match any single character in the range 'a' to 'c'. By default, for
POSIX-Basic regular expressions, a character <span class="emphasis"><em>x</em></span> is within
the range <span class="emphasis"><em>y</em></span> to <span class="emphasis"><em>z</em></span>, if it collates
within that range; this results in locale specific behavior. This behavior
- can be turned off by unsetting the <tt class="computeroutput"><span class="identifier">collate</span></tt>
+ can be turned off by unsetting the <code class="computeroutput"><span class="identifier">collate</span></code>
option flag when constructing the regular expression - in which case whether
a character appears within a range is determined by comparing the code points
of the characters only.
</p>
-<a name="boost_regex.syntax.basic_syntax.negation_"></a><h5>
-<a name="id476179"></a>
+<a name="boost_regex.syntax.basic_syntax.negation_"></a><h6>
+<a name="id509824"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.negation_">Negation:</a>
- </h5>
+ </h6>
<p>
If the bracket-expression begins with the ^ character, then it matches the
- complement of the characters it contains, for example <tt class="computeroutput"><span class="special">[^</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></tt> matches any character that is not in the
+ complement of the characters it contains, for example <code class="computeroutput"><span class="special">[^</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></code> matches any character that is not in the
range a-c.
</p>
-<a name="boost_regex.syntax.basic_syntax.character_classes_"></a><h5>
-<a name="id476241"></a>
+<a name="boost_regex.syntax.basic_syntax.character_classes_"></a><h6>
+<a name="id509885"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.character_classes_">Character
classes:</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">name</span><span class="special">:]]</span></tt>
- matches the named character class "name", for example <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></tt> matches any lower case character. See
- <a href="character_classes.html" title=" Character Class
- Names">character class names</a>.
+ An expression of the form <code class="computeroutput"><span class="special">[[:</span><span class="identifier">name</span><span class="special">:]]</span></code>
+ matches the named character class "name", for example <code class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></code> matches any lower case character. See
+ character class names.
</p>
-<a name="boost_regex.syntax.basic_syntax.collating_elements_"></a><h5>
-<a name="id476326"></a>
+<a name="boost_regex.syntax.basic_syntax.collating_elements_"></a><h6>
+<a name="id509968"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.collating_elements_">Collating
Elements:</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[.</span><span class="identifier">col</span><span class="special">.]</span></tt> matches
+ An expression of the form <code class="computeroutput"><span class="special">[[.</span><span class="identifier">col</span><span class="special">.]</span></code> matches
the collating element <span class="emphasis"><em>col</em></span>. A collating element is any
single character, or any sequence of characters that collates as a single
unit. Collating elements may also be used as the end point of a range, for
- example: <tt class="computeroutput"><span class="special">[[.</span><span class="identifier">ae</span><span class="special">.]-</span><span class="identifier">c</span><span class="special">]</span></tt>
+ example: <code class="computeroutput"><span class="special">[[.</span><span class="identifier">ae</span><span class="special">.]-</span><span class="identifier">c</span><span class="special">]</span></code>
matches the character sequence "ae", plus any single character
in the rangle "ae"-c, assuming that "ae" is treated as
a single collating element in the current locale.
</p>
<p>
Collating elements may be used in place of escapes (which are not normally
- allowed inside character sets), for example <tt class="computeroutput"><span class="special">[[.^.]</span><span class="identifier">abc</span><span class="special">]</span></tt> would
+ allowed inside character sets), for example <code class="computeroutput"><span class="special">[[.^.]</span><span class="identifier">abc</span><span class="special">]</span></code> would
match either one of the characters 'abc^'.
</p>
<p>
@@ -260,38 +255,38 @@
</p>
<pre class="programlisting">[[.NUL.]]</pre>
<p>
- matches a 'NUL' character. See <a href="collating_names.html" title=" Collating Names">collating
+ matches a 'NUL' character. See <a href="collating_names.html" title="Collating Names">collating
element names</a>.
</p>
-<a name="boost_regex.syntax.basic_syntax.equivalence_classes_"></a><h5>
-<a name="id476472"></a>
+<a name="boost_regex.syntax.basic_syntax.equivalence_classes_"></a><h6>
+<a name="id510116"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.equivalence_classes_">Equivalence
classes:</a>
- </h5>
+ </h6>
<p>
- An expression of theform <tt class="computeroutput"><span class="special">[[=</span><span class="identifier">col</span><span class="special">=]]</span></tt>,
+ An expression of theform <code class="computeroutput"><span class="special">[[=</span><span class="identifier">col</span><span class="special">=]]</span></code>,
matches any character or collating element whose primary sort key is the
same as that for collating element <span class="emphasis"><em>col</em></span>, as with collating
- elements the name <span class="emphasis"><em>col</em></span> may be a <a href="collating_names.html" title=" Collating Names">collating
+ elements the name <span class="emphasis"><em>col</em></span> may be a <a href="collating_names.html" title="Collating Names">collating
symbolic name</a>. A primary sort key is one that ignores case, accentation,
- or locale-specific tailorings; so for example <tt class="computeroutput"><span class="special">[[=</span><span class="identifier">a</span><span class="special">=]]</span></tt> matches
+ or locale-specific tailorings; so for example <code class="computeroutput"><span class="special">[[=</span><span class="identifier">a</span><span class="special">=]]</span></code> matches
any of the characters: a, À, Á, Â, Ã, Ä, Å, A, à, á, â, ã, ä and å. Unfortunately implementation
of this is reliant on the platform's collation and localisation support;
this feature can not be relied upon to work portably across all platforms,
or even all locales on one platform.
</p>
-<a name="boost_regex.syntax.basic_syntax.combinations_"></a><h5>
-<a name="id476585"></a>
+<a name="boost_regex.syntax.basic_syntax.combinations_"></a><h6>
+<a name="id510221"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.combinations_">Combinations:</a>
- </h5>
+ </h6>
<p>
All of the above can be combined in one character set declaration, for example:
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">[.</span><span class="identifier">NUL</span><span class="special">.]].</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">[.</span><span class="identifier">NUL</span><span class="special">.]].</span></code>
</p>
-<a name="boost_regex.syntax.basic_syntax.escapes"></a><h4>
-<a name="id476664"></a>
+<a name="boost_regex.syntax.basic_syntax.escapes"></a><h5>
+<a name="id510299"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.escapes">Escapes</a>
- </h4>
+ </h5>
<p>
With the exception of the escape sequences \{, \}, \(, and \), which are
documented above, an escape followed by any character matches that character.
@@ -300,37 +295,35 @@
<pre class="programlisting">.[\*^$</pre>
<p>
"ordinary". Note that the escape character loses its special meaning
- inside a character set, so <tt class="computeroutput"><span class="special">[\^]</span></tt>
+ inside a character set, so <code class="computeroutput"><span class="special">[\^]</span></code>
will match either a literal '\' or a '^'.
</p>
-<a name="boost_regex.syntax.basic_syntax.what_gets_matched"></a><h3>
-<a name="id476723"></a>
+<a name="boost_regex.syntax.basic_syntax.what_gets_matched"></a><h4>
+<a name="id510356"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.what_gets_matched">What Gets
Matched</a>
- </h3>
+ </h4>
<p>
When there is more that one way to match a regular expression, the "best"
- possible match is obtained using the <a href="leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule">leftmost-longest
+ possible match is obtained using the <a href="leftmost_longest_rule.html" title="The Leftmost Longest Rule">leftmost-longest
rule</a>.
</p>
-<a name="boost_regex.syntax.basic_syntax.variations"></a><h3>
-<a name="id476764"></a>
+<a name="boost_regex.syntax.basic_syntax.variations"></a><h4>
+<a name="id510396"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.variations">Variations</a>
- </h3>
+ </h4>
<a name="boost_regex.grep_syntax"></a><p>
</p>
-<a name="boost_regex.syntax.basic_syntax.grep"></a><h4>
-<a name="id476798"></a>
+<a name="boost_regex.syntax.basic_syntax.grep"></a><h5>
+<a name="id510428"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.grep">Grep</a>
- </h4>
+ </h5>
<p>
- When an expression is compiled with the flag <tt class="computeroutput"><span class="identifier">grep</span></tt>
+ When an expression is compiled with the flag <code class="computeroutput"><span class="identifier">grep</span></code>
set, then the expression is treated as a newline separated list of POSIX-Basic expressions, a match
is found if any of the expressions in the list match, for example:
</p>
-<pre class="programlisting">
-<span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e</span><span class="special">(</span><span class="string">"abc\ndef"</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">grep</span><span class="special">);</span>
+<pre class="programlisting"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e</span><span class="special">(</span><span class="string">"abc\ndef"</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">grep</span><span class="special">);</span>
</pre>
<p>
will match either of the <a href="basic_syntax.html#boost_regex.posix_basic">POSIX-Basic
@@ -339,10 +332,10 @@
<p>
As its name suggests, this behavior is consistent with the Unix utility grep.
</p>
-<a name="boost_regex.syntax.basic_syntax.emacs"></a><h4>
-<a name="id476945"></a>
+<a name="boost_regex.syntax.basic_syntax.emacs"></a><h5>
+<a name="id510572"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.emacs">emacs</a>
- </h4>
+ </h5>
<p>
In addition to the POSIX-Basic features
the following characters are also special:
@@ -616,31 +609,27 @@
according to the <a href="perl_syntax.html#boost_regex.syntax.perl_syntax.what_gets_matched">Perl
"depth first search" rules</a>. Emacs expressions are matched
this way because they contain Perl-like extensions, that do not interact
- well with the <a href="leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule">POSIX-style
+ well with the <a href="leftmost_longest_rule.html" title="The Leftmost Longest Rule">POSIX-style
leftmost-longest rule</a>.
</p>
-<a name="boost_regex.syntax.basic_syntax.options"></a><h3>
-<a name="id477441"></a>
+<a name="boost_regex.syntax.basic_syntax.options"></a><h4>
+<a name="id511068"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.options">Options</a>
- </h3>
+ </h4>
<p>
- There are a <a href="../ref/syntax_option_type/syntax_option_type_basic.html" title="
- Options for POSIX Basic Regular Expressions">variety
- of flags</a> that may be combined with the <tt class="computeroutput"><span class="identifier">basic</span></tt>
- and <tt class="computeroutput"><span class="identifier">grep</span></tt> options when constructing
- the regular expression, in particular note that the <a href="../ref/syntax_option_type/syntax_option_type_basic.html" title="
- Options for POSIX Basic Regular Expressions"><tt class="computeroutput"><span class="identifier">newline_alt</span></tt>, <tt class="computeroutput"><span class="identifier">no_char_classes</span></tt>,
- <tt class="computeroutput"><span class="identifier">no</span><span class="special">-</span><span class="identifier">intervals</span></tt>, <tt class="computeroutput"><span class="identifier">bk_plus_qm</span></tt>
- and <tt class="computeroutput"><span class="identifier">bk_plus_vbar</span></tt></a> options
- all alter the syntax, while the <a href="../ref/syntax_option_type/syntax_option_type_basic.html" title="
- Options for POSIX Basic Regular Expressions"><tt class="computeroutput"><span class="identifier">collate</span></tt> and <tt class="computeroutput"><span class="identifier">icase</span></tt>
+ There are a <a href="../ref/syntax_option_type/syntax_option_type_basic.html" title="Options for POSIX Basic Regular Expressions">variety
+ of flags</a> that may be combined with the <code class="computeroutput"><span class="identifier">basic</span></code>
+ and <code class="computeroutput"><span class="identifier">grep</span></code> options when constructing
+ the regular expression, in particular note that the <a href="../ref/syntax_option_type/syntax_option_type_basic.html" title="Options for POSIX Basic Regular Expressions"><code class="computeroutput"><span class="identifier">newline_alt</span></code>, <code class="computeroutput"><span class="identifier">no_char_classes</span></code>,
+ <code class="computeroutput"><span class="identifier">no</span><span class="special">-</span><span class="identifier">intervals</span></code>, <code class="computeroutput"><span class="identifier">bk_plus_qm</span></code>
+ and <code class="computeroutput"><span class="identifier">bk_plus_vbar</span></code></a> options
+ all alter the syntax, while the <a href="../ref/syntax_option_type/syntax_option_type_basic.html" title="Options for POSIX Basic Regular Expressions"><code class="computeroutput"><span class="identifier">collate</span></code> and <code class="computeroutput"><span class="identifier">icase</span></code>
options</a> modify how the case and locale sensitivity are to be applied.
</p>
-<a name="boost_regex.syntax.basic_syntax.references"></a><h3>
-<a name="id477617"></a>
+<a name="boost_regex.syntax.basic_syntax.references"></a><h4>
+<a name="id511240"></a>
<a href="basic_syntax.html#boost_regex.syntax.basic_syntax.references">References</a>
- </h3>
+ </h4>
<p>
<a href="http://www.opengroup.org/onlinepubs/000095399/basedefs/xbd_chap09.html" target="_top">IEEE
Std 1003.1-2001, Portable Operating System Interface (POSIX ), Base Definitions
@@ -657,10 +646,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Character Class
- Names</title>
+<title>Character Class Names</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax.html" title=" Regular Expression Syntax">
-<link rel="prev" href="basic_syntax.html" title=" POSIX Basic Regular
- Expression Syntax">
-<link rel="next" href="character_classes/std_char_clases.html" title="
- Character Classes that are Always Supported">
+<link rel="up" href="../syntax.html" title="Regular Expression Syntax">
+<link rel="prev" href="basic_syntax.html" title="POSIX Basic Regular Expression Syntax">
+<link rel="next" href="character_classes/std_char_clases.html" title="Character Classes that are Always Supported">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.syntax.character_classes"></a><a href="character_classes.html" title=" Character Class
- Names"> Character Class
- Names</a></h3></div></div></div>
+<a name="boost_regex.syntax.character_classes"></a><a href="character_classes.html" title="Character Class Names"> Character Class
+ Names</a>
+</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section"><a href="character_classes/std_char_clases.html">
Character Classes that are Always Supported</a></span></dt>
@@ -39,10 +36,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/optional_char_class_names.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/optional_char_class_names.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/optional_char_class_names.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Character classes that are supported by Unicode Regular Expressions</title>
+<title>Character classes that are supported by Unicode Regular Expressions</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../character_classes.html" title=" Character Class
- Names">
-<link rel="prev" href="std_char_clases.html" title="
- Character Classes that are Always Supported">
-<link rel="next" href="../collating_names.html" title=" Collating Names">
+<link rel="up" href="../character_classes.html" title="Character Class Names">
+<link rel="prev" href="std_char_clases.html" title="Character Classes that are Always Supported">
+<link rel="next" href="../collating_names.html" title="Collating Names">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,12 +24,12 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.syntax.character_classes.optional_char_class_names"></a><a href="optional_char_class_names.html" title="
- Character classes that are supported by Unicode Regular Expressions">
- Character classes that are supported by Unicode Regular Expressions</a></h4></div></div></div>
+<a name="boost_regex.syntax.character_classes.optional_char_class_names"></a><a href="optional_char_class_names.html" title="Character classes that are supported by Unicode Regular Expressions">
+ Character classes that are supported by Unicode Regular Expressions</a>
+</h4></div></div></div>
<p>
The following character classes are only supported by Unicode Regular Expressions:
- that is those that use the <tt class="computeroutput"><span class="identifier">u32regex</span></tt>
+ that is those that use the <code class="computeroutput"><span class="identifier">u32regex</span></code>
type. The names used are the same as those from Chapter 4 of the Unicode
standard.
</p>
@@ -536,10 +533,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/std_char_clases.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/std_char_clases.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/character_classes/std_char_clases.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,17 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Character Classes that are Always Supported</title>
+<title>Character Classes that are Always Supported</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../character_classes.html" title=" Character Class
- Names">
-<link rel="prev" href="../character_classes.html" title=" Character Class
- Names">
-<link rel="next" href="optional_char_class_names.html" title="
- Character classes that are supported by Unicode Regular Expressions">
+<link rel="up" href="../character_classes.html" title="Character Class Names">
+<link rel="prev" href="../character_classes.html" title="Character Class Names">
+<link rel="next" href="optional_char_class_names.html" title="Character classes that are supported by Unicode Regular Expressions">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -28,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.syntax.character_classes.std_char_clases"></a><a href="std_char_clases.html" title="
- Character Classes that are Always Supported">
- Character Classes that are Always Supported</a></h4></div></div></div>
+<a name="boost_regex.syntax.character_classes.std_char_clases"></a><a href="std_char_clases.html" title="Character Classes that are Always Supported">
+ Character Classes that are Always Supported</a>
+</h4></div></div></div>
<p>
The following character class names are always supported by Boost.Regex:
</p>
@@ -386,10 +382,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Collating Names</title>
+<title>Collating Names</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax.html" title=" Regular Expression Syntax">
-<link rel="prev" href="character_classes/optional_char_class_names.html" title="
- Character classes that are supported by Unicode Regular Expressions">
-<link rel="next" href="collating_names/digraphs.html" title=" Digraphs">
+<link rel="up" href="../syntax.html" title="Regular Expression Syntax">
+<link rel="prev" href="character_classes/optional_char_class_names.html" title="Character classes that are supported by Unicode Regular Expressions">
+<link rel="next" href="collating_names/digraphs.html" title="Digraphs">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.syntax.collating_names"></a> Collating Names</h3></div></div></div>
+<a name="boost_regex.syntax.collating_names"></a> Collating Names
+</h3></div></div></div>
<div class="toc"><dl>
<dt><span class="section"> Digraphs</span></dt>
<dt><span class="section"><a href="collating_names/posix_symbolic_names.html">
@@ -36,10 +36,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/digraphs.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/digraphs.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/digraphs.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,14 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Digraphs</title>
+<title>Digraphs</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../collating_names.html" title=" Collating Names">
-<link rel="prev" href="../collating_names.html" title=" Collating Names">
-<link rel="next" href="posix_symbolic_names.html" title="
- POSIX Symbolic Names">
+<link rel="up" href="../collating_names.html" title="Collating Names">
+<link rel="prev" href="../collating_names.html" title="Collating Names">
+<link rel="next" href="posix_symbolic_names.html" title="POSIX Symbolic Names">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -25,7 +24,8 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.syntax.collating_names.digraphs"></a> Digraphs</h4></div></div></div>
+<a name="boost_regex.syntax.collating_names.digraphs"></a> Digraphs
+</h4></div></div></div>
<p>
The following are treated as valid digraphs when used as a collating name:
</p>
@@ -47,10 +47,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/named_unicode.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/named_unicode.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/named_unicode.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,16 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- Named Unicode Characters</title>
+<title>Named Unicode Characters</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../collating_names.html" title=" Collating Names">
-<link rel="prev" href="posix_symbolic_names.html" title="
- POSIX Symbolic Names">
-<link rel="next" href="../leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule">
+<link rel="up" href="../collating_names.html" title="Collating Names">
+<link rel="prev" href="posix_symbolic_names.html" title="POSIX Symbolic Names">
+<link rel="next" href="../leftmost_longest_rule.html" title="The Leftmost Longest Rule">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -27,12 +24,12 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.syntax.collating_names.named_unicode"></a><a href="named_unicode.html" title="
- Named Unicode Characters">
- Named Unicode Characters</a></h4></div></div></div>
+<a name="boost_regex.syntax.collating_names.named_unicode"></a><a href="named_unicode.html" title="Named Unicode Characters">
+ Named Unicode Characters</a>
+</h4></div></div></div>
<p>
- When using Unicode aware regular expressions
- (with the <tt class="computeroutput"><span class="identifier">u32regex</span></tt> type),
+ When using Unicode aware regular expressions
+ (with the <code class="computeroutput"><span class="identifier">u32regex</span></code> type),
all the normal symbolic names for Unicode characters (those given in Unidata.txt)
are recognised. So for example:
</p>
@@ -43,10 +40,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/posix_symbolic_names.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/posix_symbolic_names.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/collating_names/posix_symbolic_names.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title>
- POSIX Symbolic Names</title>
+<title>POSIX Symbolic Names</title>
<link rel="stylesheet" href="../../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../../index.html" title="Boost.Regex">
-<link rel="up" href="../collating_names.html" title=" Collating Names">
-<link rel="prev" href="digraphs.html" title=" Digraphs">
-<link rel="next" href="named_unicode.html" title="
- Named Unicode Characters">
+<link rel="up" href="../collating_names.html" title="Collating Names">
+<link rel="prev" href="digraphs.html" title="Digraphs">
+<link rel="next" href="named_unicode.html" title="Named Unicode Characters">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h4 class="title">
-<a name="boost_regex.syntax.collating_names.posix_symbolic_names"></a><a href="posix_symbolic_names.html" title="
- POSIX Symbolic Names">
- POSIX Symbolic Names</a></h4></div></div></div>
+<a name="boost_regex.syntax.collating_names.posix_symbolic_names"></a><a href="posix_symbolic_names.html" title="POSIX Symbolic Names">
+ POSIX Symbolic Names</a>
+</h4></div></div></div>
<p>
The following symbolic names are recognised as valid collating element
names, in addition to any single character, this allows you to write for
@@ -973,10 +971,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/leftmost_longest_rule.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/leftmost_longest_rule.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/leftmost_longest_rule.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> The Leftmost
- Longest Rule</title>
+<title>The Leftmost Longest Rule</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax.html" title=" Regular Expression Syntax">
-<link rel="prev" href="collating_names/named_unicode.html" title="
- Named Unicode Characters">
-<link rel="next" href="../format.html" title=" Search and Replace Format String Syntax">
+<link rel="up" href="../syntax.html" title="Regular Expression Syntax">
+<link rel="prev" href="collating_names/named_unicode.html" title="Named Unicode Characters">
+<link rel="next" href="../format.html" title="Search and Replace Format String Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,9 +24,9 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.syntax.leftmost_longest_rule"></a><a href="leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule"> The Leftmost
- Longest Rule</a></h3></div></div></div>
+<a name="boost_regex.syntax.leftmost_longest_rule"></a><a href="leftmost_longest_rule.html" title="The Leftmost Longest Rule"> The Leftmost
+ Longest Rule</a>
+</h3></div></div></div>
<p>
Often there is more than one way of matching a regular expression at a particular
location, for POSIX basic and extended regular expressions, the "best"
@@ -67,10 +65,11 @@
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Perl Regular Expression
- Syntax</title>
+<title>Perl Regular Expression Syntax</title>
<link rel="stylesheet" href="../../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../../index.html" title="Boost.Regex">
-<link rel="up" href="../syntax.html" title=" Regular Expression Syntax">
-<link rel="prev" href="../syntax.html" title=" Regular Expression Syntax">
-<link rel="next" href="basic_extended.html" title=" POSIX Extended Regular
- Expression Syntax">
+<link rel="up" href="../syntax.html" title="Regular Expression Syntax">
+<link rel="prev" href="../syntax.html" title="Regular Expression Syntax">
+<link rel="next" href="basic_extended.html" title="POSIX Extended Regular Expression Syntax">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,156 +24,150 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
-<a name="boost_regex.syntax.perl_syntax"></a><a href="perl_syntax.html" title=" Perl Regular Expression
- Syntax"> Perl Regular Expression
- Syntax</a></h3></div></div></div>
-<a name="boost_regex.syntax.perl_syntax.synopsis"></a><h3>
-<a name="id463745"></a>
+<a name="boost_regex.syntax.perl_syntax"></a><a href="perl_syntax.html" title="Perl Regular Expression Syntax"> Perl Regular Expression
+ Syntax</a>
+</h3></div></div></div>
+<a name="boost_regex.syntax.perl_syntax.synopsis"></a><h4>
+<a name="id497566"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.synopsis">Synopsis</a>
- </h3>
+ </h4>
<p>
The Perl regular expression syntax is based on that used by the programming
language Perl . Perl regular expressions are the default behavior in Boost.Regex
- or you can pass the flag <tt class="computeroutput"><span class="identifier">perl</span></tt>
- to the basic_regex
+ or you can pass the flag <code class="computeroutput"><span class="identifier">perl</span></code>
+ to the basic_regex
constructor, for example:
</p>
-<pre class="programlisting">
-<span class="comment">// e1 is a case sensitive Perl regular expression:
+<pre class="programlisting"><span class="comment">// e1 is a case sensitive Perl regular expression:
</span><span class="comment">// since Perl is the default option there's no need to explicitly specify the syntax used here:
</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e1</span><span class="special">(</span><span class="identifier">my_expression</span><span class="special">);</span>
<span class="comment">// e2 a case insensitive Perl regular expression:
</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span> <span class="identifier">e2</span><span class="special">(</span><span class="identifier">my_expression</span><span class="special">,</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">perl</span><span class="special">|</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">regex</span><span class="special">::</span><span class="identifier">icase</span><span class="special">);</span>
</pre>
-<a name="boost_regex.syntax.perl_syntax.perl_regular_expression_syntax"></a><h3>
-<a name="id463969"></a>
+<a name="boost_regex.syntax.perl_syntax.perl_regular_expression_syntax"></a><h4>
+<a name="id497787"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.perl_regular_expression_syntax">Perl
Regular Expression Syntax</a>
- </h3>
+ </h4>
<p>
In Perl regular expressions, all characters match themselves except for the
following special characters:
</p>
<pre class="programlisting">.[{()\*+?|^$</pre>
-<a name="boost_regex.syntax.perl_syntax.wildcard"></a><h4>
-<a name="id464008"></a>
+<a name="boost_regex.syntax.perl_syntax.wildcard"></a><h5>
+<a name="id497825"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.wildcard">Wildcard</a>
- </h4>
+ </h5>
<p>
The single character '.' when used outside of a character set will match
any single character except:
</p>
<div class="itemizedlist"><ul type="disc">
<li>
- The NULL character when the <a href="../ref/match_flag_type.html" title=" match_flag_type">flag
- <tt class="computeroutput"><span class="identifier">match_no_dot_null</span></tt></a>
+ The NULL character when the <a href="../ref/match_flag_type.html" title="match_flag_type">flag
+ <code class="computeroutput"><span class="identifier">match_no_dot_null</span></code></a>
is passed to the matching algorithms.
</li>
<li>
- The newline character when the <a href="../ref/match_flag_type.html" title=" match_flag_type">flag
- <tt class="computeroutput"><span class="identifier">match_not_dot_newline</span></tt></a>
+ The newline character when the <a href="../ref/match_flag_type.html" title="match_flag_type">flag
+ <code class="computeroutput"><span class="identifier">match_not_dot_newline</span></code></a>
is passed to the matching algorithms.
</li>
</ul></div>
-<a name="boost_regex.syntax.perl_syntax.anchors"></a><h4>
-<a name="id464091"></a>
+<a name="boost_regex.syntax.perl_syntax.anchors"></a><h5>
+<a name="id497906"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.anchors">Anchors</a>
- </h4>
+ </h5>
<p>
A '^' character shall match the start of a line.
</p>
<p>
A '$' character shall match the end of a line.
</p>
-<a name="boost_regex.syntax.perl_syntax.marked_sub_expressions"></a><h4>
-<a name="id464126"></a>
+<a name="boost_regex.syntax.perl_syntax.marked_sub_expressions"></a><h5>
+<a name="id497940"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.marked_sub_expressions">Marked
sub-expressions</a>
- </h4>
+ </h5>
<p>
- A section beginning <tt class="computeroutput"><span class="special">(</span></tt> and ending
- <tt class="computeroutput"><span class="special">)</span></tt> acts as a marked sub-expression.
+ A section beginning <code class="computeroutput"><span class="special">(</span></code> and ending
+ <code class="computeroutput"><span class="special">)</span></code> acts as a marked sub-expression.
Whatever matched the sub-expression is split out in a separate field by the
matching algorithms. Marked sub-expressions can also repeated, or referred
to by a back-reference.
</p>
-<a name="boost_regex.syntax.perl_syntax.non_marking_grouping"></a><h4>
-<a name="id464183"></a>
+<a name="boost_regex.syntax.perl_syntax.non_marking_grouping"></a><h5>
+<a name="id497996"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.non_marking_grouping">Non-marking
grouping</a>
- </h4>
+ </h5>
<p>
A marked sub-expression is useful to lexically group part of a regular expression,
but has the side-effect of spitting out an extra field in the result. As
an alternative you can lexically group part of a regular expression, without
- generating a marked sub-expression by using <tt class="computeroutput"><span class="special">(?:</span></tt>
- and <tt class="computeroutput"><span class="special">)</span></tt> , for example <tt class="computeroutput"><span class="special">(?:</span><span class="identifier">ab</span><span class="special">)+</span></tt>
- will repeat <tt class="computeroutput"><span class="identifier">ab</span></tt> without splitting
+ generating a marked sub-expression by using <code class="computeroutput"><span class="special">(?:</span></code>
+ and <code class="computeroutput"><span class="special">)</span></code> , for example <code class="computeroutput"><span class="special">(?:</span><span class="identifier">ab</span><span class="special">)+</span></code>
+ will repeat <code class="computeroutput"><span class="identifier">ab</span></code> without splitting
out any separate sub-expressions.
</p>
-<a name="boost_regex.syntax.perl_syntax.repeats"></a><h4>
-<a name="id464274"></a>
+<a name="boost_regex.syntax.perl_syntax.repeats"></a><h5>
+<a name="id498084"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.repeats">Repeats</a>
- </h4>
+ </h5>
<p>
Any atom (a single character, a marked sub-expression, or a character class)
- can be repeated with the <tt class="computeroutput"><span class="special">*</span></tt>,
- <tt class="computeroutput"><span class="special">+</span></tt>, <tt class="computeroutput"><span class="special">?</span></tt>,
- and <tt class="computeroutput"><span class="special">{}</span></tt> operators.
+ can be repeated with the <code class="computeroutput"><span class="special">*</span></code>,
+ <code class="computeroutput"><span class="special">+</span></code>, <code class="computeroutput"><span class="special">?</span></code>,
+ and <code class="computeroutput"><span class="special">{}</span></code> operators.
</p>
<p>
- The <tt class="computeroutput"><span class="special">*</span></tt> operator will match the
- preceding atom zero or more times, for example the expression <tt class="computeroutput"><span class="identifier">a</span><span class="special">*</span><span class="identifier">b</span></tt>
+ The <code class="computeroutput"><span class="special">*</span></code> operator will match the
+ preceding atom zero or more times, for example the expression <code class="computeroutput"><span class="identifier">a</span><span class="special">*</span><span class="identifier">b</span></code>
will match any of the following:
</p>
-<pre class="programlisting">
-<span class="identifier">b</span>
+<pre class="programlisting"><span class="identifier">b</span>
<span class="identifier">ab</span>
<span class="identifier">aaaaaaaab</span>
</pre>
<p>
- The <tt class="computeroutput"><span class="special">+</span></tt> operator will match the
- preceding atom one or more times, for example the expression <tt class="computeroutput"><span class="identifier">a</span><span class="special">+</span><span class="identifier">b</span></tt>
+ The <code class="computeroutput"><span class="special">+</span></code> operator will match the
+ preceding atom one or more times, for example the expression <code class="computeroutput"><span class="identifier">a</span><span class="special">+</span><span class="identifier">b</span></code>
will match any of the following:
</p>
-<pre class="programlisting">
-<span class="identifier">ab</span>
+<pre class="programlisting"><span class="identifier">ab</span>
<span class="identifier">aaaaaaaab</span>
</pre>
<p>
But will not match:
</p>
-<pre class="programlisting">
-<span class="identifier">b</span>
+<pre class="programlisting"><span class="identifier">b</span>
</pre>
<p>
- The <tt class="computeroutput"><span class="special">?</span></tt> operator will match the
+ The <code class="computeroutput"><span class="special">?</span></code> operator will match the
preceding atom zero or one times, for example the expression ca?b will match
any of the following:
</p>
-<pre class="programlisting">
-<span class="identifier">cb</span>
+<pre class="programlisting"><span class="identifier">cb</span>
<span class="identifier">cab</span>
</pre>
<p>
But will not match:
</p>
-<pre class="programlisting">
-<span class="identifier">caab</span>
+<pre class="programlisting"><span class="identifier">caab</span>
</pre>
<p>
An atom can also be repeated with a bounded repeat:
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">}</span></tt> Matches
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">}</span></code> Matches
'a' repeated exactly n times.
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,}</span></tt> Matches
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,}</span></code> Matches
'a' repeated n or more times.
</p>
<p>
- <tt class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">m</span><span class="special">}</span></tt> Matches 'a' repeated between n and m times
+ <code class="computeroutput"><span class="identifier">a</span><span class="special">{</span><span class="identifier">n</span><span class="special">,</span> <span class="identifier">m</span><span class="special">}</span></code> Matches 'a' repeated between n and m times
inclusive.
</p>
<p>
@@ -185,63 +177,60 @@
<p>
Will match either of:
</p>
-<pre class="programlisting">
-<span class="identifier">aa</span>
+<pre class="programlisting"><span class="identifier">aa</span>
<span class="identifier">aaa</span>
</pre>
<p>
But neither of:
</p>
-<pre class="programlisting">
-<span class="identifier">a</span>
+<pre class="programlisting"><span class="identifier">a</span>
<span class="identifier">aaaa</span>
</pre>
<p>
It is an error to use a repeat operator, if the preceding construct can not
be repeated, for example:
</p>
-<pre class="programlisting">
-<span class="identifier">a</span><span class="special">(*)</span>
+<pre class="programlisting"><span class="identifier">a</span><span class="special">(*)</span>
</pre>
<p>
- Will raise an error, as there is nothing for the <tt class="computeroutput"><span class="special">*</span></tt>
+ Will raise an error, as there is nothing for the <code class="computeroutput"><span class="special">*</span></code>
operator to be applied to.
</p>
-<a name="boost_regex.syntax.perl_syntax.non_greedy_repeats"></a><h4>
-<a name="id464758"></a>
+<a name="boost_regex.syntax.perl_syntax.non_greedy_repeats"></a><h5>
+<a name="id498557"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.non_greedy_repeats">Non greedy
repeats</a>
- </h4>
+ </h5>
<p>
The normal repeat operators are "greedy", that is to say they will
consume as much input as possible. There are non-greedy versions available
that will consume as little input as possible while still producing a match.
</p>
<p>
- <tt class="computeroutput"><span class="special">*?</span></tt> Matches the previous atom
+ <code class="computeroutput"><span class="special">*?</span></code> Matches the previous atom
zero or more times, while consuming as little input as possible.
</p>
<p>
- <tt class="computeroutput"><span class="special">+?</span></tt> Matches the previous atom
+ <code class="computeroutput"><span class="special">+?</span></code> Matches the previous atom
one or more times, while consuming as little input as possible.
</p>
<p>
- <tt class="computeroutput"><span class="special">??</span></tt> Matches the previous atom
+ <code class="computeroutput"><span class="special">??</span></code> Matches the previous atom
zero or one times, while consuming as little input as possible.
</p>
<p>
- <tt class="computeroutput"><span class="special">{</span><span class="identifier">n</span><span class="special">,}?</span></tt> Matches the previous atom n or more times,
+ <code class="computeroutput"><span class="special">{</span><span class="identifier">n</span><span class="special">,}?</span></code> Matches the previous atom n or more times,
while consuming as little input as possible.
</p>
<p>
- <tt class="computeroutput"><span class="special">{</span><span class="identifier">n</span><span class="special">,</span><span class="identifier">m</span><span class="special">}?</span></tt>
+ <code class="computeroutput"><span class="special">{</span><span class="identifier">n</span><span class="special">,</span><span class="identifier">m</span><span class="special">}?</span></code>
Matches the previous atom between n and m times, while consuming as little
input as possible.
</p>
-<a name="boost_regex.syntax.perl_syntax.back_references"></a><h4>
-<a name="id464905"></a>
+<a name="boost_regex.syntax.perl_syntax.back_references"></a><h5>
+<a name="id498702"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.back_references">Back references</a>
- </h4>
+ </h5>
<p>
An escape character followed by a digit <span class="emphasis"><em>n</em></span>, where <span class="emphasis"><em>n</em></span>
is in the range 1-9, matches the same string that was matched by sub-expression
@@ -251,165 +240,160 @@
<p>
Will match the string:
</p>
-<pre class="programlisting">
-<span class="identifier">aaabbaaa</span>
+<pre class="programlisting"><span class="identifier">aaabbaaa</span>
</pre>
<p>
But not the string:
</p>
-<pre class="programlisting">
-<span class="identifier">aaabba</span>
+<pre class="programlisting"><span class="identifier">aaabba</span>
</pre>
-<a name="boost_regex.syntax.perl_syntax.alternation"></a><h4>
-<a name="id464992"></a>
+<a name="boost_regex.syntax.perl_syntax.alternation"></a><h5>
+<a name="id498785"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.alternation">Alternation</a>
- </h4>
+ </h5>
<p>
- The <tt class="computeroutput"><span class="special">|</span></tt> operator will match either
- of its arguments, so for example: <tt class="computeroutput"><span class="identifier">abc</span><span class="special">|</span><span class="identifier">def</span></tt> will
+ The <code class="computeroutput"><span class="special">|</span></code> operator will match either
+ of its arguments, so for example: <code class="computeroutput"><span class="identifier">abc</span><span class="special">|</span><span class="identifier">def</span></code> will
match either "abc" or "def".
</p>
<p>
- Parenthesis can be used to group alternations, for example: <tt class="computeroutput"><span class="identifier">ab</span><span class="special">(</span><span class="identifier">d</span><span class="special">|</span><span class="identifier">ef</span><span class="special">)</span></tt>
+ Parenthesis can be used to group alternations, for example: <code class="computeroutput"><span class="identifier">ab</span><span class="special">(</span><span class="identifier">d</span><span class="special">|</span><span class="identifier">ef</span><span class="special">)</span></code>
will match either of "abd" or "abef".
</p>
<p>
Empty alternatives are not allowed (these are almost always a mistake), but
- if you really want an empty alternative use <tt class="computeroutput"><span class="special">(?:)</span></tt>
+ if you really want an empty alternative use <code class="computeroutput"><span class="special">(?:)</span></code>
as a placeholder, for example:
</p>
<p>
- <tt class="computeroutput"><span class="special">|</span><span class="identifier">abc</span></tt>
+ <code class="computeroutput"><span class="special">|</span><span class="identifier">abc</span></code>
is not a valid expression, but
</p>
<p>
- <tt class="computeroutput"><span class="special">(?:)|</span><span class="identifier">abc</span></tt>
+ <code class="computeroutput"><span class="special">(?:)|</span><span class="identifier">abc</span></code>
is and is equivalent, also the expression:
</p>
<p>
- <tt class="computeroutput"><span class="special">(?:</span><span class="identifier">abc</span><span class="special">)??</span></tt> has exactly the same effect.
+ <code class="computeroutput"><span class="special">(?:</span><span class="identifier">abc</span><span class="special">)??</span></code> has exactly the same effect.
</p>
-<a name="boost_regex.syntax.perl_syntax.character_sets"></a><h4>
-<a name="id465181"></a>
+<a name="boost_regex.syntax.perl_syntax.character_sets"></a><h5>
+<a name="id498974"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.character_sets">Character sets</a>
- </h4>
+ </h5>
<p>
- A character set is a bracket-expression starting with <tt class="computeroutput"><span class="special">[</span></tt>
- and ending with <tt class="computeroutput"><span class="special">]</span></tt>, it defines
+ A character set is a bracket-expression starting with <code class="computeroutput"><span class="special">[</span></code>
+ and ending with <code class="computeroutput"><span class="special">]</span></code>, it defines
a set of characters, and matches any single character that is a member of
that set.
</p>
<p>
A bracket expression may contain any combination of the following:
</p>
-<a name="boost_regex.syntax.perl_syntax.single_characters"></a><h5>
-<a name="id465243"></a>
+<a name="boost_regex.syntax.perl_syntax.single_characters"></a><h6>
+<a name="id499033"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.single_characters">Single characters</a>
- </h5>
+ </h6>
<p>
- For example <tt class="computeroutput"><span class="special">[</span><span class="identifier">abc</span><span class="special">]</span></tt>, will match any of the characters 'a', 'b',
+ For example <code class="computeroutput"><span class="special">[</span><span class="identifier">abc</span><span class="special">]</span></code>, will match any of the characters 'a', 'b',
or 'c'.
</p>
-<a name="boost_regex.syntax.perl_syntax.character_ranges"></a><h5>
-<a name="id465294"></a>
+<a name="boost_regex.syntax.perl_syntax.character_ranges"></a><h6>
+<a name="id499083"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.character_ranges">Character
ranges</a>
- </h5>
+ </h6>
<p>
- For example <tt class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></tt>
+ For example <code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></code>
will match any single character in the range 'a' to 'c'. By default, for
Perl regular expressions, a character x is within the range y to z, if the
code point of the character lies within the codepoints of the endpoints of
- the range. Alternatively, if you set the <a href="../ref/syntax_option_type/syntax_option_type_perl.html" title="
- Options for Perl Regular Expressions"><tt class="computeroutput"><span class="identifier">collate</span></tt> flag</a> when constructing the
+ the range. Alternatively, if you set the collate
flag when constructing the
regular expression, then ranges are locale sensitive.
</p>
-<a name="boost_regex.syntax.perl_syntax.negation"></a><h5>
-<a name="id465376"></a>
+<a name="boost_regex.syntax.perl_syntax.negation"></a><h6>
+<a name="id499164"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.negation">Negation</a>
- </h5>
+ </h6>
<p>
If the bracket-expression begins with the ^ character, then it matches the
- complement of the characters it contains, for example <tt class="computeroutput"><span class="special">[^</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></tt> matches any character that is not in the
- range <tt class="computeroutput"><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span></tt>.
+ complement of the characters it contains, for example <code class="computeroutput"><span class="special">[^</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">]</span></code> matches any character that is not in the
+ range <code class="computeroutput"><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span></code>.
</p>
-<a name="boost_regex.syntax.perl_syntax.character_classes"></a><h5>
-<a name="id465460"></a>
+<a name="boost_regex.syntax.perl_syntax.character_classes"></a><h6>
+<a name="id499246"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.character_classes">Character
classes</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">name</span><span class="special">:]]</span></tt>
- matches the named character class "name", for example <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></tt> matches any lower case character. See
- <a href="character_classes.html" title=" Character Class
- Names">character class names</a>.
+ An expression of the form <code class="computeroutput"><span class="special">[[:</span><span class="identifier">name</span><span class="special">:]]</span></code>
+ matches the named character class "name", for example <code class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></code> matches any lower case character. See
+ character class names.
</p>
-<a name="boost_regex.syntax.perl_syntax.collating_elements"></a><h5>
-<a name="id465545"></a>
+<a name="boost_regex.syntax.perl_syntax.collating_elements"></a><h6>
+<a name="id499329"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.collating_elements">Collating
Elements</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[.</span><span class="identifier">col</span><span class="special">.]</span></tt> matches
+ An expression of the form <code class="computeroutput"><span class="special">[[.</span><span class="identifier">col</span><span class="special">.]</span></code> matches
the collating element <span class="emphasis"><em>col</em></span>. A collating element is any
single character, or any sequence of characters that collates as a single
unit. Collating elements may also be used as the end point of a range, for
- example: <tt class="computeroutput"><span class="special">[[.</span><span class="identifier">ae</span><span class="special">.]-</span><span class="identifier">c</span><span class="special">]</span></tt>
+ example: <code class="computeroutput"><span class="special">[[.</span><span class="identifier">ae</span><span class="special">.]-</span><span class="identifier">c</span><span class="special">]</span></code>
matches the character sequence "ae", plus any single character
in the range "ae"-c, assuming that "ae" is treated as
a single collating element in the current locale.
</p>
<p>
- As an extension, a collating element may also be specified via it's symbolic name, for example:
+ As an extension, a collating element may also be specified via it's symbolic name, for example:
</p>
-<pre class="programlisting">
-<span class="special">[[.</span><span class="identifier">NUL</span><span class="special">.]]</span>
+<pre class="programlisting"><span class="special">[[.</span><span class="identifier">NUL</span><span class="special">.]]</span>
</pre>
<p>
- matches a <tt class="computeroutput"><span class="special">\</span><span class="number">0</span></tt>
+ matches a <code class="computeroutput"><span class="special">\</span><span class="number">0</span></code>
character.
</p>
-<a name="boost_regex.syntax.perl_syntax.equivalence_classes"></a><h5>
-<a name="id465697"></a>
+<a name="boost_regex.syntax.perl_syntax.equivalence_classes"></a><h6>
+<a name="id499477"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.equivalence_classes">Equivalence
classes</a>
- </h5>
+ </h6>
<p>
- An expression of the form <tt class="computeroutput"><span class="special">[[=</span><span class="identifier">col</span><span class="special">=]]</span></tt>,
+ An expression of the form <code class="computeroutput"><span class="special">[[=</span><span class="identifier">col</span><span class="special">=]]</span></code>,
matches any character or collating element whose primary sort key is the
same as that for collating element <span class="emphasis"><em>col</em></span>, as with collating
- elements the name <span class="emphasis"><em>col</em></span> may be a <a href="collating_names.html" title=" Collating Names">symbolic
+ elements the name <span class="emphasis"><em>col</em></span> may be a <a href="collating_names.html" title="Collating Names">symbolic
name</a>. A primary sort key is one that ignores case, accentation, or
- locale-specific tailorings; so for example <tt class="computeroutput"><span class="special">[[=</span><span class="identifier">a</span><span class="special">=]]</span></tt> matches
+ locale-specific tailorings; so for example <code class="computeroutput"><span class="special">[[=</span><span class="identifier">a</span><span class="special">=]]</span></code> matches
any of the characters: a, À, Á, Â, Ã, Ä, Å, A, à, á, â, ã, ä and å. Unfortunately implementation
of this is reliant on the platform's collation and localisation support;
this feature can not be relied upon to work portably across all platforms,
or even all locales on one platform.
</p>
-<a name="boost_regex.syntax.perl_syntax.escaped_characters"></a><h5>
-<a name="id465807"></a>
+<a name="boost_regex.syntax.perl_syntax.escaped_characters"></a><h6>
+<a name="id499581"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.escaped_characters">Escaped
Characters</a>
- </h5>
+ </h6>
<p>
All the escape sequences that match a single character, or a single character
- class are permitted within a character class definition. For example <tt class="computeroutput"><span class="special">[\[\]]</span></tt> would match either of <tt class="computeroutput"><span class="special">[</span></tt> or <tt class="computeroutput"><span class="special">]</span></tt>
- while <tt class="computeroutput"><span class="special">[\</span><span class="identifier">W</span><span class="special">\</span><span class="identifier">d</span><span class="special">]</span></tt>
+ class are permitted within a character class definition. For example <code class="computeroutput"><span class="special">[\[\]]</span></code> would match either of <code class="computeroutput"><span class="special">[</span></code> or <code class="computeroutput"><span class="special">]</span></code>
+ while <code class="computeroutput"><span class="special">[\</span><span class="identifier">W</span><span class="special">\</span><span class="identifier">d</span><span class="special">]</span></code>
would match any character that is either a "digit", <span class="emphasis"><em>or</em></span>
is <span class="emphasis"><em>not</em></span> a "word" character.
</p>
-<a name="boost_regex.syntax.perl_syntax.combinations"></a><h5>
-<a name="id465914"></a>
+<a name="boost_regex.syntax.perl_syntax.combinations"></a><h6>
+<a name="id499686"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.combinations">Combinations</a>
- </h5>
+ </h6>
<p>
All of the above can be combined in one character set declaration, for example:
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">[.</span><span class="identifier">NUL</span><span class="special">.]]</span></tt>.
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">c</span><span class="special">[.</span><span class="identifier">NUL</span><span class="special">.]]</span></code>.
</p>
-<a name="boost_regex.syntax.perl_syntax.escapes"></a><h4>
-<a name="id465993"></a>
+<a name="boost_regex.syntax.perl_syntax.escapes"></a><h5>
+<a name="id499764"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.escapes">Escapes</a>
- </h4>
+ </h5>
<p>
Any special character preceded by an escape shall match itself.
</p>
@@ -437,97 +421,97 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">a</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">a</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">a</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">a</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">e</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">e</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="number">0x1B</span></tt>
+ <code class="computeroutput"><span class="number">0x1B</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">f</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">f</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">f</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">f</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">n</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">n</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">n</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">n</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">r</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">r</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">r</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">r</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">t</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">t</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">t</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">t</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">v</span>
- </tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">v</span>
+ </code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">v</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">v</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">b</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">b</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">b</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">b</span></code>
(but only inside a character class declaration).
</p>
</td>
@@ -535,7 +519,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">cX</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">cX</span></code>
</p>
</td>
<td>
@@ -548,7 +532,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">xdd</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">xdd</span></code>
</p>
</td>
<td>
@@ -561,7 +545,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">x</span><span class="special">{</span><span class="identifier">dddd</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">x</span><span class="special">{</span><span class="identifier">dddd</span><span class="special">}</span></code>
</p>
</td>
<td>
@@ -574,7 +558,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="number">0ddd</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="number">0ddd</span></code>
</p>
</td>
<td>
@@ -587,23 +571,23 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">N</span><span class="special">{</span><span class="identifier">name</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">N</span><span class="special">{</span><span class="identifier">name</span><span class="special">}</span></code>
</p>
</td>
<td>
<p>
- Matches the single character which has the <a href="collating_names.html" title=" Collating Names">symbolic
- name</a> <span class="emphasis"><em>name</em></span>. For example <tt class="computeroutput"><span class="special">\</span><span class="identifier">N</span><span class="special">{</span><span class="identifier">newline</span><span class="special">}</span></tt> matches the single character \n.
+ Matches the single character which has the <a href="collating_names.html" title="Collating Names">symbolic
+ name</a> <span class="emphasis"><em>name</em></span>. For example <code class="computeroutput"><span class="special">\</span><span class="identifier">N</span><span class="special">{</span><span class="identifier">newline</span><span class="special">}</span></code> matches the single character \n.
</p>
</td>
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.perl_syntax._quot_single_character_quot__character_classes_"></a><h5>
-<a name="id466708"></a>
+<a name="boost_regex.syntax.perl_syntax._quot_single_character_quot__character_classes_"></a><h6>
+<a name="id500477"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax._quot_single_character_quot__character_classes_">"Single
character" character classes:</a>
- </h5>
+ </h6>
<p>
Any escaped character <span class="emphasis"><em>x</em></span>, if <span class="emphasis"><em>x</em></span> is
the name of a character class shall match any character that is a member
@@ -634,134 +618,133 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">d</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">d</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">digit</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">l</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">l</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">lower</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">s</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">s</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">space</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">space</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">u</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">u</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">upper</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">upper</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">w</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">w</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">word</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">word</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">D</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">D</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">digit</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">digit</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">L</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">L</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">lower</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">lower</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">S</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">S</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">space</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">space</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">U</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">U</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">upper</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">upper</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">W</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">W</span></code>
</p>
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">word</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">word</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.perl_syntax.character_properties"></a><h5>
-<a name="id467341"></a>
+<a name="boost_regex.syntax.perl_syntax.character_properties"></a><h6>
+<a name="id501109"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.character_properties">Character
Properties</a>
- </h5>
+ </h6>
<p>
The character property names in the following table are all equivalent to
- the <a href="character_classes.html" title=" Character Class
- Names">names used in character
+ the <a href="character_classes.html" title="Character Class Names">names used in character
classes</a>.
</p>
<div class="informaltable"><table class="table">
@@ -791,7 +774,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">pX</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">pX</span></code>
</p>
</td>
<td>
@@ -801,14 +784,14 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">X</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">X</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></code>
</p>
</td>
<td>
@@ -818,14 +801,14 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">Name</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">Name</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">PX</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">PX</span></code>
</p>
</td>
<td>
@@ -835,14 +818,14 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">X</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">X</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">P</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">P</span><span class="special">{</span><span class="identifier">Name</span><span class="special">}</span></code>
</p>
</td>
<td>
@@ -852,42 +835,42 @@
</td>
<td>
<p>
- <tt class="computeroutput"><span class="special">[^[:</span><span class="identifier">Name</span><span class="special">:]]</span></tt>
+ <code class="computeroutput"><span class="special">[^[:</span><span class="identifier">Name</span><span class="special">:]]</span></code>
</p>
</td>
</tr>
</tbody>
</table></div>
<p>
- For example <tt class="computeroutput"><span class="special">\</span><span class="identifier">pd</span></tt>
- matches any "digit" character, as does <tt class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">digit</span><span class="special">}</span></tt>.
+ For example <code class="computeroutput"><span class="special">\</span><span class="identifier">pd</span></code>
+ matches any "digit" character, as does <code class="computeroutput"><span class="special">\</span><span class="identifier">p</span><span class="special">{</span><span class="identifier">digit</span><span class="special">}</span></code>.
</p>
-<a name="boost_regex.syntax.perl_syntax.word_boundaries"></a><h5>
-<a name="id467752"></a>
+<a name="boost_regex.syntax.perl_syntax.word_boundaries"></a><h6>
+<a name="id501519"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.word_boundaries">Word Boundaries</a>
- </h5>
+ </h6>
<p>
The following escape sequences match the boundaries of words:
</p>
<p>
- <tt class="computeroutput"><span class="special">\<</span></tt> Matches the start of a
+ <code class="computeroutput"><span class="special">\<</span></code> Matches the start of a
word.
</p>
<p>
- <tt class="computeroutput"><span class="special">\></span></tt> Matches the end of a word.
+ <code class="computeroutput"><span class="special">\></span></code> Matches the end of a word.
</p>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">b</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">b</span></code>
Matches a word boundary (the start or end of a word).
</p>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">B</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">B</span></code>
Matches only when not at a word boundary.
</p>
-<a name="boost_regex.syntax.perl_syntax.buffer_boundaries"></a><h5>
-<a name="id467856"></a>
+<a name="boost_regex.syntax.perl_syntax.buffer_boundaries"></a><h6>
+<a name="id501620"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.buffer_boundaries">Buffer boundaries</a>
- </h5>
+ </h6>
<p>
The following match only at buffer boundaries: a "buffer" in this
context is the whole of the input text that is being matched against (note
@@ -907,106 +890,105 @@
</p>
<p>
\Z Matches an optional sequence of newlines at the end of a buffer: equivalent
- to the regular expression <tt class="computeroutput"><span class="special">\</span><span class="identifier">n</span><span class="special">*\</span><span class="identifier">z</span></tt>
+ to the regular expression <code class="computeroutput"><span class="special">\</span><span class="identifier">n</span><span class="special">*\</span><span class="identifier">z</span></code>
</p>
-<a name="boost_regex.syntax.perl_syntax.continuation_escape"></a><h5>
-<a name="id467940"></a>
+<a name="boost_regex.syntax.perl_syntax.continuation_escape"></a><h6>
+<a name="id501703"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.continuation_escape">Continuation
Escape</a>
- </h5>
+ </h6>
<p>
- The sequence <tt class="computeroutput"><span class="special">\</span><span class="identifier">G</span></tt>
+ The sequence <code class="computeroutput"><span class="special">\</span><span class="identifier">G</span></code>
matches only at the end of the last match found, or at the start of the text
being matched if no previous match was found. This escape useful if you're
iterating over the matches contained within a text, and you want each subsequence
match to start where the last one ended.
</p>
-<a name="boost_regex.syntax.perl_syntax.quoting_escape"></a><h5>
-<a name="id467993"></a>
+<a name="boost_regex.syntax.perl_syntax.quoting_escape"></a><h6>
+<a name="id501754"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.quoting_escape">Quoting escape</a>
- </h5>
+ </h6>
<p>
- The escape sequence <tt class="computeroutput"><span class="special">\</span><span class="identifier">Q</span></tt>
+ The escape sequence <code class="computeroutput"><span class="special">\</span><span class="identifier">Q</span></code>
begins a "quoted sequence": all the subsequent characters are treated
as literals, until either the end of the regular expression or \E is found.
- For example the expression: <tt class="computeroutput"><span class="special">\</span><span class="identifier">Q</span><span class="special">\*+\</span><span class="identifier">Ea</span><span class="special">+</span></tt> would match either of:
+ For example the expression: <code class="computeroutput"><span class="special">\</span><span class="identifier">Q</span><span class="special">\*+\</span><span class="identifier">Ea</span><span class="special">+</span></code> would match either of:
</p>
-<pre class="programlisting">
-<span class="special">\*+</span><span class="identifier">a</span>
+<pre class="programlisting"><span class="special">\*+</span><span class="identifier">a</span>
<span class="special">\*+</span><span class="identifier">aaa</span>
</pre>
-<a name="boost_regex.syntax.perl_syntax.unicode_escapes"></a><h5>
-<a name="id468098"></a>
+<a name="boost_regex.syntax.perl_syntax.unicode_escapes"></a><h6>
+<a name="id501860"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.unicode_escapes">Unicode escapes</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">\</span><span class="identifier">C</span></tt>
+ <code class="computeroutput"><span class="special">\</span><span class="identifier">C</span></code>
Matches a single code point: in Boost regex this has exactly the same effect
- as a "." operator. <tt class="computeroutput"><span class="special">\</span><span class="identifier">X</span></tt> Matches a combining character sequence:
+ as a "." operator. <code class="computeroutput"><span class="special">\</span><span class="identifier">X</span></code> Matches a combining character sequence:
that is any non-combining character followed by a sequence of zero or more
combining characters.
</p>
-<a name="boost_regex.syntax.perl_syntax.any_other_escape"></a><h5>
-<a name="id468164"></a>
+<a name="boost_regex.syntax.perl_syntax.any_other_escape"></a><h6>
+<a name="id501924"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.any_other_escape">Any other
escape</a>
- </h5>
+ </h6>
<p>
Any other escape sequence matches the character that is escaped, for example
\@ matches a literal '@'.
</p>
-<a name="boost_regex.syntax.perl_syntax.perl_extended_patterns"></a><h4>
-<a name="id468194"></a>
+<a name="boost_regex.syntax.perl_syntax.perl_extended_patterns"></a><h5>
+<a name="id501953"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.perl_extended_patterns">Perl
Extended Patterns</a>
- </h4>
+ </h5>
<p>
Perl-specific extensions to the regular expression syntax all start with
- <tt class="computeroutput"><span class="special">(?</span></tt>.
+ <code class="computeroutput"><span class="special">(?</span></code>.
</p>
-<a name="boost_regex.syntax.perl_syntax.comments"></a><h5>
-<a name="id468236"></a>
+<a name="boost_regex.syntax.perl_syntax.comments"></a><h6>
+<a name="id501994"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.comments">Comments</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">(?</span># <span class="special">...</span>
- <span class="special">)</span></tt> is treated as a comment, it's contents
+ <code class="computeroutput"><span class="special">(?</span># <span class="special">...</span>
+ <span class="special">)</span></code> is treated as a comment, it's contents
are ignored.
</p>
-<a name="boost_regex.syntax.perl_syntax.modifiers"></a><h5>
-<a name="id468290"></a>
+<a name="boost_regex.syntax.perl_syntax.modifiers"></a><h6>
+<a name="id502047"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.modifiers">Modifiers</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">(?</span><span class="identifier">imsx</span><span class="special">-</span><span class="identifier">imsx</span> <span class="special">...</span> <span class="special">)</span></tt> alters
+ <code class="computeroutput"><span class="special">(?</span><span class="identifier">imsx</span><span class="special">-</span><span class="identifier">imsx</span> <span class="special">...</span> <span class="special">)</span></code> alters
which of the perl modifiers are in effect within the pattern, changes take
effect from the point that the block is first seen and extend to any enclosing
- <tt class="computeroutput"><span class="special">)</span></tt>. Letters before a '-' turn
+ <code class="computeroutput"><span class="special">)</span></code>. Letters before a '-' turn
that perl modifier on, letters afterward, turn it off.
</p>
<p>
- <tt class="computeroutput"><span class="special">(?</span><span class="identifier">imsx</span><span class="special">-</span><span class="identifier">imsx</span><span class="special">:</span><span class="identifier">pattern</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="special">(?</span><span class="identifier">imsx</span><span class="special">-</span><span class="identifier">imsx</span><span class="special">:</span><span class="identifier">pattern</span><span class="special">)</span></code>
applies the specified modifiers to pattern only.
</p>
-<a name="boost_regex.syntax.perl_syntax.non_marking_groups"></a><h5>
-<a name="id468418"></a>
+<a name="boost_regex.syntax.perl_syntax.non_marking_groups"></a><h6>
+<a name="id502174"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.non_marking_groups">Non-marking
groups</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">(?:</span><span class="identifier">pattern</span><span class="special">)</span></tt> lexically groups pattern, without generating
+ <code class="computeroutput"><span class="special">(?:</span><span class="identifier">pattern</span><span class="special">)</span></code> lexically groups pattern, without generating
an additional sub-expression.
</p>
-<a name="boost_regex.syntax.perl_syntax.lookahead"></a><h5>
-<a name="id468471"></a>
+<a name="boost_regex.syntax.perl_syntax.lookahead"></a><h6>
+<a name="id502225"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.lookahead">Lookahead</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">(?=</span><span class="identifier">pattern</span><span class="special">)</span></tt> consumes zero characters, only if pattern
+ <code class="computeroutput"><span class="special">(?=</span><span class="identifier">pattern</span><span class="special">)</span></code> consumes zero characters, only if pattern
matches.
</p>
<p>
- <tt class="computeroutput"><span class="special">(?!</span><span class="identifier">pattern</span><span class="special">)</span></tt> consumes zero characters, only if pattern
+ <code class="computeroutput"><span class="special">(?!</span><span class="identifier">pattern</span><span class="special">)</span></code> consumes zero characters, only if pattern
does not match.
</p>
<p>
@@ -1015,51 +997,50 @@
letter, a punctuation symbol, and be at least 6 characters long, then the
expression:
</p>
-<pre class="programlisting">
-<span class="special">(?=.*[[:</span><span class="identifier">lower</span><span class="special">:]])(?=.*[[:</span><span class="identifier">upper</span><span class="special">:]])(?=.*[[:</span><span class="identifier">punct</span><span class="special">:]]).{</span><span class="number">6</span><span class="special">,}</span>
+<pre class="programlisting"><span class="special">(?=.*[[:</span><span class="identifier">lower</span><span class="special">:]])(?=.*[[:</span><span class="identifier">upper</span><span class="special">:]])(?=.*[[:</span><span class="identifier">punct</span><span class="special">:]]).{</span><span class="number">6</span><span class="special">,}</span>
</pre>
<p>
could be used to validate the password.
</p>
-<a name="boost_regex.syntax.perl_syntax.lookbehind"></a><h5>
-<a name="id468615"></a>
+<a name="boost_regex.syntax.perl_syntax.lookbehind"></a><h6>
+<a name="id502366"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.lookbehind">Lookbehind</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">(?<=</span><span class="identifier">pattern</span><span class="special">)</span></tt> consumes zero characters, only if pattern
+ <code class="computeroutput"><span class="special">(?<=</span><span class="identifier">pattern</span><span class="special">)</span></code> consumes zero characters, only if pattern
could be matched against the characters preceding the current position (pattern
must be of fixed length).
</p>
<p>
- <tt class="computeroutput"><span class="special">(?<!</span><span class="identifier">pattern</span><span class="special">)</span></tt> consumes zero characters, only if pattern
+ <code class="computeroutput"><span class="special">(?<!</span><span class="identifier">pattern</span><span class="special">)</span></code> consumes zero characters, only if pattern
could not be matched against the characters preceding the current position
(pattern must be of fixed length).
</p>
-<a name="boost_regex.syntax.perl_syntax.independent_sub_expressions"></a><h5>
-<a name="id468695"></a>
+<a name="boost_regex.syntax.perl_syntax.independent_sub_expressions"></a><h6>
+<a name="id502445"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.independent_sub_expressions">Independent
sub-expressions</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">(?></span><span class="identifier">pattern</span><span class="special">)</span></tt> <span class="emphasis"><em>pattern</em></span> is matched
+ <code class="computeroutput"><span class="special">(?></span><span class="identifier">pattern</span><span class="special">)</span></code> <span class="emphasis"><em>pattern</em></span> is matched
independently of the surrounding patterns, the expression will never backtrack
into <span class="emphasis"><em>pattern</em></span>. Independent sub-expressions are typically
used to improve performance; only the best possible match for pattern will
be considered, if this doesn't allow the expression as a whole to match then
no match is found at all.
</p>
-<a name="boost_regex.syntax.perl_syntax.conditional_expressions"></a><h5>
-<a name="id468762"></a>
+<a name="boost_regex.syntax.perl_syntax.conditional_expressions"></a><h6>
+<a name="id502509"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.conditional_expressions">Conditional
Expressions</a>
- </h5>
+ </h6>
<p>
- <tt class="computeroutput"><span class="special">(?(</span><span class="identifier">condition</span><span class="special">)</span><span class="identifier">yes</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">|</span><span class="identifier">no</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">)</span></tt> attempts to match <span class="emphasis"><em>yes-pattern</em></span>
+ <code class="computeroutput"><span class="special">(?(</span><span class="identifier">condition</span><span class="special">)</span><span class="identifier">yes</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">|</span><span class="identifier">no</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">)</span></code> attempts to match <span class="emphasis"><em>yes-pattern</em></span>
if the <span class="emphasis"><em>condition</em></span> is true, otherwise attempts to match
<span class="emphasis"><em>no-pattern</em></span>.
</p>
<p>
- <tt class="computeroutput"><span class="special">(?(</span><span class="identifier">condition</span><span class="special">)</span><span class="identifier">yes</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="special">(?(</span><span class="identifier">condition</span><span class="special">)</span><span class="identifier">yes</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">)</span></code>
attempts to match <span class="emphasis"><em>yes-pattern</em></span> if the <span class="emphasis"><em>condition</em></span>
is true, otherwise fails.
</p>
@@ -1068,31 +1049,31 @@
or the index of a marked sub-expression (the condition becomes true if the
sub-expression has been matched).
</p>
-<a name="boost_regex.syntax.perl_syntax.operator_precedence"></a><h4>
-<a name="id468932"></a>
+<a name="boost_regex.syntax.perl_syntax.operator_precedence"></a><h5>
+<a name="id502677"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.operator_precedence">Operator
precedence</a>
- </h4>
+ </h5>
<p>
The order of precedence for of operators is as follows:
</p>
<div class="orderedlist"><ol type="1">
<li>
- Collation-related bracket symbols <tt class="computeroutput"><span class="special">[==]</span>
- <span class="special">[::]</span> <span class="special">[..]</span></tt>
+ Collation-related bracket symbols <code class="computeroutput"><span class="special">[==]</span>
+ <span class="special">[::]</span> <span class="special">[..]</span></code>
</li>
<li>
- Escaped characters <tt class="computeroutput"><span class="special">\</span></tt>
+ Escaped characters <code class="computeroutput"><span class="special">\</span></code>
</li>
<li>
- Character set (bracket expression) <tt class="computeroutput"><span class="special">[]</span></tt>
+ Character set (bracket expression) <code class="computeroutput"><span class="special">[]</span></code>
</li>
<li>
- Grouping <tt class="computeroutput"><span class="special">()</span></tt>
+ Grouping <code class="computeroutput"><span class="special">()</span></code>
</li>
<li>
- Single-character-ERE duplication <tt class="computeroutput"><span class="special">*</span>
- <span class="special">+</span> <span class="special">?</span> <span class="special">{</span><span class="identifier">m</span><span class="special">,</span><span class="identifier">n</span><span class="special">}</span></tt>
+ Single-character-ERE duplication <code class="computeroutput"><span class="special">*</span>
+ <span class="special">+</span> <span class="special">?</span> <span class="special">{</span><span class="identifier">m</span><span class="special">,</span><span class="identifier">n</span><span class="special">}</span></code>
</li>
<li>
Concatenation
@@ -1104,11 +1085,11 @@
Alternation |
</li>
</ol></div>
-<a name="boost_regex.syntax.perl_syntax.what_gets_matched"></a><h3>
-<a name="id469111"></a>
+<a name="boost_regex.syntax.perl_syntax.what_gets_matched"></a><h4>
+<a name="id502856"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.what_gets_matched">What gets
matched</a>
- </h3>
+ </h4>
<p>
If you view the regular expression as a directed (possibly cyclic) graph,
then the best match found is the first match found by a depth-first-search
@@ -1118,8 +1099,7 @@
Alternatively:
</p>
<p>
- The best match found is the <a href="leftmost_longest_rule.html" title=" The Leftmost
- Longest Rule">leftmost
+ The best match found is the <a href="leftmost_longest_rule.html" title="The Leftmost Longest Rule">leftmost
match</a>, with individual elements matched as follows;
</p>
<div class="informaltable"><table class="table">
@@ -1143,7 +1123,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">AtomA</span> <span class="identifier">AtomB</span></tt>
+ <code class="computeroutput"><span class="identifier">AtomA</span> <span class="identifier">AtomB</span></code>
</p>
</td>
<td>
@@ -1156,8 +1136,8 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">Expression1</span> <span class="special">|</span>
- <span class="identifier">Expression2</span></tt>
+ <code class="computeroutput"><span class="identifier">Expression1</span> <span class="special">|</span>
+ <span class="identifier">Expression2</span></code>
</p>
</td>
<td>
@@ -1170,7 +1150,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="identifier">N</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="identifier">N</span><span class="special">}</span></code>
</p>
</td>
<td>
@@ -1182,7 +1162,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="identifier">N</span><span class="special">,</span><span class="identifier">M</span><span class="special">}</span></tt>
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="identifier">N</span><span class="special">,</span><span class="identifier">M</span><span class="special">}</span></code>
</p>
</td>
<td>
@@ -1194,7 +1174,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="identifier">N</span><span class="special">,</span><span class="identifier">M</span><span class="special">}?</span></tt>
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="identifier">N</span><span class="special">,</span><span class="identifier">M</span><span class="special">}?</span></code>
</p>
</td>
<td>
@@ -1206,16 +1186,16 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">?,</span>
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">?,</span>
<span class="identifier">S</span><span class="special">*,</span>
- <span class="identifier">S</span><span class="special">+</span></tt>
+ <span class="identifier">S</span><span class="special">+</span></code>
</p>
</td>
<td>
<p>
- The same as <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="number">1</span><span class="special">}</span></tt>,
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}</span></tt>,
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">1</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}</span></tt>
+ The same as <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="number">1</span><span class="special">}</span></code>,
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}</span></code>,
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">1</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}</span></code>
respectively.
</p>
</td>
@@ -1223,16 +1203,16 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">??,</span>
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">??,</span>
<span class="identifier">S</span><span class="special">*?,</span>
- <span class="identifier">S</span><span class="special">+?</span></tt>
+ <span class="identifier">S</span><span class="special">+?</span></code>
</p>
</td>
<td>
<p>
- The same as <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="number">1</span><span class="special">}?</span></tt>,
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}?</span></tt>,
- <tt class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">1</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}?</span></tt>
+ The same as <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="number">1</span><span class="special">}?</span></code>,
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">0</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}?</span></code>,
+ <code class="computeroutput"><span class="identifier">S</span><span class="special">{</span><span class="number">1</span><span class="special">,</span><span class="identifier">UINT_MAX</span><span class="special">}?</span></code>
respectively.
</p>
</td>
@@ -1240,7 +1220,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(?></span><span class="identifier">S</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="special">(?></span><span class="identifier">S</span><span class="special">)</span></code>
</p>
</td>
<td>
@@ -1252,7 +1232,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(?=</span><span class="identifier">S</span><span class="special">),</span> <span class="special">(?<=</span><span class="identifier">S</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="special">(?=</span><span class="identifier">S</span><span class="special">),</span> <span class="special">(?<=</span><span class="identifier">S</span><span class="special">)</span></code>
</p>
</td>
<td>
@@ -1265,7 +1245,7 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(?!</span><span class="identifier">S</span><span class="special">),</span> <span class="special">(?<!</span><span class="identifier">S</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="special">(?!</span><span class="identifier">S</span><span class="special">),</span> <span class="special">(?<!</span><span class="identifier">S</span><span class="special">)</span></code>
</p>
</td>
<td>
@@ -1277,8 +1257,8 @@
<tr>
<td>
<p>
- <tt class="computeroutput"><span class="special">(?(</span><span class="identifier">condition</span><span class="special">)</span><span class="identifier">yes</span><span class="special">-</span><span class="identifier">pattern</span>
- <span class="special">|</span> <span class="identifier">no</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">)</span></tt>
+ <code class="computeroutput"><span class="special">(?(</span><span class="identifier">condition</span><span class="special">)</span><span class="identifier">yes</span><span class="special">-</span><span class="identifier">pattern</span>
+ <span class="special">|</span> <span class="identifier">no</span><span class="special">-</span><span class="identifier">pattern</span><span class="special">)</span></code>
</p>
</td>
<td>
@@ -1290,57 +1270,55 @@
</tr>
</tbody>
</table></div>
-<a name="boost_regex.syntax.perl_syntax.variations"></a><h3>
-<a name="id470029"></a>
+<a name="boost_regex.syntax.perl_syntax.variations"></a><h4>
+<a name="id503770"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.variations">Variations</a>
- </h3>
+ </h4>
<p>
- The <a href="../ref/syntax_option_type/syntax_option_type_perl.html" title="
- Options for Perl Regular Expressions">options
- <tt class="computeroutput"><span class="identifier">normal</span></tt>, <tt class="computeroutput"><span class="identifier">ECMAScript</span></tt>,
- <tt class="computeroutput"><span class="identifier">JavaScript</span></tt> and <tt class="computeroutput"><span class="identifier">JScript</span></tt></a> are all synonyms for <tt class="computeroutput"><span class="identifier">perl</span></tt>.
+ The <a href="../ref/syntax_option_type/syntax_option_type_perl.html" title="Options for Perl Regular Expressions">options
+ <code class="computeroutput"><span class="identifier">normal</span></code>, <code class="computeroutput"><span class="identifier">ECMAScript</span></code>,
+ <code class="computeroutput"><span class="identifier">JavaScript</span></code> and <code class="computeroutput"><span class="identifier">JScript</span></code></a> are all synonyms for <code class="computeroutput"><span class="identifier">perl</span></code>.
</p>
-<a name="boost_regex.syntax.perl_syntax.options"></a><h3>
-<a name="id470124"></a>
+<a name="boost_regex.syntax.perl_syntax.options"></a><h4>
+<a name="id503865"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.options">Options</a>
- </h3>
+ </h4>
<p>
- There are a <a href="../ref/syntax_option_type/syntax_option_type_perl.html" title="
- Options for Perl Regular Expressions">variety
- of flags</a> that may be combined with the <tt class="computeroutput"><span class="identifier">perl</span></tt>
+ There are a <a href="../ref/syntax_option_type/syntax_option_type_perl.html" title="Options for Perl Regular Expressions">variety
+ of flags</a> that may be combined with the <code class="computeroutput"><span class="identifier">perl</span></code>
option when constructing the regular expression, in particular note that
- the <tt class="computeroutput"><span class="identifier">newline_alt</span></tt> option alters
- the syntax, while the <tt class="computeroutput"><span class="identifier">collate</span></tt>,
- <tt class="computeroutput"><span class="identifier">nosubs</span></tt> and <tt class="computeroutput"><span class="identifier">icase</span></tt> options modify how the case and locale
+ the <code class="computeroutput"><span class="identifier">newline_alt</span></code> option alters
+ the syntax, while the <code class="computeroutput"><span class="identifier">collate</span></code>,
+ <code class="computeroutput"><span class="identifier">nosubs</span></code> and <code class="computeroutput"><span class="identifier">icase</span></code> options modify how the case and locale
sensitivity are to be applied.
</p>
-<a name="boost_regex.syntax.perl_syntax.pattern_modifiers"></a><h3>
-<a name="id470227"></a>
+<a name="boost_regex.syntax.perl_syntax.pattern_modifiers"></a><h4>
+<a name="id503966"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.pattern_modifiers">Pattern
Modifiers</a>
- </h3>
+ </h4>
<p>
- The perl <tt class="computeroutput"><span class="identifier">smix</span></tt> modifiers can
- either be applied using a <tt class="computeroutput"><span class="special">(?</span><span class="identifier">smix</span><span class="special">-</span><span class="identifier">smix</span><span class="special">)</span></tt> prefix to the regular expression, or with
- one of the <a href="../ref/syntax_option_type/syntax_option_type_perl.html" title="
- Options for Perl Regular Expressions">regex-compile
- time flags <tt class="computeroutput"><span class="identifier">no_mod_m</span></tt>, <tt class="computeroutput"><span class="identifier">mod_x</span></tt>, <tt class="computeroutput"><span class="identifier">mod_s</span></tt>,
- and <tt class="computeroutput"><span class="identifier">no_mod_s</span></tt></a>.
+ The perl <code class="computeroutput"><span class="identifier">smix</span></code> modifiers can
+ either be applied using a <code class="computeroutput"><span class="special">(?</span><span class="identifier">smix</span><span class="special">-</span><span class="identifier">smix</span><span class="special">)</span></code> prefix to the regular expression, or with
+ one of the <a href="../ref/syntax_option_type/syntax_option_type_perl.html" title="Options for Perl Regular Expressions">regex-compile
+ time flags <code class="computeroutput"><span class="identifier">no_mod_m</span></code>, <code class="computeroutput"><span class="identifier">mod_x</span></code>, <code class="computeroutput"><span class="identifier">mod_s</span></code>,
+ and <code class="computeroutput"><span class="identifier">no_mod_s</span></code></a>.
</p>
-<a name="boost_regex.syntax.perl_syntax.references"></a><h3>
-<a name="id470356"></a>
+<a name="boost_regex.syntax.perl_syntax.references"></a><h4>
+<a name="id504093"></a>
<a href="perl_syntax.html#boost_regex.syntax.perl_syntax.references">References</a>
- </h3>
+ </h4>
<p>
<a href="http://perldoc.perl.org/perlre.html" target="_top">Perl 5.8</a>.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/boost_regex/unicode.html
==============================================================================
--- branches/release/libs/regex/doc/html/boost_regex/unicode.html (original)
+++ branches/release/libs/regex/doc/html/boost_regex/unicode.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,15 +1,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<title> Unicode and Boost.Regex</title>
+<title>Unicode and Boost.Regex</title>
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="../index.html" title="Boost.Regex">
<link rel="up" href="../index.html" title="Boost.Regex">
-<link rel="prev" href="introduction_and_overview.html" title="Introduction and
- Overview">
-<link rel="next" href="captures.html" title=" Understanding Marked Sub-Expressions
- and Captures">
+<link rel="prev" href="introduction_and_overview.html" title="Introduction and Overview">
+<link rel="next" href="captures.html" title="Understanding Marked Sub-Expressions and Captures">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,57 +24,58 @@
</div>
<div class="section" lang="en">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
-<a name="boost_regex.unicode"></a> Unicode and Boost.Regex</h2></div></div></div>
+<a name="boost_regex.unicode"></a> Unicode and Boost.Regex
+</h2></div></div></div>
<p>
There are two ways to use Boost.Regex with Unicode strings:
</p>
-<a name="boost_regex.unicode.rely_on_wchar_t"></a><h4>
-<a name="id458749"></a>
+<a name="boost_regex.unicode.rely_on_wchar_t"></a><h5>
+<a name="id492571"></a>
<a href="unicode.html#boost_regex.unicode.rely_on_wchar_t">Rely on wchar_t</a>
- </h4>
+ </h5>
<p>
- If your platform's <tt class="computeroutput"><span class="keyword">wchar_t</span></tt> type
+ If your platform's <code class="computeroutput"><span class="keyword">wchar_t</span></code> type
can hold Unicode strings, and your platform's C/C++ runtime correctly handles
- wide character constants (when passed to <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">iswspace</span></tt>
- <tt class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">iswlower</span></tt> etc), then you can use <tt class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">wregex</span></tt>
+ wide character constants (when passed to <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">iswspace</span></code>
+ <code class="computeroutput"><span class="identifier">std</span><span class="special">::</span><span class="identifier">iswlower</span></code> etc), then you can use <code class="computeroutput"><span class="identifier">boost</span><span class="special">::</span><span class="identifier">wregex</span></code>
to process Unicode. However, there are several disadvantages to this approach:
</p>
<div class="itemizedlist"><ul type="disc">
<li>
- It's not portable: there's no guarantee on the width of <tt class="computeroutput"><span class="keyword">wchar_t</span></tt>,
+ It's not portable: there's no guarantee on the width of <code class="computeroutput"><span class="keyword">wchar_t</span></code>,
or even whether the runtime treats wide characters as Unicode at all, most
Windows compilers do so, but many Unix systems do not.
</li>
<li>
- There's no support for Unicode-specific character classes: <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">Nd</span><span class="special">:]]</span></tt>,
- <tt class="computeroutput"><span class="special">[[:</span><span class="identifier">Po</span><span class="special">:]]</span></tt> etc.
+ There's no support for Unicode-specific character classes: <code class="computeroutput"><span class="special">[[:</span><span class="identifier">Nd</span><span class="special">:]]</span></code>,
+ <code class="computeroutput"><span class="special">[[:</span><span class="identifier">Po</span><span class="special">:]]</span></code> etc.
</li>
<li>
You can only search strings that are encoded as sequences of wide characters,
it is not possible to search UTF-8, or even UTF-16 on many platforms.
</li>
</ul></div>
-<a name="boost_regex.unicode.use_a_unicode_aware_regular_expression_type_"></a><h4>
-<a name="id458932"></a>
+<a name="boost_regex.unicode.use_a_unicode_aware_regular_expression_type_"></a><h5>
+<a name="id492755"></a>
<a href="unicode.html#boost_regex.unicode.use_a_unicode_aware_regular_expression_type_">Use
a Unicode Aware Regular Expression Type.</a>
- </h4>
+ </h5>
<p>
If you have the <a href="http://www.ibm.com/software/globalization/icu/" target="_top">ICU
library</a>, then Boost.Regex can be <a href="install.html#boost_regex.install.building_with_unicode_and_icu_support">configured
to make use of it</a>, and provide a distinct regular expression type (boost::u32regex),
that supports both Unicode specific character properties, and the searching
- of text that is encoded in either UTF-8, UTF-16, or UTF-32. See: <a href="ref/non_std_strings/icu.html" title=" Working With
- Unicode and ICU String Types">ICU
+ of text that is encoded in either UTF-8, UTF-16, or UTF-32. See: <a href="ref/non_std_strings/icu.html" title="Working With Unicode and ICU String Types">ICU
string class support</a>.
</p>
</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"><small>Copyright © 2007 John Maddock<p>
+<td align="right"><div class="copyright-footer">Copyright © 1998 -2007 John Maddock<p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- </p></small></div></td>
+ </p>
+</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
Modified: branches/release/libs/regex/doc/html/index.html
==============================================================================
--- branches/release/libs/regex/doc/html/index.html (original)
+++ branches/release/libs/regex/doc/html/index.html 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -3,9 +3,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Boost.Regex</title>
<link rel="stylesheet" href="../../../../doc/html/boostbook.css" type="text/css">
-<meta name="generator" content="DocBook XSL Stylesheets V1.66.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
<link rel="start" href="index.html" title="Boost.Regex">
-<link rel="next" href="boost_regex/configuration.html" title=" Configuration">
+<link rel="next" href="boost_regex/configuration.html" title="Configuration">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
@@ -26,9 +26,9 @@
<div><div class="authorgroup"><div class="author"><h3 class="author">
<span class="firstname">John</span> <span class="surname">Maddock</span>
</h3></div></div></div>
-<div><p class="copyright">Copyright © 2007 John Maddock</p></div>
+<div><p class="copyright">Copyright © 1998 -2007 John Maddock</p></div>
<div><div class="legalnotice">
-<a name="id385571"></a><p>
+<a name="id435870"></a><p>
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
</p>
@@ -155,7 +155,7 @@
<dt><span class="section"><a href="boost_regex/ref/concepts/traits_concept.html"> Traits Class
Requirements</a></span></dt>
<dt><span class="section"><a href="boost_regex/ref/concepts/iterator_concepts.html"> Iterator
- Rrequirements</a></span></dt>
+ Requirements</a></span></dt>
</dl></dd>
<dt><span class="section">Deprecated Interfaces</span></dt>
<dd><dl>
@@ -190,20 +190,10 @@
</dl></dd>
</dl>
</div>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
-<p>
- </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: November 07, 2007 at 02:57:53 GMT</small></p></td>
-<td align="right"><div class="copyright-footer"><small></small></div></td>
+<td align="left"><p><small>Last revised: December 14, 2007 at 10:05:07 GMT</small></p></td>
+<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
<div class="spirit-nav"><a accesskey="n" href="boost_regex/configuration.html"><img src="../../../../doc/html/images/next.png" alt="Next"></a></div>
Modified: branches/release/libs/regex/doc/regex.qbk
==============================================================================
--- branches/release/libs/regex/doc/regex.qbk (original)
+++ branches/release/libs/regex/doc/regex.qbk 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -1,7 +1,7 @@
[article Boost.Regex
[quickbook 1.3]
- [copyright 2007 John Maddock]
+ [copyright 1998-2007 John Maddock]
[purpose Regular Expressions]
[license
Distributed under the Boost Software License, Version 1.0.
Modified: branches/release/libs/regex/doc/regex_traits.qbk
==============================================================================
--- branches/release/libs/regex/doc/regex_traits.qbk (original)
+++ branches/release/libs/regex/doc/regex_traits.qbk 2007-12-14 05:16:35 EST (Fri, 14 Dec 2007)
@@ -20,10 +20,10 @@
struct c_regex_traits;
template <class charT>
- struct cpp_regex_traits;
+ class cpp_regex_traits;
template <class charT>
- struct w32_regex_traits;
+ class w32_regex_traits;
} // namespace boost
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk