jzmaddock
2517588955
Fix \R when no_escapes_in_list flag is set.
...
Fixes: https://github.com/boostorg/regex/issues/57
2018-07-22 11:26:33 +01:00
jzmaddock
231dbc3ebf
Correct behaviour of \b when matching null-strings.
...
See https://github.com/boostorg/regex/issues/40
2018-07-21 15:19:41 +01:00
John Maddock
35fbb2e5e2
Disable some std::locale tests with VC15.7 as they (incorrectly) assert in the C runtime.
2018-07-17 19:36:03 +01:00
Daniela Engert
cc5a4e85ae
Inheriting std::iterator is deprecated in c++17.
...
Therefore replace the inheritance by lifting std::iterator's members into the derived class. Fortunately, this is already done in Boost.Regex so that dropping the inheritance is a no-brainer.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-12-22 15:59:49 +01:00
jzmaddock
e94f079215
Regex: fix locale specific tests so they do all pass now!
2017-11-09 11:31:48 +00:00
jzmaddock
f949e55e9c
Regex: Add better tests for skipping of comments in expressions.
2017-10-26 18:04:41 +01:00
jzmaddock
50453e319a
Regex: Repeating a repeat is not allowed, even if there is a comment block in between the two.
...
Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3479#c2
2017-10-24 17:56:02 +01:00
jzmaddock
f343cab680
Regex: Fix handling of repeats when mod_x is in effect.
...
See https://oss-fuzz.com/v2/testcase-detail/6420486177161216?noredirect=1
2017-10-08 11:52:54 +01:00
jzmaddock
09894a5e21
Fix escapes in test case.
2017-08-04 09:08:12 +01:00
jzmaddock
a32e0cc9d3
Fix pattern escaping in regex used for \R so it works when the x-modifier is in effect.
...
Fixes: https://svn.boost.org/trac10/ticket/12960
2017-08-03 18:04:41 +01:00
jzmaddock
5c543a8e2b
Copy named sub-expression info when adapting ICU via iterators.
...
Fixes: https://svn.boost.org/trac10/ticket/13126 .
2017-08-01 19:43:44 +01:00
jzmaddock
d1789c75da
de-fuzz: generate first corpus files.
2017-02-21 18:00:08 +00:00
jzmaddock
edd94320c7
de-fuzz: prevent infinite recursion in recursive expressions (case 14).
2017-02-15 19:44:41 +00:00
jzmaddock
7719dedbaf
Fix buffer over-run error when parsing invalid regex.
...
See: https://svn.boost.org/trac/boost/ticket/12222 .
2016-06-09 19:00:29 +01:00
jzmaddock
9059bfb5c6
Fix case-sensitivity change behaviour.
...
See https://svn.boost.org/trac/boost/ticket/11205 .
Update docs to match.
2016-03-14 19:22:18 +00:00
jzmaddock
6b36c9a7c6
Fix valgrind detected issues
2015-10-23 13:07:04 +01:00
jzmaddock
afca81cd76
disambiguate "extended"
2015-10-22 18:02:43 +01:00
jzmaddock
b4541fa88e
Qualify some ambiguous names.
2015-10-22 13:33:25 +01:00
jzmaddock
09e789b4c6
Remove all uses of Boost.Test.
2015-10-08 10:06:34 +01:00
jzmaddock
201d3a424e
Add recursive implementation of THEN.
2015-10-05 18:27:37 +01:00
jzmaddock
7a4e883675
Get THEN working for non-recursive implementation.
...
Fix various bugs in the other verbs exposed by new tests.
2015-10-04 19:28:25 +01:00
jzmaddock
9a36e035f2
Add support for PRUNE and SKIP (no MARK's though).
2015-10-01 18:34:59 +01:00
jzmaddock
83140ddbed
Fix up recursive implementation of ACCEPT and COMMIT.
2015-09-30 18:47:59 +01:00
jzmaddock
b208ef4eed
Get commit working in recursive mode.
2015-09-29 19:20:09 +01:00
jzmaddock
c281c9cc40
Add COMMIT support plus lots of tests.
2015-09-29 17:40:43 +01:00
jzmaddock
2580fb035f
Add support for ACCEPT verb.
2015-09-26 18:47:39 +01:00
jzmaddock
b557febb0e
Start adding Perl verb support with FAIL as the first supported verb.
2015-09-25 19:30:20 +01:00
jzmaddock
6ffcc5ede0
Change detail namespace.
...
Big search and replace to change name of internal namepace so it's mangled with the Boost version number - the aim is to reduce the chances of mixing different header and library versions.
2015-04-04 19:10:37 +01:00
jzmaddock
297e87360c
Fix for bug in recursive expressions, see http://lists.boost.org/Archives/boost/2015/03/221018.php
2015-03-24 19:09:17 +00:00
jzmaddock
05b582761d
Fix case that differs from Perl behavior.
2014-09-25 11:45:26 +01:00
John Maddock
dc63209905
Fix no-exception handling build with GCC.
2013-12-20 11:44:50 +00:00
jzmaddock
d9cb36d0d3
Fix GCC test compiles with exception handling disabled.
2013-12-18 17:06:08 +00:00
jzmaddock
937cd366c5
BREAKING CHANGE: change mark_count to do what's documented (and what the std does).
...
See https://svn.boost.org/trac/boost/ticket/9227 .
2013-12-14 17:43:24 +00:00
John Maddock
66d8b8140a
When a {} repeat sequence is invalid or incomplete, and the language is Perl, then backtrack and treat the sequence as a literal, not a repeat operator.
...
Fixes #8569 .
[SVN r84371]
2013-05-19 11:12:14 +00:00
John Maddock
55daec294e
Fix misc. GCC-4.8 warnings. Refs #8184
...
[SVN r83980]
2013-04-20 12:14:36 +00:00
John Maddock
fded895002
Fix bug in partial matches and POSIX or literal expressions.
...
[SVN r82673]
2013-01-31 18:31:25 +00:00
John Maddock
ab6b0d9971
Fix begin() and end() members and add tests.
...
Fixes #6346 .
[SVN r79340]
2012-07-07 18:36:25 +00:00
John Maddock
3bfba1a7cf
Fix regex_iterator and regex_replace to do what grep/sed do for multiple repeats when matching in POSIX mode.
...
Fixes #589 .
[SVN r79339]
2012-07-07 18:08:01 +00:00
John Maddock
862f6c1515
Fix use of wide character strings so they conform to the new C++11 rules.
...
[SVN r78218]
2012-04-27 11:35:22 +00:00
John Maddock
b45d6bb70c
Fix issue with (?!) not being a valid expression. Update tests and docs to match.
...
[SVN r77602]
2012-03-28 12:00:34 +00:00
John Maddock
c485b12568
Fix case change bug.
...
Fixes #698 .
[SVN r74898]
2011-10-10 16:55:27 +00:00
John Maddock
03ef9626ba
Set the Unicode locale to a "know good", otherwise a few tests fail on Linux.
...
[SVN r72816]
2011-06-30 12:23:43 +00:00
John Maddock
2fb19b66e0
Update tests for ICU-4.8 and Unicode version 6.
...
[SVN r72801]
2011-06-29 18:17:47 +00:00
John Maddock
fbf5c7d62c
Fix infinite recursion in bad recursive expressions.
...
Fix bug that allows invalid regex to go unnoticed and crash later.
Fixes #5613 .
Fixes #5612 .
[SVN r72612]
2011-06-16 11:27:13 +00:00
John Maddock
337f7036df
Apply patches from #5462 .
...
Add new test case to verify patches are actually working and prevent future breakage!
Fixes #5462 .
[SVN r71240]
2011-04-14 07:53:28 +00:00
John Maddock
463417caba
Fix bug that prevents turning off multiple Perl-modifiers at once.
...
Fixes #5223 .
[SVN r69775]
2011-03-09 18:12:18 +00:00
John Maddock
29088ce346
Fix code to handle multiple named-subexpressions with the same name.
...
Updated test cases to match.
[SVN r65943]
2010-10-13 16:53:13 +00:00
John Maddock
77771ee209
Use call_once in test code to avoid race condition which may otherwise occur.
...
[SVN r65702]
2010-10-01 08:03:51 +00:00
John Maddock
f4d925ad3b
Up the warning level, and fix the resulting warnings with msvc, gcc and Intel.
...
Fix bug in docs and regenerate.
[SVN r65208]
2010-09-03 08:33:13 +00:00
John Maddock
528cf2abb9
Some lookbehind assertions were accepted when they should not have been.
...
Fixes #4309 .
[SVN r62563]
2010-06-08 12:41:41 +00:00