Commit Graph
659 Commits
Author SHA1 Message Date
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 6c181b02ba Add some typecasts to prevent copying a buffer twice (makes sure we find the correct overload of assign).
[SVN r72541]
2011-06-10 17:17:14 +00:00
John Maddock 27ad285fbf Fix access violation caused by past-the-end iterator deference for expressions such as ".*?".
[SVN r72540]
2011-06-10 17:03:48 +00:00
John Maddock 829f4fd8ab Suppress msvc warning.
Fixes #5504.

[SVN r71496]
2011-04-26 08:12:27 +00:00
John Maddock 6ed11d27d7 Pass submatches along to token-iterator constructor.
Fixes #5472.

[SVN r71478]
2011-04-25 10:49:26 +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 3ce59d3bbd Fix issue with VC10 not compiling std::messages<unsigned short>.
[SVN r71038]
2011-04-06 17:50:57 +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 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 27eb8e46ff Stop accessing/comparing singular iterators.
Fixes #4708.

[SVN r65800]
2010-10-07 07:23:58 +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 ae013c447c In Perl mode then "something+++" should be an error.
Add the necessary error handling.
Fixes #4608.

[SVN r65145]
2010-08-31 11:25:56 +00:00
John Maddock 6d53e5ecae Change cygwin to use C locale - std::ctype yields incorrect results for xdigit class on this platform.
[SVN r64628]
2010-08-06 09:26:37 +00:00
John Maddock d29ed80b69 Move inline methods class inline to suppress gcc warnings about different linkage specs.
[SVN r64626]
2010-08-06 09:17:42 +00:00
John Maddock 2403e7e0d7 Fix broken workaround code.
[SVN r64619]
2010-08-05 17:26:52 +00:00
John Maddock 73fc09f4a3 Set push and pop pragmas to be guarded by the same logic.
[SVN r63740]
2010-07-08 10:31:00 +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 eaaf00a924 Fix bug in branch reset code.
[SVN r62478]
2010-06-06 12:38:26 +00:00
John Maddock 2e41f13526 Change regex to make use of new Boost.Config macros.
[SVN r62331]
2010-05-30 17:24:45 +00:00
John Maddock e3dfbd0953 Fix allocator concept to match C++03 requirements in table 32.
[SVN r62120]
2010-05-21 16:20:15 +00:00
John Maddock 05636b5c89 Fix numerous VC-10 compiler warnings.
Rewrite ICU configuration to use the new Boost.Build configuration logic.

[SVN r61893]
2010-05-10 12:13:49 +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 a2142edcd3 Disambiguate between boost::ref and std:ref etc.
Suppress some new warnings from VC-10.
Fix singular iterator logic (fixes VC-10 failures).
Fixes #4114.
Fixes #3632

[SVN r61430]
2010-04-20 16:03:14 +00:00
John Maddock 67f5369cae Add support for Boost.Ref in match_results::format.
Update docs accordingly.
Fixes #4020.

[SVN r60678]
2010-03-17 18:20:09 +00:00
John Maddock 50892585d3 Remove dead code.
[SVN r59415]
2010-02-01 13:12:50 +00:00
John Maddock d686c89333 Improve regex performance on msvc by removing statically allocated recursion stack, and using a std::vector instead.
[SVN r59414]
2010-02-01 13:10:28 +00:00
John Maddock c8e56504d9 Suppress a few warnings.
[SVN r59275]
2010-01-27 13:17:51 +00:00
John Maddock e1bd7c7a9b Change name of extern "C" function so it's prefixed with "boost_"
[SVN r58812]
2010-01-08 11:59:23 +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 ff4eaacbc4 Symbian patches.
Fixes #3764.
Fixes #3763.

[SVN r58342]
2009-12-13 11:40:28 +00:00
John Maddock 35c63fc141 Fix -Wshadow gcc warnings.
Update and regenerate docs.
Fixes #3718.

[SVN r58154]
2009-12-05 12:15:20 +00:00
John Maddock a83329dd28 Allow std::locale's to not have a messages facet installed (fixes some STLPort issues).
Allow match_results to handle singular iterators.
Update docs to match.

[SVN r57860]
2009-11-23 10:45:44 +00:00
John Maddock 97005c2017 Suppress external templates with Mingw32 - it seems to cause issues with dll's.
Fix match_results.swap.
Add missing namespace qualifiers to ICU code: fixes #3631.

[SVN r57739]
2009-11-18 09:59:42 +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 308c336700 Added support for function objects as well as strings when formatting.
Updated and regenerated docs.

[SVN r57250]
2009-10-30 17:25:12 +00:00
John Maddock 9188464e39 Tighten up error handling and checking.
[SVN r57133]
2009-10-24 15:51:57 +00:00
John Maddock 6b4d144be9 Fix for old GCC versions with BOOST_REGEX_BUGGY_CTYPE_FACET defined.
[SVN r55837]
2009-08-28 16:07:13 +00:00
John Maddock 75b99d3a37 Suppress GCC warnings.
[SVN r55688]
2009-08-20 17:27:24 +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 02a629baf7 Simplify and fix PP logic.
[SVN r53729]
2009-06-07 17:50:17 +00:00
John Maddock 5a80ab5ed4 Another tentative VC10 beta fix.
[SVN r53664]
2009-06-06 08:49:30 +00:00
John Maddock cd0535d368 Try and fix build errors with VC-10 beta.
[SVN r53595]
2009-06-03 11:24:22 +00:00
John Maddock 944a01f39e GCC warning suppression fixes.
Fixes #3071.

[SVN r53274]
2009-05-26 08:31:23 +00:00
Steven Watanabe d279b2c0a1 Qualify lower_bound with std:: to allow regex to work with Sun CC
[SVN r53088]
2009-05-18 15:42:04 +00:00
John Maddock aa16fa7fa1 Added Perl-5.10 "branch reset" support.
[SVN r52961]
2009-05-13 09:17:36 +00:00
John Maddock 9d18ba1151 Add support for named and/or subexpressions with indexes > 99 in conditional format expressions.
[SVN r52873]
2009-05-10 09:14:46 +00:00
John Maddock 55d979060c Add support for named sub-expressions.
[SVN r52823]
2009-05-07 09:46:51 +00:00