Commit Graph

563 Commits

Author SHA1 Message Date
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
John Maddock
39f1fb4d17 Changed name of a local variable to hopefully suppress gcc3.4 error
[SVN r21300]
2003-12-17 12:05:59 +00:00
John Maddock
7858e47a26 Refactored code so that __try statements only call bool (void) functions.
[SVN r21286]
2003-12-16 13:04:01 +00:00
John Maddock
cd0072b3e7 Added patch for BOOST_REGEX_V3 compatibility
[SVN r21285]
2003-12-16 13:02:57 +00:00
John Maddock
bf9350aa16 Added new experimental captures support.
[SVN r21243]
2003-12-13 12:28:48 +00:00
John Maddock
6b95ac002e Suppressed __try blocks in MWCW.
[SVN r21221]
2003-12-11 11:50:57 +00:00
John Maddock
f6b9c3d809 Added como specific fix for C builds.
[SVN r21160]
2003-12-06 12:10:27 +00:00
John Maddock
dddfc1a63a Refined building without /Zc:wchar_t on msvc 7 and above
[SVN r21147]
2003-12-05 13:01:29 +00:00
John Maddock
a247f4d7f8 Added new typedefs for iterator types
[SVN r21146]
2003-12-05 13:00:59 +00:00
John Maddock
84c2228b3f Added support for BOOST_ALL_NO_LIB
[SVN r21119]
2003-12-03 13:32:05 +00:00
John Maddock
ebc12d24c9 Patched up support for the new Borland 6.0 compiler in strict mode.
[SVN r21035]
2003-12-01 11:52:28 +00:00
John Maddock
c642977acd Patches for vc7+stlport
[SVN r20951]
2003-11-26 11:44:53 +00:00
John Maddock
27875c1e55 Fix gcc -Wshadow warnings
[SVN r20857]
2003-11-19 12:57:50 +00:00
John Maddock
d0258375ae Added support for BOOST_ALL_DYN_LINK
[SVN r20802]
2003-11-13 12:17:49 +00:00
John Maddock
f9d0907868 Fixed up traits classes so that no matter whether /Zc:wchar_t is specified for vc builds or not, then we can still link to the same lib build.
[SVN r20764]
2003-11-08 13:02:55 +00:00
John Maddock
8324fad77c Tidies up new code, fixed one bug.
[SVN r20635]
2003-11-04 11:30:44 +00:00
John Maddock
23f71d7727 Changed regex_token_iterator to return a sub_match rather than a std::string (it's more efficient).
[SVN r20613]
2003-11-03 11:25:30 +00:00
John Maddock
dc3878df84 Added new macro BOOST_LIB_VERSION to version.hpp so that auto-linking code knows what version suffix to append to library file names.
Updated auto-linking headers to match new Boost.Install code.


[SVN r20602]
2003-11-02 11:43:56 +00:00
John Maddock
aa68609a60 New warning supression code doesn't work for VC6 :-( So work around the workaround...
[SVN r20493]
2003-10-25 11:20:35 +00:00
John Maddock
8b4da77f83 Undone unintended commit on this file.
[SVN r20471]
2003-10-24 11:00:29 +00:00
John Maddock
9215a04042 Mostly cgg warning suppression, plus some gcc 2.95 workarounds.
[SVN r20462]
2003-10-23 12:40:47 +00:00
John Maddock
72a7a13565 Added new sub_match operators.
Made member operators const.


[SVN r20442]
2003-10-21 11:14:13 +00:00
John Maddock
c23a7a8cfe Fixed no exception handling builds
[SVN r20330]
2003-10-10 12:13:23 +00:00
John Maddock
ab5a7a768d Added new licence info.
[SVN r20254]
2003-10-04 11:29:20 +00:00
John Maddock
a669854a84 renamed null re_null in case the compiler #defines null.
[SVN r20240]
2003-10-02 11:06:06 +00:00
John Maddock
11ea8aab76 switched over to new Boost Licence
[SVN r20232]
2003-09-30 13:02:51 +00:00
John Maddock
13dfa17e63 Changed to make use of iterators and not strings where possible.
[SVN r20229]
2003-09-30 11:40:47 +00:00
John Maddock
182616ea25 Changed char_type to be the type used by the regex object not the iterator - allows code to compile where the iterator enumerates types that are different to the regex type.
[SVN r20228]
2003-09-30 11:39:41 +00:00
John Maddock
83306608a7 Fixed template constructor and assign member function iterator usage.
[SVN r20227]
2003-09-30 11:38:30 +00:00
John Maddock
f3c1b8d784 Added fix for broken VC++ preprocessor
[SVN r20226]
2003-09-30 11:37:04 +00:00
John Maddock
567d76e8e4 Fixed Borland compiles, so that regex can be mixed with vcl.h.
[SVN r19880]
2003-08-30 10:14:56 +00:00
John Maddock
51ef8177d3 Fixed Borland warning suppression.
Changed config to use BOOST_HAS_DECLSPEC


[SVN r19781]
2003-08-26 10:49:41 +00:00
John Maddock
2e1ed31f34 Fixed spelling of "BOOST" - basically a enormous cut and paste error!
[SVN r19581]
2003-08-14 10:22:05 +00:00
John Maddock
e4248fcb19 Moved some config code into boost.config (ABI and lib selection code).
[SVN r19546]
2003-08-12 11:23:02 +00:00
John Maddock
d695b70ee9 Added check to prevent macro redeffinition
[SVN r19360]
2003-07-30 12:15:45 +00:00
John Maddock
9d565f63ed Added Como dll export options.
[SVN r19317]
2003-07-26 11:12:32 +00:00
John Maddock
8a5b00c128 Added needed const qualifier on out of line deffinition.
[SVN r19306]
2003-07-25 11:57:19 +00:00
John Maddock
bba214f904 Added out of line deffinition for integral constant.
[SVN r19304]
2003-07-25 11:20:39 +00:00
John Maddock
cddfd077a8 Added tentative fix for Metrowerks problem.
Removed Intel test code.


[SVN r19227]
2003-07-20 11:16:26 +00:00
John Maddock
41e54c1cf2 Added temporary Intel diagnostic code
[SVN r19211]
2003-07-19 12:12:50 +00:00
John Maddock
0f2f6b6dfc changed MSVC calling convention setup - can't use __fastcall in debug mode especially with /RTC
[SVN r19190]
2003-07-18 11:25:34 +00:00
John Maddock
8e03097d9d Added explicit bounds to the array variables to work around Mtrowerks problems.
Added extra check before setting dllexport options.


[SVN r19095]
2003-07-13 11:27:05 +00:00
John Maddock
1c915e3fda Disabled workarounds for SGI compiler - they don't work and shouldn't be needed.
Removed local declaration of icase, when class member should do.


[SVN r19085]
2003-07-12 10:33:10 +00:00
John Maddock
cb9409160a Moved static stables into the function bodies to fix a gcc on MacOS X and IMB compiler bug.
Fixed config system for dll builds - the default linkage option is now static linking.
Fixed makefiles - dll builds now work.
Added Misc fixes for the example programs.


[SVN r19044]
2003-07-11 11:51:35 +00:00
John Maddock
c32c644a38 Added fixes for:
Compilers that pretend to be Visual C++
export of memory management code


[SVN r18955]
2003-07-07 11:44:00 +00:00
John Maddock
4a851cf958 Fixed C++ Builder 5 support,
Fixed support for bidirectional iterators,
Fixed enum declaration in states.hpp.


[SVN r18874]
2003-06-27 11:12:47 +00:00
John Maddock
4a06f15183 Added missing needed include
[SVN r18863]
2003-06-24 10:52:51 +00:00
John Maddock
01a3b56f8a removed some previous attempted workarounds - they don't work.
[SVN r18855]
2003-06-23 11:02:00 +00:00
John Maddock
5255c45b0a Fixed bug in token_iterator that caused it to miss items when field splitting.
[SVN r18821]
2003-06-17 10:28:51 +00:00
John Maddock
ed48905c5e Added check for invalid regular expression in matching code.
[SVN r18777]
2003-06-11 12:11:17 +00:00
John Maddock
13769e4fff Fixed array bounds so that gcc3 will actually compile the code, it's now seriously unmainable though, still it's the only thing that seems to work...
[SVN r18761]
2003-06-10 11:59:44 +00:00
John Maddock
6dfa7ef86c Added explicit bounds to arrays, as patch for broken compilers that can't otherwise cope.
[SVN r18743]
2003-06-09 11:56:15 +00:00
John Maddock
e016ef8e21 Added minor bug fixes (some expressions starting with ^ were not being found), plus a few warning suppressions.
[SVN r18679]
2003-06-05 10:46:03 +00:00
John Maddock
2f9da388c1 Added fix for IBM C++
[SVN r18586]
2003-05-28 11:38:00 +00:00
John Maddock
f50f35d1fc Added <ios> include for KCC
[SVN r18536]
2003-05-25 11:16:14 +00:00
John Maddock
3673a0a888 Added support for BOOST_DEDUCED_TYPENAME
[SVN r18534]
2003-05-25 10:54:03 +00:00
John Maddock
a69678c3c6 stripped tabs from files
[SVN r18526]
2003-05-24 11:14:53 +00:00
Guillaume Melquiond
70199360d3 Use the recently added BOOST_INTEL macro
[SVN r18511]
2003-05-23 11:53:49 +00:00
John Maddock
9aa18a159d Added como warning suppression.
[SVN r18508]
2003-05-23 11:31:00 +00:00
John Maddock
4122e8f08d Fixed VC warning
[SVN r18506]
2003-05-23 10:57:04 +00:00
John Maddock
89d445c1b6 Tweaked dll selection code,
Fixed various errors detected by MWCW and Como


[SVN r18493]
2003-05-22 11:19:58 +00:00
John Maddock
31d1dc1182 Removed external templates for unknown compilers.
Fixed std conformance bugs in v4 code (shown up by metrowerks compiler).


[SVN r18467]
2003-05-20 11:28:47 +00:00
John Maddock
535e1b05cc Updated library names, minor fixes for gcc2.95
[SVN r18442]
2003-05-19 11:55:23 +00:00
John Maddock
f0f32bdda1 Merged regex-4 branch.
[SVN r18430]
2003-05-17 11:45:48 +00:00
John Maddock
ea96eafacc Fixed bug that effect some searches
[SVN r18003]
2003-03-19 12:19:14 +00:00
John Maddock
158c26d85c Misc. new fixes:
Better support for BOOST_NO_WREGEX
Fixed bug in trailing null backrefs
Fixed bug in null repeat code
Fixed bug in negative forward lookahead assert when used as a prefix.


[SVN r17889]
2003-03-13 12:50:54 +00:00
John Maddock
d0ba00a2e7 Fixed bug in match_continuous code
[SVN r17276]
2003-02-08 12:30:57 +00:00
John Maddock
75293e9854 Fixed by adding BOOST_REGEX_NO_EXTERNAL_TEMPLATES define and extra error checks.
[SVN r17264]
2003-02-07 12:16:40 +00:00
John Maddock
251099c828 OpenBSD fixes
[SVN r16990]
2003-01-22 12:38:54 +00:00
Beman Dawes
2ecd905fb2 add or update See www.boost.org comments
[SVN r16708]
2002-12-27 16:51:53 +00:00
John Maddock
0e37a76df0 Fix for MWCW which doesn't like incomplete array type.
[SVN r16375]
2002-11-23 11:30:36 +00:00
John Maddock
e5d9c95456 Fixed header include after recent changes
[SVN r16159]
2002-11-08 11:55:49 +00:00
John Maddock
b6a13dd215 Added check for BOOST_NO_STD_DISTANCE
[SVN r16144]
2002-11-07 12:59:57 +00:00
John Maddock
cf285ed3e5 Changes made in preparation for new regex version.
[SVN r16141]
2002-11-07 12:50:29 +00:00
John Maddock
09bfc7f853 Merged changes from the RC_1_29_0 branch.
[SVN r15959]
2002-10-21 11:03:05 +00:00
Dave Abrahams
13df8a293b Add missing typename
[SVN r15905]
2002-10-11 20:46:12 +00:00
John Maddock
6ee955be5f Tweeked number of states that cause a throw to occur during search.
[SVN r15402]
2002-09-17 10:57:26 +00:00
John Maddock
a7f8f56d92 Added throw if the number of searched states grows too large.
[SVN r15372]
2002-09-16 11:54:00 +00:00
John Maddock
66ac67533c VACPP fixes (second try)
[SVN r15371]
2002-09-16 11:53:07 +00:00
John Maddock
f81bdae7f1 Fixed forward declarations, added tentative IBM C++ fix
[SVN r15298]
2002-09-13 11:41:21 +00:00
John Maddock
aebf86bbe5 removed MSVC warning suppression - it causes the compiler to ICE under some conditions
[SVN r15195]
2002-09-07 10:47:06 +00:00
John Maddock
de9ecb7407 Fixed MSVC warnings
[SVN r15140]
2002-09-03 10:14:30 +00:00
John Maddock
fa43c7ab1d Misc Kylix fixes
[SVN r15086]
2002-08-25 11:57:37 +00:00
John Maddock
81f404ec69 Disabled automatic lib selection on non-windows platforms for Borland
[SVN r15080]
2002-08-24 11:56:11 +00:00
John Maddock
bb711db956 Added new state information for forthcomming new algorithms
[SVN r14889]
2002-08-15 11:30:08 +00:00
John Maddock
13f9af564d Added some new state information for forthcomming new algorithms.
[SVN r14808]
2002-08-13 11:47:41 +00:00
John Maddock
753a3d6584 Removed duplicate declaration.
[SVN r14635]
2002-07-29 11:04:14 +00:00
John Maddock
ab0051399e Added como and metrowerks to list of compilers that can't handle the template specialisations used in instances.hpp.
[SVN r14624]
2002-07-27 11:42:04 +00:00
John Maddock
61ea1b566a Added workaround for gcc2.91 bug
[SVN r14513]
2002-07-18 11:07:46 +00:00
John Maddock
1ad6328d33 Added BOOST_NO_STD_WSTREAMBUF guard
[SVN r14491]
2002-07-17 11:39:15 +00:00
John Maddock
e6a371c6d6 Added MSVC version check.
[SVN r14475]
2002-07-16 11:15:30 +00:00
John Maddock
ee59983ea9 Oops, messed up previous commit.
[SVN r14445]
2002-07-14 10:56:58 +00:00
John Maddock
ad769fcfdb Added needed Como options
[SVN r14432]
2002-07-13 10:58:11 +00:00
John Maddock
b2c4abc9cf Fixed partial match bug:
The following program demonstrates what we believe is a bug in regex partial
match algorithm:

    int main()
    {
    //  boost::regex const re("(ab)?c"); // ok
        boost::regex const re("(ab)?"); // fails in the assert below

        boost::cmatch what;
        assert(boost::regex_match( "a", what, re, boost::match_default |
boost::match_partial ));
    }


[SVN r14110]
2002-06-08 10:36:54 +00:00
John Maddock
293b945785 Added fixes for C++ Builder 6 alignment (binary compatibility) issues.
[SVN r14087]
2002-06-06 11:32:45 +00:00
John Maddock
53de3c4ae6 Fixed more warnings, rolled back some regex changes that seem to be causing problems on 64-bit platforms.
[SVN r14063]
2002-05-30 11:07:05 +00:00
John Maddock
bbbd65c2e4 Hopefully fixed some minor bugs:
added missing typesnames.
	Changed iterator to Iterator to hopefully keep aCC happy.


[SVN r14020]
2002-05-23 11:43:27 +00:00
John Maddock
084af757b4 Misc. fixes and new config options.
[SVN r13971]
2002-05-18 11:30:49 +00:00
John Maddock
1035f25b65 Disabled template specialisations on AIX with IBM Visual Age
[SVN r13850]
2002-05-14 10:44:21 +00:00
John Maddock
8d8a209d8b Added user-config macro BOOST_DISABLE_WIN32
(also set in the compiler 's strict mode).
Modified Boost source not to use Win32 specific
extentions in the presence of BOOST_DISABLE_WIN32.


[SVN r13771]
2002-05-09 11:40:52 +00:00
John Maddock
1826080071 Fixed erroneous functio signature
[SVN r13660]
2002-05-04 10:55:51 +00:00