Commit Graph

563 Commits

Author SHA1 Message Date
John Maddock
c485b12568 Fix case change bug.
Fixes #698.

[SVN r74898]
2011-10-10 16:55:27 +00:00
John Maddock
f04f7605ce Improve sprintf usage.
Stop passing UDT's through (...) even in meta programs.
Fixes #5958.
Refs #5835.


[SVN r74897]
2011-10-10 15:46:07 +00:00
John Maddock
cc03c77deb Fix code to use checked iterators.
[SVN r74855]
2011-10-09 17:37:05 +00:00
John Maddock
d08bfeff25 Add checked constructors to the Unicode iterators that need them.
Update icu support code to use the new checking-constructors.
Update tests to check the full Unicode character range (as of Unicode V6).
Add minimal docs describing the iterators.

[SVN r73271]
2011-07-21 10:01:09 +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
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
John Maddock
30941e330d Added support for \g \K and \R.
[SVN r52592]
2009-04-25 17:32:49 +00:00
John Maddock
7b10b5dac5 Added possessive modifiers ++ *+ ?+ {}+.
Added support for \v and \h as character classes as per Perl-5.10. 

[SVN r52558]
2009-04-23 09:51:31 +00:00
David Deakins
3e62631ecb Windows CE does not define the wcscoll function from the CRT so, for WinCE, don't try to pull wcscoll from the global namespace into the std namespace.
[SVN r52106]
2009-04-01 14:56:27 +00:00
John Maddock
8586e7a9cd Patch for ICU on AIX.
[SVN r51952]
2009-03-24 10:08:54 +00:00
John Maddock
15d3eb8f57 Workarounds to allow compilation by Sun studio without the -library=stlport4 option.
[SVN r51221]
2009-02-12 18:11:43 +00:00
John Maddock
48492bb9b5 Fixes #2713: change table initialisation so that it's initialised statically.
[SVN r51103]
2009-02-08 16:30:45 +00:00
John Maddock
840a4ce2f5 Fix gcc warnings.
[SVN r50377]
2008-12-24 10:14:55 +00:00
John Maddock
e4b31ea37f Empty expressions, and empty alternatives are now
allowed when using the Perl regular expression syntax.  This change has
been added for Perl compatibility, when the new [syntax_option_type]
['no_empty_expressions] is set then the old behaviour is preserved and
empty expressions are prohibited.  This is issue
[@https://svn.boost.org/trac/boost/ticket/1081 #1081].

Fixes #1081.

[SVN r50374]
2008-12-23 19:06:04 +00:00
John Maddock
b4152cd74d Fix gcc warnings from ICU wrappers.
Add optional support for marked sub-expression location information.
Add support for ${n} in format replacement text.
Fixes #2556.
Fixes #2269.
Fixes #2514.

[SVN r50370]
2008-12-23 11:46:00 +00:00
John Maddock
d70f98e658 Fixes #2306.
Change "id" to "state_id".

[SVN r48751]
2008-09-12 12:40:23 +00:00
John Maddock
4212c0d915 Update TR1 library to cope with GCC-4.3 in C++0x mode, and in TR1 mode.
Updated regex concepts to match the TR1.
Added "tricky" cmath_test to test for the functions Boost doesn't implement.

[SVN r48413]
2008-08-28 11:02:59 +00:00
John Maddock
1297f92b8a Tentative fix for issue #2244: ICU uses wchar_t as UCHAR whenever sizeof(wchar_t) == 2.
[SVN r48312]
2008-08-23 11:40:58 +00:00
John Maddock
1012d28c32 Fix for issue #2188.
[SVN r48185]
2008-08-17 11:15:07 +00:00
John Maddock
6eb35e2cf1 Fixes #2097.
[SVN r47319]
2008-07-11 18:00:15 +00:00
John Maddock
31b68369ae Patch for VC9 explicit template instantiation.
Fixes #1959.

[SVN r46077]
2008-06-03 12:52:55 +00:00
John Maddock
4c105a90a1 Changed behaviour of \B so that it succeeds when the neither adjacent character is a word character.
[SVN r45354]
2008-05-14 11:19:58 +00:00
John Maddock
5fdf2752ae Add explicit type cast to fix GCC-C++0X mode error.
[SVN r44437]
2008-04-15 17:50:11 +00:00
John Maddock
6e9b9a7995 Doh! Changes to code should actually compile!
A fix for the last change.

[SVN r44145]
2008-04-10 12:46:41 +00:00
John Maddock
e5bc36d7c9 Fix for bug #1790.
[SVN r44128]
2008-04-09 15:32:08 +00:00
John Maddock
0915f19c03 Extended leading repeat optimization to more cases.
[SVN r42992]
2008-01-27 18:43:35 +00:00
John Maddock
37040f4bfd Applies fix for issue #1598: added missing #include.
[SVN r42929]
2008-01-23 16:08:44 +00:00
John Maddock
2cbd1c8882 Patch regex concept checks and TR1 library to work with VC9 + MS TR1 feature pack.
[SVN r42751]
2008-01-14 13:17:09 +00:00
John Maddock
299086b99c Fix bugs reported by Will Drewry: certain invalid regexes can cause the library to access invalid memory, changed to ensure that the correct exception is thrown long before this happens.
[SVN r42674]
2008-01-11 09:55:43 +00:00
John Maddock
31668ed4be Fixes #1471.
[SVN r41973]
2007-12-11 17:28:15 +00:00
John Maddock
4199529fd0 Apply patches for building regex on WinCE see: http://lists.boost.org/Archives/boost/2007/11/130839.php
[SVN r41327]
2007-11-24 12:25:25 +00:00
John Maddock
39eb48c805 Ticket #583.
[SVN r40652]
2007-11-01 18:02:37 +00:00
John Maddock
e84b7e25e1 Fix for http://svn.boost.org/trac/boost/ticket/1381.
[SVN r40649]
2007-11-01 17:16:41 +00:00
John Maddock
22d32e97c9 Removed files that are no longer used and regenerated the Makefiles so they are no longer dependent on the removed files.
Hidden some seldom-used dependencies in static_mutex.hpp to reduce library footprint when extracted with bcp.

[SVN r40427]
2007-10-24 17:57:45 +00:00
John Maddock
768c8c5d88 Fix up file so it can be compiled in C mode.
[SVN r39490]
2007-09-23 17:49:44 +00:00
John Maddock
8f41014bff Added needed include (for CHAR_BIT).
[SVN r39315]
2007-09-16 11:20:25 +00:00
John Maddock
7768f76a78 Applied fix for http://svn.boost.org/trac/boost/ticket/883.
[SVN r39176]
2007-09-10 10:35:51 +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
15085e5bb1 Fixes to bug report 1693867.
[SVN r37355]
2007-04-04 10:12:34 +00:00
John Maddock
0f099c863d Fixed Perl style formatting with \l and \u.
[SVN r37228]
2007-03-19 13:20:26 +00:00
John Maddock
6515861db5 Oops, get the namespace right.
[SVN r37111]
2007-02-28 10:08:29 +00:00
John Maddock
6b3c033e8d Patches for HP aCC and Compaq tru64
[SVN r37106]
2007-02-27 10:13:14 +00:00
John Maddock
fdde09cad6 Fix version check.
[SVN r36733]
2007-01-15 11:10:53 +00:00
John Maddock
2a87146c18 Fix for grep and egrep syntax types, plus tests.
[SVN r36470]
2006-12-20 17:19:25 +00:00
John Maddock
1b5dd57cf6 Update heuristics used to determine max state count, following a bug report from SAP.
Updated tests to match.


[SVN r35656]
2006-10-18 12:56:45 +00:00
John Maddock
8ad427474b Remove and update aCC/HPUX fixes.
Fix regex bug report: some repeats match when they should not.
Added test case.


[SVN r35262]
2006-09-21 18:30:27 +00:00
John Maddock
3e2b01cc86 Removed aCC workarounds that are no longer necessary.
Updated aCC config.


[SVN r34937]
2006-08-24 10:59:16 +00:00
John Maddock
e907a7e6bc Improved const correctness, fixed thread safety bug.
[SVN r34774]
2006-07-29 16:01:48 +00:00
John Maddock
0e9ca3fe5f Fairly trivial patch for bug report 1526472.
[SVN r34680]
2006-07-23 17:30:49 +00:00
Gennaro Prota
896ca1c8f7 fixed license reference text; added final slash to boost url; fixed typos reported in http://bugs.debian.org/378016
[SVN r34626]
2006-07-20 12:41:22 +00:00
John Maddock
975b05d553 stripped tabs from files
[SVN r34559]
2006-07-16 16:05:13 +00:00
John Maddock
f29e092dc8 Fixes for non-greedy repeats.
[SVN r34491]
2006-07-10 09:36:28 +00:00
John Maddock
4f90cd5c91 Allow match_results::position() to return a valid value for partial matches.
[SVN r34324]
2006-06-17 12:48:03 +00:00
John Maddock
c4d13296e6 Fix for non-greedy repeats and partial matches not working correctly in all cases.
[SVN r34027]
2006-05-19 13:06:19 +00:00
John Maddock
2844e5b8cb Added checks for managed code and __fastcall.
[SVN r33558]
2006-04-05 12:24:17 +00:00
John Maddock
10a3b70df1 suppress gcc -Wshadow warnings.
[SVN r33426]
2006-03-21 18:36:44 +00:00
John Maddock
2dbf1804ba Warning supression for VC7.1.
[SVN r32430]
2006-01-27 10:35:04 +00:00
John Maddock
c30c8c281a Appararently we need to include <limits.h> (for gcc-2.95.3)
[SVN r32400]
2006-01-24 17:27:10 +00:00
John Maddock
3f923f1f23 Informative comment
[SVN r32280]
2006-01-10 16:04:17 +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
9d0e60bd74 Change assert into runtime check - it keeps the VC8 analyser happy.
[SVN r32013]
2005-12-13 17:24:28 +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
2635121cc8 Stop calling std::list<>::size(), it's not O(1).
Suppress MSVC warning.
Fix error code for bad repeat range.


[SVN r31833]
2005-11-30 13:56:54 +00:00
John Maddock
1c2ff0ab50 Disable some deffinitions when testing the std::tr1 version.
[SVN r31608]
2005-11-09 17:30:43 +00:00
John Maddock
8a06157b46 Added patches from 1.33 branch:
Fix trailing - in ranges so that [a-b-] works.
Fix performance issue: don't call std::distance on bidirectional iterators.


[SVN r31533]
2005-11-01 18:06:19 +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
John Maddock
5973f3eb07 Have to exclude STLport from some explicit instantiations.
[SVN r31008]
2005-09-16 12:29:15 +00:00
John Maddock
40b7a4902f Fixed remaining zero-width assertion issues.
Added separate file instantiation of ICU support templates.
Ensured code is STLport debug mode clean.


[SVN r30980]
2005-09-14 12:20:41 +00:00
John Maddock
90f4367b8d Ported ICU integration code to VC6/7.
Added some needed std lib #includes.
Reworked gcc separate file template instantiation code.


[SVN r30791]
2005-09-03 11:13:28 +00:00
John Maddock
db5748ae7e Added config and header include changes needed to support MSVC + STLport 5.0.
[SVN r30701]
2005-08-27 10:25:15 +00:00
John Maddock
46b7d89fff Gcc warning suppression.
[SVN r30673]
2005-08-25 17:26:08 +00:00
John Maddock
7ee1a58a84 Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
[SVN r30670]
2005-08-25 16:27:28 +00:00
John Maddock
bfa2168237 gcc+stlport fix.
[SVN r30668]
2005-08-25 12:57:20 +00:00
John Maddock
2f3b212a22 Disabled support for external templates with Intel 8.0 and earlier (it leads to unresolved externals).
[SVN r30643]
2005-08-24 09:59:14 +00:00
John Maddock
d3a9bbfabd Made regex_error backwards compatible with Boost-1.32.
[SVN r30623]
2005-08-22 10:56:15 +00:00
John Maddock
c39176085b Fixed VC7.1-STLport config setup so it works with /Zc:wchar_t
Re-ordered code in static_mutex.hpp to satisfy SGI IRIX.
Added some additional #includes to satisfy SGI Irix.
Fixed strange bug where some non-greedy repeats could repeat more times than permitted.
Fixed return value from basic_regex<>::empty().
Fixed return value from basic_regex<>::expression() and basic_regex<>::size() when the expression is invalid.


[SVN r30604]
2005-08-19 16:10:11 +00:00
John Maddock
bb0ae0940e min/max usage.
[SVN r30036]
2005-07-13 09:38:57 +00:00
John Maddock
1991c202ed Remove dead files.
Strip tabs from files.
Fix MSVC-specific workaround that doesn't work on Win64.


[SVN r30002]
2005-07-12 09:49:21 +00:00
John Maddock
f353225685 Fix gcc warnings, and use the correct facet!
[SVN r29831]
2005-06-28 15:31:33 +00:00
John Maddock
b2e8ee918f Change constant values to avoid clash with gcc-4 on Darwin.
[SVN r29727]
2005-06-22 09:50:29 +00:00
John Maddock
6064aa15cb Made some member public to keep early EDG compilers happy.
[SVN r29704]
2005-06-20 11:48:37 +00:00
Markus Schöpflin
bc6504eda9 Fix for compilers not implementing the resolution to DR45.
[SVN r29699]
2005-06-20 09:22:49 +00:00
John Maddock
c18e751bfc Fix for compilers that define BOOST_NO_STD_MESSAGES.
[SVN r29651]
2005-06-17 11:16:56 +00:00
John Maddock
9e9fc27dc6 Apply patches to regex_iteraor/regex_token_iterator to the unicode iterators as well.
[SVN r29512]
2005-06-10 10:07:49 +00:00
John Maddock
90b647cdd7 Fix gcc-2.95 compatibility, and supress new warnings from gc-4.0 in protected_call.
[SVN r29407]
2005-06-03 16:10:54 +00:00
John Maddock
7a525369cc Removed unsupported file.
Updated macro list in user.hpp.


[SVN r29316]
2005-05-31 09:45:35 +00:00
John Maddock
c2de12f113 Disable features that HP aCC can't cope with (gets basic regression tests passing with aCC).
[SVN r29032]
2005-05-18 11:44:12 +00:00
John Maddock
3022a819e6 Don't try and parse thousands separators in number strings (VC8 bug).
[SVN r29031]
2005-05-18 11:43:02 +00:00
John Maddock
9ca851d01f Fix function calling conventions (Borland C++ fix).
[SVN r28949]
2005-05-16 09:57:26 +00:00
John Maddock
28285007cc Fixes for compaq C++
[SVN r28931]
2005-05-15 16:14:47 +00:00
John Maddock
0ae6fb5796 Changed checks to avoid "pointless comparison" warnings.
Change preprocessor code to not use WCHAR_MAX on OSL (Tru64) systems (it's definition is not preprocessor friendly on gcc).


[SVN r28892]
2005-05-14 11:49:50 +00:00
John Maddock
9a3fee10dd Suppress warnings when exceptions are turned off on gcc.
[SVN r28822]
2005-05-11 14:29:53 +00:00
John Maddock
774981bb52 Must check numeric_limits<charT>::is_specialized before using other members!
[SVN r28527]
2005-04-29 15:04:06 +00:00
John Maddock
90560a3278 Added workaround for old EDG based compilers (SGI cxx compiler).
[SVN r28518]
2005-04-28 16:31:39 +00:00
John Maddock
d3a8abb5ef Fix to stop \A from matching successive matches.
[SVN r28384]
2005-04-21 15:54:07 +00:00
Markus Schöpflin
5473345609 Added workaround for Tru64/CXX-6.5.
[SVN r28323]
2005-04-19 15:05:23 +00:00
John Maddock
3e5efe81d2 Made this header C compatible.
[SVN r28292]
2005-04-17 14:38:24 +00:00
John Maddock
5d1f265345 Moved new #include to central location with the rest of the includes.
[SVN r28273]
2005-04-15 15:39:26 +00:00
Jens Maurer
506cd316b2 add #include <algorithm> because we use std::swap()
[SVN r28249]
2005-04-14 15:50:22 +00:00
John Maddock
21c368964f Removed dead file (it's been moved to boost/regex/pending).
[SVN r27949]
2005-04-04 10:13:30 +00:00
John Maddock
de28eb9b18 1) Disabled recursive implementation for VC8: stack overflows can't be reliably detected unless the whole program is compiled with asynchronous exceptions.
2) Changed std::copy calls on VC8 to avoid "dangerous code" warnings.
3) Moved backreference and octal escape code into line with POSIX-extended requirements.
4) Changed match_results leftmost-longest rules to stop unnecessary std::distance computations (an optimisation for non-random access iterators).
5) Changed C lib calls to use "safe" versions of string API's where available.
6) Added many new POSIX-extended leftmost-longest tests, to verify the above.


[SVN r27880]
2005-03-30 11:38:51 +00:00
John Maddock
7c5e1f05c4 Added fix for compilers without <locale>.
[SVN r27515]
2005-02-28 10:54:12 +00:00
John Maddock
31370cd498 Updated concepts to match the TR.
[SVN r27472]
2005-02-21 12:27:23 +00:00
John Maddock
ecd5dd5ff3 Allow sort keys to contain nothing but a single NUL character (characters may be ignorable).
[SVN r27408]
2005-02-17 12:44:16 +00:00
John Maddock
2ee7ef601c include needed <iostream>
[SVN r27272]
2005-02-09 13:15:27 +00:00
John Maddock
dbb39f3589 Changed assert code to try and clear up a mysterious sunpro problem.
[SVN r26958]
2005-01-31 11:06:54 +00:00
John Maddock
d7e194585d More std::distance fixes for Sunpro.
Changed Dr John Maddock to John Maddock.


[SVN r26791]
2005-01-21 17:22:39 +00:00
John Maddock
e874d7710b Rewritten format method, to avoid ambiguous function call.
[SVN r26760]
2005-01-20 11:10:44 +00:00
John Maddock
b7cb69bae3 Removed one dead file.
Changed legacy referernces to reg_expression to basic_regex


[SVN r26739]
2005-01-19 13:28:57 +00:00
John Maddock
8545aeb1f3 Fixed primary equivalence classes, so that delimiter based sort keys with a delim in position 0 still work.
[SVN r26738]
2005-01-19 11:13:53 +00:00
John Maddock
2a248d1f87 Changed assert's to BOOST_ASSERT's.
Made array sizes explicit to fix MWCW problems.


[SVN r26723]
2005-01-18 12:52:40 +00:00
John Maddock
c8c4c1c289 Fix for libstdc++ debug mode assertions: singular iterators can not be copied, so insertion into a container requires extra special care.
[SVN r26718]
2005-01-17 16:56:14 +00:00
John Maddock
c2db73aec7 Cleaned up non-standard behaviour in traits classes.
Suppressed explicit instantiations for older Intel versions.
Added std::distance workaround for Sunpro.


[SVN r26716]
2005-01-17 12:10:48 +00:00
John Maddock
1e48609cfd Patches for MWCW and gcc-4.0.
[SVN r26704]
2005-01-15 11:23:46 +00:00
John Maddock
434f3589a5 Added MWCW fix.
[SVN r26695]
2005-01-14 11:10:22 +00:00
John Maddock
71a0e020e2 merged changes in regex5 branch
[SVN r26692]
2005-01-13 17:06:21 +00:00
John Maddock
de0ab9092a Fix for .{n,} failing in partial matches.
Fix for [\x0-\xff] failing in wide character expressions.


[SVN r26566]
2004-12-21 17:07:46 +00:00
John Maddock
ab6f20486b Fix problem with match_any and POSIX-style matches (match results structure wasn't getting filled in).
Fixed problem with gcc in -pedantic mode.


[SVN r26348]
2004-11-29 13:50:17 +00:00
John Maddock
e2c97fbb13 Enable auto-linking for compilers other than MSVC.
[SVN r26147]
2004-11-08 12:24:18 +00:00
John Maddock
bc140f1948 Added fix to ensure that expressions prefixed with \` do not scan through the text unnecessarily.
[SVN r25625]
2004-10-08 12:45:31 +00:00
John Maddock
ad21d2cb2f Stamped on more C++ style comments in C compatible code.
[SVN r25472]
2004-09-29 10:22:04 +00:00
John Maddock
396136146f Cleaned up comments to make regex.h C compatible.
[SVN r25414]
2004-09-26 10:25:31 +00:00
John Maddock
138d526839 Made config header C compatible.
Added mingw dll specific fix.


[SVN r25269]
2004-09-20 12:28:37 +00:00
John Maddock
5dfe10a136 Fix for RW STL: undef wchar symbols before use
[SVN r25191]
2004-09-18 10:32:05 +00:00
John Maddock
b0a325cf65 Fix: re-used match_results structure didn't set size correctly.
[SVN r24744]
2004-08-26 10:41:49 +00:00
John Maddock
54be0eaa9d VC6-specific fixes for wide character convenience functions.
[SVN r24600]
2004-08-19 15:29:21 +00:00
John Maddock
276fa31266 Fix signature to operator!=
[SVN r24499]
2004-08-16 11:22:52 +00:00
John Maddock
7043e5585f Ooops, last fix had a misplaced "typename" in it, and therefore was not legal code, strangely some compilers just didn't care.
[SVN r23831]
2004-07-20 10:38:44 +00:00
John Maddock
ee631c02eb Need to make string_out_iterator a "real" iterator type to keep commeau compiler happy.
[SVN r23722]
2004-07-18 10:20:56 +00:00
John Maddock
6c02074270 More aCC portability fixes.
[SVN r23145]
2004-06-22 12:34:04 +00:00
John Maddock
ca44c8182c Fixed bug with grepping for literals.
Added Sunpro workaround.


[SVN r23093]
2004-06-12 10:10:07 +00:00
John Maddock
ba148bae42 64-bit portability fix
[SVN r23065]
2004-06-09 12:12:42 +00:00
John Maddock
9424952e8f Added workarounds for Sunpro and HP aCC
[SVN r23032]
2004-06-05 11:46:45 +00:00
John Maddock
c3f14400b0 Moved detail/allocator.hpp into regex directory.
[SVN r22967]
2004-05-28 12:21:44 +00:00
John Maddock
55a6787950 Altered initialiser order to stop gcc from complaining.
[SVN r22876]
2004-05-20 10:16:09 +00:00
John Maddock
25e51d3984 Patch for nosubs flag bug.
[SVN r22821]
2004-05-14 10:27:13 +00:00
John Maddock
6382470ac1 Fixed \l and \u so that they work correctly in case insensitive mode.
[SVN r22804]
2004-05-12 11:39:28 +00:00
John Maddock
1dc081e1c2 Fixed problem with wide character optimisations, changed asserts on pointers (HP-specific workaround).
[SVN r22721]
2004-05-03 11:24:58 +00:00
John Maddock
76176b302b Don't optimise leading repeats when there are backreferences involved.
[SVN r22705]
2004-04-25 10:32:09 +00:00
John Maddock
e3aacc5c55 Fixes for POSIX regexes not grepping correctly.
[SVN r22623]
2004-04-09 15:55:32 +00:00
John Maddock
dc90d07749 Added fix for grepping for POSIX style matches.
[SVN r22621]
2004-04-07 11:04:06 +00:00
John Maddock
0633ba70f2 Added missing typedefs
[SVN r22505]
2004-03-16 17:36:15 +00:00
John Maddock
b8eab985e5 Added support for perl style \u \U \l \L etc in formatting.
[SVN r22486]
2004-03-12 13:12:33 +00:00
John Maddock
89515b9a8e Fixed nasty non-greedy repeat bug,
tidied up min/max workarounds,
removed unneeded #if


[SVN r22422]
2004-03-02 16:58:50 +00:00
Eric Niebler
3075aaba4a remove minmax hack from win32.hpp and fix all places that could be affected by the minmax macros
[SVN r22394]
2004-02-26 18:27:02 +00:00
John Maddock
50b8204753 Updated iterator defs.
[SVN r22387]
2004-02-25 12:36:45 +00:00
John Maddock
6cbda47155 Added last minute patch for .*?$ failing in the non-recursive algorithm.
[SVN r21525]
2004-01-07 12:00:51 +00:00
John Maddock
9058b985a9 Fixed mis-spelling of __MWERKS__, hopefully fixed regex_token_iterator failure on MWCW as well.
[SVN r21363]
2003-12-21 16:32:02 +00:00
John Maddock
82572db442 Disabled dual wchar_t mode with vc7 + STLPort, as it doesn't work.
[SVN r21352]
2003-12-20 12:52:27 +00:00