You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jd...@locus.apache.org on 2000/04/14 17:55:10 UTC
cvs commit: xml-xalan/c/src/XPath FunctionTranslate.hpp
jdonohue 00/04/14 08:55:10
Modified: c/src/XPath FunctionTranslate.hpp
Log:
Looking at wrong string
Revision Changes Path
1.5 +2 -1 xml-xalan/c/src/XPath/FunctionTranslate.hpp
Index: FunctionTranslate.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionTranslate.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- FunctionTranslate.hpp 2000/04/11 14:46:08 1.4
+++ FunctionTranslate.hpp 2000/04/14 15:55:09 1.5
@@ -114,6 +114,7 @@
const XalanDOMString theThirdString = args[2]->str();
const unsigned int theFirstStringLength = length(theFirstString);
+ const unsigned int theSecondStringLength = length(theSecondString);
const unsigned int theThirdStringLength = length(theThirdString);
#if !defined(XALAN_NO_NAMESPACES)
@@ -135,7 +136,7 @@
const unsigned int theIndex = indexOf(theSecondString, theCurrentChar);
- if (theIndex >= theFirstStringLength)
+ if (theIndex >= theSecondStringLength)
{
// Didn't find the character in the second string, so it
// is not translated.