diff --git a/doc/Attic/basic_regex.html b/doc/Attic/basic_regex.html index a2aa6f96..16774739 100644 --- a/doc/Attic/basic_regex.html +++ b/doc/Attic/basic_regex.html @@ -95,6 +95,7 @@ class basic_regex { static const regex_constants::syntax_option_type optimize = regex_constants::optimize; static const regex_constants::syntax_option_type collate = regex_constants::collate; static const regex_constants::syntax_option_type newline_alt = regex_constants::newline_alt; + static const regex_constants::syntax_option_type no_except = regex_constants::newline_alt; // construct/copy/destroy: explicit basic_regex (); @@ -134,6 +135,7 @@ class basic_regex { // const operations: flag_type flags() const; + int status()const; basic_string<charT> str() const; int compare(basic_regex&) const; // locale: @@ -264,7 +266,7 @@ static const regex_constants::syntax_option_type newline_alt = regex_consta
Requires: p shall not be a null pointer.
Throws: bad_expression
if p is not a valid regular
- expression.
Effects: 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 p, and interpreted
@@ -332,7 +334,7 @@ static const regex_constants::syntax_option_type newline_alt = regex_consta
basic_regex(const charT* p1, const charT* p2, flag_type f = regex_constants::normal);
Requires: p1 and p2 are not null pointers, p1 < p2
.
Throws: bad_expression
if [p1,p2) is not a valid regular
- expression.
Effects: 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
@@ -401,7 +403,7 @@ static const regex_constants::syntax_option_type newline_alt = regex_consta
Requires: p shall not be a null pointer, len < max_size()
.
Throws: bad_expression
if p is not a valid regular
- expression.
Effects: 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
@@ -529,7 +531,7 @@ template <class ST, class SA>
basic_regex(const basic_string<charT, ST, SA>& s, flag_type f = regex_constants::normal);
Throws: bad_expression
if s is not a valid regular
- expression.
Effects: Constructs an object of class basic_regex
; the
object's internal finite state machine is constructed from the regular
expression contained in the string s, and interpreted according to the
@@ -596,7 +598,7 @@ template <class ForwardIterator>
basic_regex(ForwardIterator first, ForwardIterator last, flag_type f = regex_constants::normal);
Throws: bad_expression
if the sequence [first, last)
- is not a valid regular expression.
Effects: 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
@@ -672,7 +674,6 @@ template <class ST, class SA>
basic_regex& operator=(const basic_string<charT, ST, SA>& p);
Effects: Returns the result of assign(p)
.
const_iterator begin() const; @@ -720,7 +721,7 @@ basic_regex& assign(const charT* ptr, flag_type f = regex_constants::normal) flag_type f = regex_constants::normal);
Throws: bad_expression
if s is not a valid regular
- expression.
Returns: *this
.
Effects: Assigns the regular expression contained in the string s, interpreted according the option flags specified @@ -796,6 +797,13 @@ basic_regex& assign(InputIterator first, InputIterator last,
Effects: Returns a copy of the regular expression syntax flags that were
passed to the object's constructor, or the last call to assign.
+ int status() const;
+
+ Effects: 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.
basic_string<charT> str() const;
Effects: Returns a copy of the character sequence passed to the object's diff --git a/doc/Attic/syntax_option_type.html b/doc/Attic/syntax_option_type.html index e346af32..fbd5cdbe 100644 --- a/doc/Attic/syntax_option_type.html +++ b/doc/Attic/syntax_option_type.html @@ -170,6 +170,12 @@ static const syntax_option_type collate; operator |. Allows newline separated lists to be used as a list of alternatives. +
Requires: p shall not be a null pointer.
Throws: bad_expression
if p is not a valid regular
- expression.
Effects: 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 p, and interpreted
@@ -332,7 +334,7 @@ static const regex_constants::syntax_option_type newline_alt = regex_consta
basic_regex(const charT* p1, const charT* p2, flag_type f = regex_constants::normal);
Requires: p1 and p2 are not null pointers, p1 < p2
.
Throws: bad_expression
if [p1,p2) is not a valid regular
- expression.
Effects: 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
@@ -401,7 +403,7 @@ static const regex_constants::syntax_option_type newline_alt = regex_consta
Requires: p shall not be a null pointer, len < max_size()
.
Throws: bad_expression
if p is not a valid regular
- expression.
Effects: 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
@@ -529,7 +531,7 @@ template <class ST, class SA>
basic_regex(const basic_string<charT, ST, SA>& s, flag_type f = regex_constants::normal);
Throws: bad_expression
if s is not a valid regular
- expression.
Effects: Constructs an object of class basic_regex
; the
object's internal finite state machine is constructed from the regular
expression contained in the string s, and interpreted according to the
@@ -596,7 +598,7 @@ template <class ForwardIterator>
basic_regex(ForwardIterator first, ForwardIterator last, flag_type f = regex_constants::normal);
Throws: bad_expression
if the sequence [first, last)
- is not a valid regular expression.
Effects: 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
@@ -672,7 +674,6 @@ template <class ST, class SA>
basic_regex& operator=(const basic_string<charT, ST, SA>& p);
Effects: Returns the result of assign(p)
.
const_iterator begin() const; @@ -720,7 +721,7 @@ basic_regex& assign(const charT* ptr, flag_type f = regex_constants::normal) flag_type f = regex_constants::normal);
Throws: bad_expression
if s is not a valid regular
- expression.
Returns: *this
.
Effects: Assigns the regular expression contained in the string s, interpreted according the option flags specified @@ -796,6 +797,13 @@ basic_regex& assign(InputIterator first, InputIterator last,
Effects: Returns a copy of the regular expression syntax flags that were
passed to the object's constructor, or the last call to assign.
+ int status() const;
+
+ Effects: 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.
basic_string<charT> str() const;
Effects: Returns a copy of the character sequence passed to the object's diff --git a/doc/syntax_option_type.html b/doc/syntax_option_type.html index e346af32..fbd5cdbe 100644 --- a/doc/syntax_option_type.html +++ b/doc/syntax_option_type.html @@ -170,6 +170,12 @@ static const syntax_option_type collate; operator |. Allows newline separated lists to be used as a list of alternatives. +