From edc9f4d288ad880d18a3a60e093c2b5f1581830b Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 20 Mar 2004 11:53:18 +0000 Subject: [PATCH] Added missing preconditions [SVN r22528] --- doc/Attic/regex_token_iterator.html | 11 +++++++---- doc/regex_token_iterator.html | 11 +++++++---- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/doc/Attic/regex_token_iterator.html b/doc/Attic/regex_token_iterator.html index 59159f60..ef06779c 100644 --- a/doc/Attic/regex_token_iterator.html +++ b/doc/Attic/regex_token_iterator.html @@ -76,7 +76,7 @@ typedef regex_token_iterator<const char*> cregex_token_i typedef regex_token_iterator<std::string::const_iterator> sregex_token_iterator; #ifndef BOOST_NO_WREGEX typedef regex_token_iterator<const wchar_t*> wcregex_token_iterator; -typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_iterator; +typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_iterator; #endif

Description

@@ -84,7 +84,8 @@ typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_

Effects: constructs an end of sequence iterator.

regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, 
                      int submatch = 0, match_flag_type m = match_default);
-

Preconditions: !re.empty().

+

Preconditions: !re.empty().  Object re shall exist + for the lifetime of the iterator constructed from it.

Effects: constructs a regex_token_iterator that will enumerate one string for each regular expression match of the expression re found within the sequence [a,b), using match flags m.  The @@ -99,7 +100,8 @@ typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_ configured in non-recursive mode).

regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, 
                      const std::vector<int>& submatches, match_flag_type m = match_default);
-

Preconditions: submatches.size() && !re.empty().

+

Preconditions: submatches.size() && !re.empty().  + Object re shall exist for the lifetime of the iterator constructed from it.

Effects: constructs a regex_token_iterator that will enumerate submatches.size() strings for each regular expression match of the expression re found within the sequence [a,b), using match flags m.  For @@ -118,7 +120,8 @@ typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_

template <std::size_t N>
 regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, 
                      const int (&submatches)[R], match_flag_type m = match_default);
-

Preconditions: !re.empty().

+

Preconditions: !re.empty().  Object re shall exist + for the lifetime of the iterator constructed from it.

Effects: constructs a regex_token_iterator that will enumerate R strings for each regular expression match of the expression re found within the sequence [a,b), using match diff --git a/doc/regex_token_iterator.html b/doc/regex_token_iterator.html index 59159f60..ef06779c 100644 --- a/doc/regex_token_iterator.html +++ b/doc/regex_token_iterator.html @@ -76,7 +76,7 @@ typedef regex_token_iterator<const char*> cregex_token_i typedef regex_token_iterator<std::string::const_iterator> sregex_token_iterator; #ifndef BOOST_NO_WREGEX typedef regex_token_iterator<const wchar_t*> wcregex_token_iterator; -typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_iterator; +typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_iterator; #endif

Description

@@ -84,7 +84,8 @@ typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_

Effects: constructs an end of sequence iterator.

regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, 
                      int submatch = 0, match_flag_type m = match_default);
-

Preconditions: !re.empty().

+

Preconditions: !re.empty().  Object re shall exist + for the lifetime of the iterator constructed from it.

Effects: constructs a regex_token_iterator that will enumerate one string for each regular expression match of the expression re found within the sequence [a,b), using match flags m.  The @@ -99,7 +100,8 @@ typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_ configured in non-recursive mode).

regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, 
                      const std::vector<int>& submatches, match_flag_type m = match_default);
-

Preconditions: submatches.size() && !re.empty().

+

Preconditions: submatches.size() && !re.empty().  + Object re shall exist for the lifetime of the iterator constructed from it.

Effects: constructs a regex_token_iterator that will enumerate submatches.size() strings for each regular expression match of the expression re found within the sequence [a,b), using match flags m.  For @@ -118,7 +120,8 @@ typedef regex_token_iterator<<std::wstring::const_iterator> wsregex_token_

template <std::size_t N>
 regex_token_iterator(BidirectionalIterator a, BidirectionalIterator b, const regex_type& re, 
                      const int (&submatches)[R], match_flag_type m = match_default);
-

Preconditions: !re.empty().

+

Preconditions: !re.empty().  Object re shall exist + for the lifetime of the iterator constructed from it.

Effects: constructs a regex_token_iterator that will enumerate R strings for each regular expression match of the expression re found within the sequence [a,b), using match