You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2009/07/29 18:54:01 UTC
svn commit: r798978 -
/xerces/c/trunk/src/xercesc/util/regx/RegularExpression.cpp
Author: amassari
Date: Wed Jul 29 16:54:01 2009
New Revision: 798978
URL: http://svn.apache.org/viewvc?rev=798978&view=rev
Log:
Fix end position for fixed string pattern matching (XERCESC-1021)
Modified:
xerces/c/trunk/src/xercesc/util/regx/RegularExpression.cpp
Modified: xerces/c/trunk/src/xercesc/util/regx/RegularExpression.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/regx/RegularExpression.cpp?rev=798978&r1=798977&r2=798978&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/regx/RegularExpression.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/regx/RegularExpression.cpp Wed Jul 29 16:54:01 2009
@@ -568,7 +568,7 @@
if (context.fMatch != 0) {
context.fMatch->setStartPos(0, ret);
- context.fMatch->setEndPos(0, (int)(ret + strLength));
+ context.fMatch->setEndPos(0, (int)(ret + XMLString::stringLen(fPattern)));
}
return true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org