regex.h (sub_match::sub_match): Add.
authorJonathan Wakely <jwakely.gcc@gmail.com>
Mon, 14 Feb 2011 23:35:22 +0000 (23:35 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 14 Feb 2011 23:35:22 +0000 (23:35 +0000)
commitbf6319b96ade5c4e855b16250250ca0865856640
tree59c2aee9d239a5d1cabd1cdec24ca3c791189f4d
parent01efe923a3e625157653652d13c15836bb3a8c41
regex.h (sub_match::sub_match): Add.

2011-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>

* include/bits/regex.h (sub_match::sub_match): Add.
(match_results::ready): Add.
(match_results::empty): Adjust.
(match_results::length): Add missing dereference.
(match_results::operator[],prefix,suffix): Add debug mode checks.
(match_results::cend): Re-use end().
(match_results::format): Adjust signatures.
(operator==(match_results,match_results)): Implement.
* include/bits/regex_compiler.h (_Scanner_base): Use constexpr.
* include/bits/regex_constants.h (syntax_option_type): Likewise.
* include/bits/regex_grep_matcher.h: Fix comment typo.
(_Specialized_results::_Specialized_results): Simplify.
* include/bits/regex_cursor.h: Fix comment typo.
* include/bits/regex_nfa.h: Likewise.
* testsuite/28_regex/basic_regex/ctors/basic/string_range_01_02_03.cc:
Fix error code, remove xfail.
* testsuite/28_regex/basic_regex/ctors/extended/
string_range_01_02_03.cc: Likewise.

From-SVN: r170158
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.h
libstdc++-v3/include/bits/regex_compiler.h
libstdc++-v3/include/bits/regex_constants.h
libstdc++-v3/include/bits/regex_cursor.h
libstdc++-v3/include/bits/regex_grep_matcher.h
libstdc++-v3/include/bits/regex_nfa.h
libstdc++-v3/testsuite/28_regex/basic_regex/ctors/basic/string_range_01_02_03.cc
libstdc++-v3/testsuite/28_regex/basic_regex/ctors/extended/string_range_01_02_03.cc