swig/Source/Swig
Vadim Zeitlin 024ed6ce2a Fix bug in applying regex replacement to non-matching strings.
We didn't handle pcre_exec() return code properly and so the replacement could
be still done even if there was no match if the replacement part contained
anything else than back-references (in this, the only tested so far, case the
replacement was still done but the result turned out to be empty and the
calling code assumed the regex didn't match).

Do check for PCRE_ERROR_NOMATCH now and also give an error message if another
error unexpectedly occurred.

Add a test case for the bug that was fixed.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12187 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-08-14 14:12:23 +00:00
..
cwrap.c Fix comment typo. 2010-06-21 03:44:29 +00:00
deprecate.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00
error.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00
fragment.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00
getopt.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00
include.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00
misc.c Fix bug in applying regex replacement to non-matching strings. 2010-08-14 14:12:23 +00:00
naming.c Remove old experimental rxspencer encoder and rxsmatch function. 2010-07-22 17:02:35 +00:00
parms.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00
scanner.c Remove superfluous semicolons. 2010-05-21 07:10:12 +00:00
stype.c Fix wrapping of function pointers and member function pointers when the function returns by reference 2010-07-16 18:45:22 +00:00
swig.h Typemap matching rules enhancement for non-default typemaps. Previously all qualifiers were stripped in one step, now they are stripped one at a time starting with the left most qualifier. 2010-05-02 21:35:02 +00:00
swigfile.h Remove the svn/cvs Id string in the headers 2010-02-28 00:09:20 +00:00
swigopt.h Remove the svn/cvs Id string in the headers 2010-02-28 00:09:20 +00:00
swigparm.h Remove the svn/cvs Id string in the headers 2010-02-28 00:09:20 +00:00
swigscan.h Remove the svn/cvs Id string in the headers 2010-02-28 00:09:20 +00:00
swigtree.h Remove the svn/cvs Id string in the headers 2010-02-28 00:09:20 +00:00
swigwrap.h Remove the svn/cvs Id string in the headers 2010-02-28 00:09:20 +00:00
symbol.c Add improved namespace support - the nspace feature, working for Java only at the moment. 2010-03-04 21:27:23 +00:00
tree.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00
typemap.c Add the ability for special variable macros to call other special variable macros. Also added additional diagnostics when using -debug-tmsearch. Add tests for std::vector of shared_ptr. 2010-05-26 23:22:49 +00:00
typeobj.c Typemap matching rules enhancement for non-default typemaps. Previously all qualifiers were stripped in one step, now they are stripped one at a time starting with the left most qualifier. 2010-05-02 21:35:02 +00:00
typesys.c Fix typo in comment. 2010-05-14 04:10:19 +00:00
wrapfunc.c SWIG license change - Source moves to GPLv3 2010-02-27 23:53:33 +00:00