jzmaddock
430419705b
Simplify snprintf workaround usage.
...
Via boost/core/snprintf.hpp
Remove some obsolete workarounds.
Remove tabs in files.
Supersedes https://github.com/boostorg/regex/pull/188 .
2022-12-13 18:48:59 +00:00
zhangyiru
13ba033116
sync PR 162 and PR 163 to v4
2021-10-15 10:36:47 -04:00
Daniel Krügler
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
jzmaddock
d312a085b1
Fix infinite loop in parser.
...
Fixes: https://github.com/boostorg/regex/issues/140 .
2021-06-26 13:52:23 +01:00
Nikita Kniazev
d2a5ddd8a9
Cease dependence on Iterator
...
It is a fat dependence because it brings Fusion.
2021-06-07 01:47:25 +03:00
jzmaddock
cac50784aa
Reinstate pending/unicode_iterator.hpp.
2021-01-27 12:32:13 +00:00
jzmaddock
95950392f8
Warning suppression.
2020-12-16 14:50:15 +00:00
jzmaddock
bb2346519c
Fix some C++14 ism's.
2020-12-13 18:14:50 +00:00
jzmaddock
5e982204f7
Add some missing #includes.
2020-12-11 13:08:38 +00:00
jzmaddock
117db379e3
Add missing function bodies to v4 icu code.
2020-12-10 18:33:13 +00:00
jzmaddock
f9db491056
More missing files.
2020-12-10 17:04:30 +00:00
jzmaddock
957dc5b79c
Remove a lot of boost dependencies and workarounds.
2020-12-01 18:57:42 +00:00
jzmaddock
678b3f5c4d
Make regex_raw_buffer header only.
2020-11-30 13:21:49 +00:00
jzmaddock
49e8067b80
Make the contents of regex.hpp all inline.
2020-11-29 19:10:05 +00:00
jzmaddock
c9d389014a
Make w32_regex_traits.hpp header only.
2020-11-28 16:51:39 +00:00
jzmaddock
5002272ec8
Make w32_regex_traits.hpp header only.
2020-11-28 12:49:59 +00:00
jzmaddock
ddb682a208
Make cpp_regex_traits all inline.
2020-11-27 18:13:59 +00:00
jzmaddock
27d2853615
Make c_regex_traits all inline.
...
Fix some C++20 issues.
2020-11-26 20:05:38 +00:00
jzmaddock
1bb29f2134
Remove external template instantiation.
2020-11-26 17:00:04 +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
Edward Diener
f712b89e6f
Inline friend function definitions for exported/imported classes must become declarations and inline definitions outside the class for Embarcadero C++ clang-based compilers. This bug has been reported to Embarcadero.
2020-04-25 20:13:16 -04:00
Edward Diener
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
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
f64c22870f
Fix exception specification and msvc warning push/pop.
2020-01-21 10:14:37 +00:00
jzmaddock
2cd947f7c4
Suppress msvc warnings.
...
Fixes: https://github.com/boostorg/regex/issues/80
2020-01-20 19:51:46 +00:00
jzmaddock
deb9104ceb
Fix gcc warning.
2020-01-19 17:19:54 +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
082437d4fd
Merge branch 'develop' into staticptrfix
2020-01-07 19:00:38 +00:00
jzmaddock
a3814a31e9
Merge pull request #92 from rdoeffinger/spellingfix
...
Minor spelling fix.
2020-01-07 18:54:30 +00:00
jzmaddock
6d00984aa9
Merge pull request #79 from stac47/fix_deprecated_copy
...
Fix gcc -Wdeprecated-copy
2020-01-07 18:54:04 +00:00
Reimar Döffinger
3168641320
Avoid generating pointers in writeable data section.
...
They increase memory consumption and make exploits
easier and are completely unnecessary.
Avoid them by either avoiding the pointer indirection
completely by using char arrays for strings instead
of char pointers, convert "static" pointer variables
to simple local variables, or mark the array of
pointers as const instead of just the things pointed to.
2019-11-08 11:18:43 +01:00
Reimar Döffinger
0baf08108f
Minor spelling fix.
2019-11-05 22:25:11 +01:00
Mike Dev
9db6d59861
Update hash.hpp include path
2019-05-11 19:07:33 +02:00
Laurent Stacul
ac03c4fecc
Fix gcc -Wdeprecated-copy
2019-03-01 08:36:15 +00:00
Marcel Raad
a6586678a5
Fix -Wextra-semi clang warnings
...
Remove superfluous semicola after constructor bodies.
2019-02-25 13:29:16 +01:00
jzmaddock
f5b7d3a4f9
Correct apple clang version check.
2018-07-23 19:10:47 +01:00
jzmaddock
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
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
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
867cc5f0fc
Stop using BOOST_WORKAROUND in a header which may be included in C code.
2018-07-18 18:57:07 +01:00
John Maddock
ac49efa23f
Apply changes from https://github.com/boostorg/regex/pull/16
2018-07-18 18:30:14 +01:00
Peter Klotz
80a2a12b7a
Fixed typo in exception text
2018-02-11 20:35:50 +01:00
jzmaddock
fa8b79bca9
Regex.Defuzz, fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4615
2018-01-04 18:51:21 +00:00
jzmaddock
b13fb44ac5
Regex.Defuzzing: Fix for https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4659&q=jz.maddock&colspec=ID%20Type%20Component%20Status%20Proj%20Reported%20Owner%20Summary
2018-01-03 18:32:45 +00:00