Commit 49ff5e81 by Jonathan Wakely Committed by Jonathan Wakely

* include/tr1_impl/regex: Fix bad return statements and typos.

From-SVN: r143137
parent 84b9b872
2009-01-06 Jonathan Wakely <jwakely.gcc@gmail.com>
* include/tr1_impl/regex: Fix bad return statements and typos.
2009-01-05 Benjamin Kosnik <bkoz@redhat.com> 2009-01-05 Benjamin Kosnik <bkoz@redhat.com>
* include/tr1_impl/regex: Remove unimplemented function definitions. * include/tr1_impl/regex: Remove unimplemented function definitions.
......
...@@ -555,7 +555,7 @@ namespace regex_constants ...@@ -555,7 +555,7 @@ namespace regex_constants
lookup_collatename(_Fwd_iter __first, _Fwd_iter __last) const; lookup_collatename(_Fwd_iter __first, _Fwd_iter __last) const;
/** /**
* @brief Maps one or mire characters to a named character * @brief Maps one or more characters to a named character
* classification. * classification.
* *
* @param first beginning of the character sequence. * @param first beginning of the character sequence.
...@@ -1067,7 +1067,7 @@ namespace regex_constants ...@@ -1067,7 +1067,7 @@ namespace regex_constants
inline void inline void
swap(basic_regex<_Ch_type, _Rx_traits>& __lhs, swap(basic_regex<_Ch_type, _Rx_traits>& __lhs,
basic_regex<_Ch_type, _Rx_traits>& __rhs) basic_regex<_Ch_type, _Rx_traits>& __rhs)
{ return __lhs.swap(__rhs); } { __lhs.swap(__rhs); }
// [7.9] Class template sub_match // [7.9] Class template sub_match
...@@ -1817,6 +1817,7 @@ namespace regex_constants ...@@ -1817,6 +1817,7 @@ namespace regex_constants
{ {
match_results __tmp(__rhs); match_results __tmp(__rhs);
this->swap(__tmp); this->swap(__tmp);
return *this;
} }
/** /**
...@@ -1880,7 +1881,7 @@ namespace regex_constants ...@@ -1880,7 +1881,7 @@ namespace regex_constants
* @brief Gets the offset of the beginning of the indicated submatch. * @brief Gets the offset of the beginning of the indicated submatch.
* @param sub indicates the submatch. * @param sub indicates the submatch.
* *
* This function returns the offset from the beginnig of the target * This function returns the offset from the beginning of the target
* sequence to the beginning of the submatch, unless the value of @p sub * sequence to the beginning of the submatch, unless the value of @p sub
* is zero (the default), in which case this function returns the offset * is zero (the default), in which case this function returns the offset
* from the beginning of the target sequence to the beginning of the * from the beginning of the target sequence to the beginning of the
...@@ -2083,7 +2084,7 @@ namespace regex_constants ...@@ -2083,7 +2084,7 @@ namespace regex_constants
inline void inline void
swap(match_results<_Bi_iter, _Allocator>& __lhs, swap(match_results<_Bi_iter, _Allocator>& __lhs,
match_results<_Bi_iter, _Allocator>& __rhs) match_results<_Bi_iter, _Allocator>& __rhs)
{ return __lhs.swap(__rhs); } { __lhs.swap(__rhs); }
// [7.11.2] Function template regex_match // [7.11.2] Function template regex_match
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment