From 132c39a42cf9d7f0b03d8d39ad5d42bd0125ea63 Mon Sep 17 00:00:00 2001
From: John Maddock
-
+
Test
Programs
@@ -107,7 +107,7 @@
Files: captures_test.cpp.
- New issues should be submitted at svn.boost.org + New issues should be submitted at svn.boost.org - don't forget to include your email address in the ticket!
@@ -35,8 +35,26 @@
All issues including closed ones can be viewed here.
++ Fixed issues: #4215, + #4212, + #4191, + #4132, + #4123, + #4114, + #4036, + #4020, + #3941, + #3902, + #3890 +
<boost/regex/user.hpp>
.
@@ -36,7 +36,7 @@ Report on C++ Library Extensions.
@@ -73,7 +73,7 @@ the Unicode requirements below.
@@ -93,7 +93,7 @@ a custom traits class.
diff --git a/doc/html/boost_regex/captures.html b/doc/html/boost_regex/captures.html index 7406acec..eb9398ff 100644 --- a/doc/html/boost_regex/captures.html +++ b/doc/html/boost_regex/captures.html @@ -35,7 +35,7 @@ accessed.
@@ -218,7 +218,7 @@ output stream.
@@ -231,7 +231,7 @@
you can determine which sub-expressions matched by accessing the sub_match::matched
data member.
diff --git a/doc/html/boost_regex/format/boost_format_syntax.html b/doc/html/boost_regex/format/boost_format_syntax.html index b017ac87..283cef6d 100644 --- a/doc/html/boost_regex/format/boost_format_syntax.html +++ b/doc/html/boost_regex/format/boost_format_syntax.html @@ -32,7 +32,7 @@ '$', '\', '(', ')', '?', and ':'.
@@ -40,7 +40,7 @@ you want a to output literal parenthesis.
@@ -79,7 +79,7 @@ ?{NAME}true-expression:false-expression
@@ -58,7 +58,7 @@ started guide for more information.
@@ -302,7 +302,7 @@ see the config library documentation.
@@ -347,7 +347,7 @@ will build v9 variants of the regex library named libboost_regex_v9.a etc.
#include <boost/pattern_except.hpp> @@ -54,7 +54,7 @@ } // namespace boost
regex_error(const std::string& s, regex_constants::error_type err, std::ptrdiff_t pos); diff --git a/doc/html/boost_regex/ref/basic_regex.html b/doc/html/boost_regex/ref/basic_regex.html index a0ab9a47..92d3b6c3 100644 --- a/doc/html/boost_regex/ref/basic_regex.html +++ b/doc/html/boost_regex/ref/basic_regex.html @@ -27,7 +27,7 @@ basic_regex- + Synopsis
#include <boost/regex.hpp> @@ -244,7 +244,7 @@ } // namespace boost- + Description
@@ -327,7 +327,7 @@
basic_regex
.-Table 1. basic_regex default construction postconditions
+Table 1. basic_regex default construction postconditions
@@ -407,7 +407,7 @@ flags specified in f. -Table 2. Postconditions for basic_regex construction
+Table 2. Postconditions for basic_regex construction
@@ -512,7 +512,7 @@ specified in f. -Table 3. Postconditions for basic_regex construction
+Table 3. Postconditions for basic_regex construction
@@ -616,7 +616,7 @@ according the option flags specified in f. -Table 4. Postconditions for basic_regex construction
+Table 4. Postconditions for basic_regex construction
@@ -727,7 +727,7 @@ flags specified in f. -Table 5. Postconditions for basic_regex construction
+Table 5. Postconditions for basic_regex construction
@@ -829,7 +829,7 @@ flags specified in f. -Table 6. Postconditions for basic_regex construction
+Table 6. Postconditions for basic_regex construction
@@ -1043,7 +1043,7 @@ in f. -Table 7. Postconditions for basic_regex::assign
+Table 7. Postconditions for basic_regex::assign
diff --git a/doc/html/boost_regex/ref/concepts/traits_concept.html b/doc/html/boost_regex/ref/concepts/traits_concept.html index 61571515..01cb63c7 100644 --- a/doc/html/boost_regex/ref/concepts/traits_concept.html +++ b/doc/html/boost_regex/ref/concepts/traits_concept.html @@ -34,7 +34,7 @@ Boost-specific enhanced interface. - + Minimal requirements.
@@ -381,7 +381,7 @@- + Additional Optional Requirements
diff --git a/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html b/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html index e0aa3d8b..7769e42c 100644 --- a/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html +++ b/doc/html/boost_regex/ref/deprecated_interfaces/regex_format.html @@ -34,7 +34,7 @@ previous version of Boost.Regex and will not be further updated:- + Algorithm regex_format
diff --git a/doc/html/boost_regex/ref/error_type.html b/doc/html/boost_regex/ref/error_type.html index 2661dae8..c2f2bc40 100644 --- a/doc/html/boost_regex/ref/error_type.html +++ b/doc/html/boost_regex/ref/error_type.html @@ -27,7 +27,7 @@ error_type- + Synopsis
@@ -57,7 +57,7 @@ } // namespace boost
- + Description
diff --git a/doc/html/boost_regex/ref/match_flag_type.html b/doc/html/boost_regex/ref/match_flag_type.html index 58e7eb12..afceff37 100644 --- a/doc/html/boost_regex/ref/match_flag_type.html +++ b/doc/html/boost_regex/ref/match_flag_type.html @@ -69,7 +69,7 @@ } // namespace boost
- + Description
diff --git a/doc/html/boost_regex/ref/match_results.html b/doc/html/boost_regex/ref/match_results.html index 63a5ac15..b547b6f6 100644 --- a/doc/html/boost_regex/ref/match_results.html +++ b/doc/html/boost_regex/ref/match_results.html @@ -27,7 +27,7 @@ match_results
- + Synopsis
#include <boost/regex.hpp> @@ -167,7 +167,7 @@ match_results<BidirectionalIterator, Allocator>& m2);- + Description
@@ -406,14 +406,21 @@ template <class charT, class Traits, class A> difference_type length(const std::basic_string<charT, Traits, A>&)const; +
+ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: Returns the length of sub-expression sub, that is to say:
(*this)[sub].length()
.The overloads that accept a string refer to a named sub-expression n. - In the event that there is no such named sub-expression then returns an empty - string. + In the event that there is no such named sub-expression then returns zero.
The template overloads of this function, allow the string and/or character @@ -434,6 +441,14 @@ template <class charT, class Traits, class A> difference_type position(const std::basic_string<charT, Traits, A>&)const; +
+ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: Returns the starting location of sub-expression sub, or -1 if sub @@ -443,8 +458,7 @@
The overloads that accept a string refer to a named sub-expression n. - In the event that there is no such named sub-expression then returns an empty - string. + In the event that there is no such named sub-expression then returns -1.
The template overloads of this function, allow the string and/or character @@ -467,6 +481,14 @@ template <class charT, class Traits, class A> string_type str(const std::basic_string<charT, Traits, A>& sub)const; +
+ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: Returns sub-expression sub as a string:
string_type((*this)[sub])
. @@ -497,6 +519,14 @@ template <class charT, class Traits, class A> const_reference operator[](const std::basic_string<charT, Traits, A>& n) const; ++ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: Returns a reference to the
sub_match
object representing the character sequence that matched marked sub-expression @@ -527,6 +557,14 @@const_reference prefix()const;++ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: Returns a reference to the
sub_match
object representing the character sequence from the start of the string being @@ -536,6 +574,14 @@const_reference suffix()const;++ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: Returns a reference to the
+sub_match
object representing the character sequence from the end of the match found @@ -584,6 +630,14 @@ want to pass function objects with internal state might want to use Boost.Ref to wrap the object so that it's passed by reference.+ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: If
+fmt
is either a null-terminated string, or a container ofchar_type
's, @@ -643,6 +697,14 @@ to*out
, and then return the new OutputIterator position.+ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: If
fmt
is either a null-terminated string, or a container ofchar_type
's, @@ -716,6 +778,14 @@const capture_sequence_type& captures(std::size_t i)const;++ Requires: that the match_results object + has been initialized as a result of a successful call to
regex_search
orregex_match
or was returned from + aregex_iterator
, + and that the underlying iterators have not been subsequently invalidated. + Will raise astd::logic_error
if the match_results object + was not initialized. +Effects: returns a sequence containing all the captures obtained for sub-expression i. diff --git a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html index 81c8e7cd..eace8fdd 100644 --- a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html +++ b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_algo.html @@ -43,7 +43,7 @@ on to the "real" algorithm.
- + u32regex_match
- + u32regex_search
- + u32regex_replace
diff --git a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html index 32e20a8d..c6e20800 100644 --- a/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html +++ b/doc/html/boost_regex/ref/non_std_strings/icu/unicode_iter.html @@ -28,7 +28,7 @@ Unicode Aware Regex Iterators
- + u32regex_iterator
@@ -126,7 +126,7 @@ Provided of course that the input is encoded as UTF-8.
- + u32regex_token_iterator
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html index 805adf6c..325379c9 100644 --- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html +++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_algo.html @@ -34,7 +34,7 @@ here they are anyway:
- + regex_match
- + regex_match (second overload)
@@ -110,7 +110,7 @@ }- + regex_search
- + regex_search (second overload)
@@ -164,7 +164,7 @@ + s.GetLength(), e, f);- + regex_replace
diff --git a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html index cedd2580..bbed7d5c 100644 --- a/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html +++ b/doc/html/boost_regex/ref/non_std_strings/mfc_strings/mfc_iter.html @@ -32,7 +32,7 @@ an MFC/ATL string to a
regex_iterator
orregex_token_iterator
:- + regex_iterator creation helper
@@ -68,7 +68,7 @@ }- + regex_token_iterator creation helpers
diff --git a/doc/html/boost_regex/ref/posix.html b/doc/html/boost_regex/ref/posix.html index 4117a6f7..6a5533d2 100644 --- a/doc/html/boost_regex/ref/posix.html +++ b/doc/html/boost_regex/ref/posix.html @@ -165,7 +165,7 @@
- + regcomp
- + regerror
- + regexec
- + regfree
diff --git a/doc/html/boost_regex/ref/regex_iterator.html b/doc/html/boost_regex/ref/regex_iterator.html index 25b27409..e8d29d44 100644 --- a/doc/html/boost_regex/ref/regex_iterator.html +++ b/doc/html/boost_regex/ref/regex_iterator.html @@ -78,7 +78,7 @@ regex_constants::match_flag_type m = regex_constants::match_default);
- + Description
@@ -436,7 +436,7 @@ m.
- + Examples
diff --git a/doc/html/boost_regex/ref/regex_match.html b/doc/html/boost_regex/ref/regex_match.html index 92e54980..b4e44f9f 100644 --- a/doc/html/boost_regex/ref/regex_match.html +++ b/doc/html/boost_regex/ref/regex_match.html @@ -80,7 +80,7 @@ match_flag_type flags = match_default);
- + Description
template <class BidirectionalIterator, class Allocator, class charT, class traits> @@ -360,7 +360,7 @@ Effects: Returns the result ofregex_match(s.begin(), s.end(), e, flags)
.- + Examples
diff --git a/doc/html/boost_regex/ref/regex_replace.html b/doc/html/boost_regex/ref/regex_replace.html index a3a8e7bb..c739efd5 100644 --- a/doc/html/boost_regex/ref/regex_replace.html +++ b/doc/html/boost_regex/ref/regex_replace.html @@ -53,7 +53,7 @@ match_flag_type flags = match_default);
- + Description
template <class OutputIterator, class BidirectionalIterator, class traits, class Formatter> @@ -199,7 +199,7 @@ and then returnsresult
.- + Examples
diff --git a/doc/html/boost_regex/ref/regex_search.html b/doc/html/boost_regex/ref/regex_search.html index 36edb25d..105d53af 100644 --- a/doc/html/boost_regex/ref/regex_search.html +++ b/doc/html/boost_regex/ref/regex_search.html @@ -73,7 +73,7 @@ match_flag_type flags = match_default);
- + Description
template <class BidirectionalIterator, class Allocator, class charT, class traits> @@ -355,7 +355,7 @@ Effects: Returns the result ofregex_search(s.begin(), s.end(), e, flags)
.- + Examples
diff --git a/doc/html/boost_regex/ref/regex_token_iterator.html b/doc/html/boost_regex/ref/regex_token_iterator.html index a2af4f26..cf389fbe 100644 --- a/doc/html/boost_regex/ref/regex_token_iterator.html +++ b/doc/html/boost_regex/ref/regex_token_iterator.html @@ -136,7 +136,7 @@ regex_constants::match_flag_type m = regex_constants::match_default);
- + Description
@@ -383,7 +383,7 @@ m.
- + Examples
diff --git a/doc/html/boost_regex/ref/regex_traits.html b/doc/html/boost_regex/ref/regex_traits.html index 7e3c06b6..92946119 100644 --- a/doc/html/boost_regex/ref/regex_traits.html +++ b/doc/html/boost_regex/ref/regex_traits.html @@ -46,7 +46,7 @@ } // namespace boost
- + Description
diff --git a/doc/html/boost_regex/ref/sub_match.html b/doc/html/boost_regex/ref/sub_match.html index cc49dc1a..3c906aea 100644 --- a/doc/html/boost_regex/ref/sub_match.html +++ b/doc/html/boost_regex/ref/sub_match.html @@ -329,11 +329,11 @@ } // namespace boost
- + Description
- + Members
- + sub_match non-member operators
@@ -1008,7 +1008,7 @@ + m2.str().- + Stream inserter
diff --git a/doc/html/boost_regex/syntax/basic_extended.html b/doc/html/boost_regex/syntax/basic_extended.html index 97b80722..2c800c43 100644 --- a/doc/html/boost_regex/syntax/basic_extended.html +++ b/doc/html/boost_regex/syntax/basic_extended.html @@ -28,7 +28,7 @@ Expression Syntax
- + Synopsis
- + POSIX Extended Syntax
@@ -56,7 +56,7 @@.[{()\*+?|^$- + Wildcard:
- + Anchors:
@@ -86,7 +86,7 @@ of an expression, or the last character of a sub-expression.
- + Marked sub-expressions:
@@ -98,7 +98,7 @@ to by a back-reference.- + Repeats:
@@ -184,7 +184,7 @@ cab operator to be applied to.
- + Back references:
@@ -214,7 +214,7 @@ cab
- + Alternation
@@ -227,7 +227,7 @@ cab will match either of "abd" or "abef".
- + Character sets:
@@ -240,7 +240,7 @@ cab A bracket expression may contain any combination of the following:- + Single characters:
@@ -249,7 +249,7 @@ cab or 'c'.- + Character ranges:
@@ -265,7 +265,7 @@ cab the code points of the characters only.- + Negation:
@@ -274,7 +274,7 @@ cab range
a-c
.- + Character classes:
@@ -284,7 +284,7 @@ cab character class names.- + Collating Elements:
@@ -312,7 +312,7 @@ cab matches a NUL character.- + Equivalence classes:
@@ -329,7 +329,7 @@ cab or even all locales on one platform.- + Combinations:
@@ -337,7 +337,7 @@ cab
[[:digit:]a-c[.NUL.]]
.- + Escapes
@@ -363,7 +363,7 @@ cab extensions are also supported by Boost.Regex:
- + Escapes matching a specific character
@@ -552,7 +552,7 @@ cab- + "Single character" character classes:
@@ -706,7 +706,7 @@ cab- + Character Properties
@@ -813,7 +813,7 @@ cab matches any "digit" character, as does\p{digit}
.- + Word Boundaries
@@ -888,7 +888,7 @@ cab
- + Buffer boundaries
@@ -979,7 +979,7 @@ cab- + Continuation Escape
@@ -991,7 +991,7 @@ cab match to start where the last one ended.- + Quoting escape
@@ -1005,7 +1005,7 @@ cab \*+aaa- + Unicode escapes
@@ -1056,7 +1056,7 @@ cab- + Any other escape
@@ -1065,7 +1065,7 @@ cab \@ matches a literal '@'.- + Operator precedence
@@ -1101,7 +1101,7 @@ cab- + What Gets Matched
@@ -1111,11 +1111,11 @@ cab rule.- + Variations
- + Egrep
@@ -1136,7 +1136,7 @@ cab used with the -E option.
- + awk
@@ -1150,7 +1150,7 @@ cab these by default anyway.
- + Options
@@ -1163,7 +1163,7 @@ cab modify how the case and locale sensitivity are to be applied.
- + References
diff --git a/doc/html/boost_regex/syntax/basic_syntax.html b/doc/html/boost_regex/syntax/basic_syntax.html index ff4e7d54..0b45b993 100644 --- a/doc/html/boost_regex/syntax/basic_syntax.html +++ b/doc/html/boost_regex/syntax/basic_syntax.html @@ -28,7 +28,7 @@ Expression Syntax
- + Synopsis
- + POSIX Basic Syntax
@@ -55,7 +55,7 @@.[\*^$- + Wildcard:
- + Anchors:
@@ -85,7 +85,7 @@ of an expression, or the last character of a sub-expression.
- + Marked sub-expressions:
@@ -97,7 +97,7 @@ by a back-reference.- + Repeats:
@@ -155,7 +155,7 @@ aaaa to.
- + Back references:
@@ -173,7 +173,7 @@ aaaa
aaabba- + Character sets:
@@ -186,7 +186,7 @@ aaaa A bracket expression may contain any combination of the following:- + Single characters:
@@ -195,7 +195,7 @@ aaaa or 'c'.- + Character ranges:
@@ -211,7 +211,7 @@ aaaa of the characters only.- + Negation:
@@ -220,7 +220,7 @@ aaaa range a-c.
- + Character classes:
@@ -230,7 +230,7 @@ aaaa character class names.- + Collating Elements:
@@ -259,7 +259,7 @@ aaaa element names.- + Equivalence classes:
@@ -276,7 +276,7 @@ aaaa or even all locales on one platform.- + Combinations:
@@ -284,7 +284,7 @@ aaaa
[[:digit:]a-c[.NUL.]].
- + Escapes
@@ -299,7 +299,7 @@ aaaa will match either a literal '\' or a '^'.
- + What Gets Matched
@@ -309,13 +309,13 @@ aaaa rule.- + Variations
- + Grep
@@ -333,7 +333,7 @@ aaaa As its name suggests, this behavior is consistent with the Unix utility grep.
- + emacs
@@ -613,7 +613,7 @@ aaaa leftmost-longest rule.
- + Options
@@ -627,7 +627,7 @@ aaaa options modify how the case and locale sensitivity are to be applied.
- + References
diff --git a/doc/html/boost_regex/syntax/perl_syntax.html b/doc/html/boost_regex/syntax/perl_syntax.html index 1b68cffe..269c0370 100644 --- a/doc/html/boost_regex/syntax/perl_syntax.html +++ b/doc/html/boost_regex/syntax/perl_syntax.html @@ -28,7 +28,7 @@ Syntax
- + Synopsis
@@ -43,7 +43,7 @@ boost::regex e2(my_expression, boost::regex::perl|boost::regex::icase);
.[{()\*+?|^$
@@ -83,7 +83,7 @@ A '$' character shall match the end of a line.
@@ -188,7 +188,7 @@ to be applied to.
@@ -360,7 +360,7 @@ named "two".
@@ -387,7 +387,7 @@
(?:abc)??
has exactly the same effect.
@@ -399,7 +399,7 @@ A bracket expression may contain any combination of the following:
@@ -407,7 +407,7 @@ 'b', or 'c'.
@@ -430,7 +430,7 @@
matches any character that is not in the range a-c
.
\0
character.
@@ -500,7 +500,7 @@
[[:digit:]a-c[.NUL.]]
.
\p{digit}
.
@@ -1021,7 +1021,7 @@
\B
Matches only when not at a word boundary.
@@ -1048,7 +1048,7 @@
(?=\n?\z)
.
@@ -1083,7 +1083,7 @@ followed by a sequence of zero or more combining characters.
(?>\x0D\x0A?|[\x0A-\x0C\x85\x{2028}\x{2029}])
.
(?
.
match_results
member functions.
(?# ... )
is treated as a comment, it's contents are ignored.
@@ -1168,7 +1168,7 @@ pattern only.
@@ -1199,7 +1199,7 @@ # 1 2 2 3 2 3 4
@@ -1222,7 +1222,7 @@ could be used to validate the password.
@@ -1236,7 +1236,7 @@ (pattern must be of fixed length).
@@ -1540,7 +1540,7 @@
and JScript
are all synonyms for perl
.
@@ -1552,7 +1552,7 @@ are to be applied.
no_mod_s
.
diff --git a/doc/html/boost_regex/unicode.html b/doc/html/boost_regex/unicode.html index 978001d7..1c47471f 100644 --- a/doc/html/boost_regex/unicode.html +++ b/doc/html/boost_regex/unicode.html @@ -30,7 +30,7 @@ There are two ways to use Boost.Regex with Unicode strings:
Copyright © 1998 -2007 John Maddock
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)
@@ -196,7 +196,7 @@Last revised: March 17, 2010 at 16:59:52 GMT |
+Last revised: May 15, 2010 at 09:09:46 GMT |