gcc/libstdc++-v3/testsuite/28_regex
Tim Shen 7b86458e38 regex.h (regex_match<>, [...]): Change regex_executor caller.
2013-09-14  Tim Shen  <timshen91@gmail.com>

	* include/bits/regex.h (regex_match<>, regex_search<>):
	Change regex_executor caller. Now use their return value instead
	of checking __m[0].matched to find out if it's successful.
	(regex_search<>): Move the search logic to regex_executor.
	* include/bits/regex_automaton.h: Add some new _Opcode. Refactor
	_NFA::_M_insert_*.
	* include/bits/regex_automaton.tcc: Add DEBUG dump for new
	_Opcode. Refactor _NFA::_M_insert_*.
	* include/bits/regex_compiler.h (_Compiler<>::_M_get_nfa):
	Use make_shared instead of construct by hand.
	* include/bits/regex_compiler.tcc: Implement _Compiler<>::_M_assertion.
	* include/bits/regex_constants.h: Fix indentation and line breaking.
	* include/bits/regex_executor.h: Add _ResultsEntry to support
	greedy/ungreedy mode. Move regex_search logic here.
	* include/bits/regex_executor.tcc: Implement assertions and
	greedy/ungreedy matching.
	* include/bits/regex_scanner.h: Add a new token _S_token_ungreedy.
	* include/bits/regex_scanner.tcc: Parse a new token _S_token_ungreedy.
	* testsuite/28_regex/algorithms/regex_search/ecma/assertion.cc: New.
	* testsuite/28_regex/algorithms/regex_search/ecma/greedy.cc: New.
	* testsuite/28_regex/algorithms/regex_search/ecma/string_01.cc:
	Fix comment.

From-SVN: r202591
2013-09-14 14:23:44 +00:00
..
algorithms regex.h (regex_match<>, [...]): Change regex_executor caller. 2013-09-14 14:23:44 +00:00
basic_regex Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
constants Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
headers/regex Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
iterators regex_automaton.h: Add dummy node type. 2013-09-05 15:20:39 +00:00
match_results Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
regex_error Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
requirements Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
sub_match Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
traits value.cc: Change template args from char to wchar_t, literals from 'x' to L'x'. 2013-09-11 01:27:31 +00:00
init-list.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
range_access.cc Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00