Commit Graph

326 Commits

Author SHA1 Message Date
09d0e434dd Correct directory typo. 2021-10-20 18:54:34 +01:00
e4923f1cfe Add static_assert as a CMake dependency.
As it's now used by core.
2021-10-20 18:38:39 +01:00
354e02f141 Correct stack unwinding inside recursions when seeing (*SKIP).
Fixes https://github.com/boostorg/regex/issues/152.
2021-10-20 12:12:57 +01:00
b10c089aba Disallow repeating a case-change group.
Turn assertion into an error.
Fixes: https://github.com/boostorg/regex/issues/151
2021-10-13 17:59:56 +01:00
1d17ca9d5d Add tests for https://github.com/boostorg/regex/issues/153
Make runtime errors, regex_error's.
2021-10-12 19:23:18 +01:00
b5cb9b7a99 Merge pull request #161 from boostorg/icu_cmake
Update ICU testing and usage.
2021-10-10 19:31:37 +01:00
fc25325cd2 Update ICU testing and usage. 2021-10-10 15:51:51 +01:00
1e524968bb Fix missing #include, fix test cases. 2021-10-09 16:43:53 +01:00
74347b95af Allow back references to refer to a capture that hasn't happened yet ("forward reference").
Fixes https://github.com/boostorg/regex/issues/133.
2021-10-08 14:51:01 +01:00
10cff29314 Change \B to be the opposite of \b.
Also update docs.
Fixes https://github.com/boostorg/regex/issues/123.
2021-10-07 18:52:27 +01:00
6050fa4fd4 Add some more windows checks, remove outdated CI tests
(Xenial is no longer supported).
2021-10-06 08:41:00 +01:00
5ad8906e91 #148: icu_regex_traits::translate_nocase doesn't use case-folding
In translate_nocase replace u_tolower by u_foldCase(c, U_FOLD_CASE_DEFAULT) suitable for single codeunit case folding
2021-08-12 22:07:57 +02:00
d312a085b1 Fix infinite loop in parser.
Fixes: https://github.com/boostorg/regex/issues/140.
2021-06-26 13:52:23 +01:00
cac50784aa Reinstate pending/unicode_iterator.hpp. 2021-01-27 12:32:13 +00:00
a0de6450c0 Add first cut at CMake tests. 2021-01-27 08:56:59 +00:00
b42ec73c4d Add missing file. 2020-12-14 09:04:04 +00:00
c24967709d Reinstate many workarounds to get older msvc versions compiling. 2020-12-13 18:03:47 +00:00
dba05b4d5b Remove more old code and enable standalone mode. 2020-12-10 16:47:08 +00:00
c902bed6a3 Remove more workarounds, start testing standalone mode. 2020-12-04 12:16:36 +00:00
957dc5b79c Remove a lot of boost dependencies and workarounds. 2020-12-01 18:57:42 +00:00
678b3f5c4d Make regex_raw_buffer header only. 2020-11-30 13:21:49 +00:00
9d64cf60ff Make icu.hpp header only. 2020-11-28 18:28:29 +00:00
c9d389014a Make w32_regex_traits.hpp header only. 2020-11-28 16:51:39 +00:00
5002272ec8 Make w32_regex_traits.hpp header only. 2020-11-28 12:49:59 +00:00
ddb682a208 Make cpp_regex_traits all inline. 2020-11-27 18:13:59 +00:00
27d2853615 Make c_regex_traits all inline.
Fix some C++20 issues.
2020-11-26 20:05:38 +00:00
1bb29f2134 Remove external template instantiation. 2020-11-26 17:00:04 +00:00
9eabbbedcf Fixed typos (mainly in comments) 2020-10-01 16:07:35 +02:00
f307ef8353 Turn off testing wide character regexes when not appropriate. 2020-04-19 16:01:21 -04:00
cc09733d03 Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. 2020-03-31 17:42:38 -04:00
afc4229234 Fix recursive expressions where the recursion appears more than once.
Fixes https://github.com/boostorg/regex/issues/87.
Also fix some more msvc warnings.
2020-01-23 19:24:33 +00:00
bc160a58f0 Merge branch 'develop' into git_issue_80
Fixed Conflicts:
	include/boost/regex/v4/basic_regex_creator.hpp
	include/boost/regex/v4/basic_regex_parser.hpp
2020-01-21 12:57:09 +00:00
2cd947f7c4 Suppress msvc warnings.
Fixes: https://github.com/boostorg/regex/issues/80
2020-01-20 19:51:46 +00:00
4bb4d392e4 Remove limit on the number of backrefs possible.
Changes named sub-expressions to use different hashing scheme: high order bit is now always set to clashes between hashes and indexes don't happen until 2^30 or 2^62 sub-expressions in 32 and 64 bit code respectively.
Changes bitmask of seen sub-expressions to use dynamic storage for sub-expression indexes above 64.
Adds tests for the above.
Fixes https://github.com/boostorg/regex/issues/75.
2020-01-19 11:28:36 +00:00
3c6cf87718 Disable external template instances on cygwin - they lead to duplicate symbols for some reason.
See https://github.com/boostorg/regex/issues/64.
2018-11-11 17:12:56 +00:00
8a31a996b8 Merge pull request #63 from jeking3/warnings
resolve some warnings
2018-08-25 18:11:20 +01:00
5177518fe3 Fix missing \n at end of file,
Fix some clang warnings.
Add gcc 7&8 to CI tests.
2018-07-22 18:25:35 +01:00
7b2ccc0095 Tentative fix for msvc warnings.
See https://github.com/boostorg/regex/issues/61.
Adds warning test case.
2018-07-22 17:16:21 +01:00
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
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
39f1cc0238 resolve some warnings 2018-07-20 18:29:11 +00:00
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
3043906da2 Regex.ICU: use BOOST_REGEX_UCHAR_IS_WCHAR_T in a few other places, and improve concept checks. 2017-12-24 18:39:54 +00:00
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
47be67134a Fix -Wshadow warnings in quick.cpp 2017-12-03 00:36:11 +02:00
00e802c671 Add quick test target (for CI) 2017-12-02 18:24:00 +02:00
e94f079215 Regex: fix locale specific tests so they do all pass now! 2017-11-09 11:31:48 +00:00
f949e55e9c Regex: Add better tests for skipping of comments in expressions. 2017-10-26 18:04:41 +01:00
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
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