jzmaddock
957dc5b79c
Remove a lot of boost dependencies and workarounds.
2020-12-01 18:57:42 +00:00
jzmaddock
c3ab6405ad
Merge branch 'use-boost-override' of https://github.com/EugeneZelenko/regex into develop
...
Resolved Conflicts:
include/boost/regex/v4/cpp_regex_traits.hpp
src/wc_regex_traits.cpp
2020-10-12 19:34:55 +01:00
jzmaddock
77e9223a84
Merge pull request #103 from Romain-Geissler-1A/devel
...
Fix clang -Wdeprecated-copy warning in basic_regex_creator.hpp
2020-10-12 18:24:31 +01:00
Peter Klotz
9eabbbedcf
Fixed typos (mainly in comments)
2020-10-01 16:07:35 +02:00
Eugene Zelenko
c9d33026f3
Use BOOST_OVERRIDE to fix GCC -Wsuggest-override and Clang-tidy modernize-use-override warnings.
...
Also fixed Clang-tidy modernize-redundant-void-arg, readability-container-size-empty, and some readability-simplify-boolean-expr warnings.
Alphabetical order of STL headers.
Fix some misspellings.
2020-05-25 17:04:15 -07:00
Romain Geissler
fd710a3bf0
Fix clang -Wdeprecated-copy warning in basic_regex_creator.hpp
...
/data/mwrep/res/osp/Boost/19-0-0-18/include/boost/regex/v4/basic_regex_creator.hpp:52:4: error: definition of implicit copy assignment operator for 'digraph<char>' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
digraph(const digraph<charT>& d) : std::pair<charT, charT>(d.first, d.second){}
^
/data/mwrep/res/osp/Boost/19-0-0-18/include/boost/regex/v4/basic_regex_parser.hpp:1660:17: note: in implicit copy assignment operator for 'boost::re_detail_107000::digraph<char>' first required here
result = *m_position++;
2020-02-28 02:17:58 +00:00
jzmaddock
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
jzmaddock
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
jzmaddock
2cd947f7c4
Suppress msvc warnings.
...
Fixes: https://github.com/boostorg/regex/issues/80
2020-01-20 19:51:46 +00:00
jzmaddock
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
jzmaddock
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
Andrey Semashev
f89c75f7b0
Silence MSVC 14.1 warnings of narrowing conversion
...
In debug mode the compiler is not able to see that the int constant can fit in the character type without loss.
2017-03-25 20:34:56 +03:00
jzmaddock
982f3bbe45
de-fuzz: need to fail when a named recursive subexpression refers to an invalid name.
2017-02-23 09:30:49 +00:00
jzmaddock
b0a83dc8d9
de-fuzz: fix overflow in shift
2017-02-21 11:04:26 +00:00
jzmaddock
94cd9e582b
Simplify adding items to lists, and fix Jamfile build failure.
2017-02-20 13:44:24 +00:00
jzmaddock
d70b7bcefe
de-fuzz: fix infinite recursion when analysing tail-recursive expressions.
2017-02-16 19:24:22 +00:00
jzmaddock
b05fafe1c5
de-fuzz: improve set creation so as not to allow duplicate characters.
2017-02-14 19:41:35 +00:00
jzmaddock
febd44ddd6
de-fuzz, first fix for issue 14.
...
Make zeros in character set a single character long only.
2017-02-14 18:13:32 +00:00
jzmaddock
c281c9cc40
Add COMMIT support plus lots of tests.
2015-09-29 17:40:43 +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
Peter A. Bigot
1b8322ecbf
fix trac 9544: gcc 4.9.0 -std=c++1y breakage
...
This is GCC bug PR C++/59681 but the Boost fix is trivial and the GCC
one is (probably) not.
See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59681
2014-01-04 22:03:10 -06:00
Stephen Kelly
2d8ee203bf
Regex: Remove obsolete GCC version checks.
...
[SVN r86065]
2013-09-30 15:57:49 +00:00
Stephen Kelly
70cd773533
Regex: Remove obsolete MSVC version checks.
...
[SVN r85921]
2013-09-25 21:16:24 +00:00
John Maddock
8a16bff57a
Apply updated patches from #8476 .
...
Fixes #8476 .
[SVN r84052]
2013-04-26 10:33:22 +00:00
John Maddock
eed2a486c4
Apply patch from #8476 .
...
Fixes #8476 .
[SVN r84015]
2013-04-22 17:29:50 +00:00
John Maddock
1f016f6999
Fix some more GCC warnings.
...
Fix previous warning suppression which broke tests with GCC.
Refs #6863 .
[SVN r78480]
2012-05-15 16:09:12 +00:00
John Maddock
543e912e14
Fix clang warnings.
...
Fixes #6863 .
[SVN r78431]
2012-05-12 08:11:01 +00:00
John Maddock
c485b12568
Fix case change bug.
...
Fixes #698 .
[SVN r74898]
2011-10-10 16:55:27 +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
680588f638
Fix some compiler warnings by using "int" consistently for hash values.
...
[SVN r66072]
2010-10-18 12:07:14 +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
528cf2abb9
Some lookbehind assertions were accepted when they should not have been.
...
Fixes #4309 .
[SVN r62563]
2010-06-08 12:41:41 +00:00
John Maddock
fa96f4edf1
Change "id" to "idx" to be Objective C++ compatible.
...
Fixes #2306 .
Fixes #4132 .
Fixes #4191 .
[SVN r61789]
2010-05-05 17:40:07 +00:00
John Maddock
c8e56504d9
Suppress a few warnings.
...
[SVN r59275]
2010-01-27 13:17:51 +00:00
John Maddock
0e1e9804da
Fix bug that effects recursive expressions combined with repeats.
...
[SVN r58722]
2010-01-05 18:04:08 +00:00
John Maddock
6f8773362e
Improve recursion branch-prediction.
...
[SVN r58466]
2009-12-20 12:56:35 +00:00
John Maddock
6e1f3dcceb
Improved error messages generated for thrown exceptions.
...
Suppressed "gcc -Wall -Wextra -pedantic" and "msvc /W4" warnings.
Updated and rebuilt docs.
[SVN r57451]
2009-11-07 15:32:45 +00:00
John Maddock
66b633b417
Added support for (?(DEFINE) blocks and updated the docs accordingly.
...
Added support for ICU libraries which may be named icui18n.lib on some Win32 platforms.
[SVN r55267]
2009-07-29 17:11:56 +00:00
John Maddock
5a6bc29d7c
Added initial support for recursive expressions.
...
Updated docs and tests accordingly.
[SVN r54994]
2009-07-17 10:23:50 +00:00
John Maddock
d70f98e658
Fixes #2306 .
...
Change "id" to "state_id".
[SVN r48751]
2008-09-12 12:40:23 +00:00
John Maddock
0915f19c03
Extended leading repeat optimization to more cases.
...
[SVN r42992]
2008-01-27 18:43:35 +00:00
John Maddock
4a147d198d
Fixes track issue #775 , see http://svn.boost.org/trac/boost/ticket/775 .
...
All regex code should now compile warning free at level 4 with MSCV.
[SVN r38864]
2007-08-23 09:06:24 +00:00
John Maddock
e7b65221d1
Tidied up msvc-warning suppression code.
...
[SVN r38562]
2007-08-10 10:11:03 +00:00
John Maddock
975b05d553
stripped tabs from files
...
[SVN r34559]
2006-07-16 16:05:13 +00:00
John Maddock
10a3b70df1
suppress gcc -Wshadow warnings.
...
[SVN r33426]
2006-03-21 18:36:44 +00:00
John Maddock
afc5ce05cd
Fix concept check regression, and suppress various VC-related warnings.
...
[SVN r32014]
2005-12-13 18:30:53 +00:00
John Maddock
ef37b58888
Another fix for very large numbers of repeats.
...
[SVN r31995]
2005-12-12 13:03:05 +00:00
John Maddock
d4b4f359e5
Fix -analyse errors from VC8.
...
Merge a couple of changes from the release branch.
[SVN r31987]
2005-12-11 17:33:38 +00:00
John Maddock
ffa362ce17
Consolidated patches and performance tweeks.
...
[SVN r31492]
2005-10-27 10:24:50 +00:00
John Maddock
b5bc6e2be9
Enabled negated character classes inside character sets.
...
[SVN r31053]
2005-09-20 12:01:25 +00:00