[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-cvs
Subject:    svn commit: r798978 -
From:       amassari () apache ! org
Date:       2009-07-29 16:54:01
Message-ID: 20090729165401.C3E182388893 () eris ! apache ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic