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: [email protected]
For additional commands, e-mail: [email protected]