dbertoni    01/06/14 12:10:09

  Modified:    c/src/XPath FunctionID.cpp
  Log:
  Use new StringTokenizer overload and cached string.
  
  Revision  Changes    Path
  1.7       +8 -2      xml-xalan/c/src/XPath/FunctionID.cpp
  
  Index: FunctionID.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/FunctionID.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- FunctionID.cpp    2001/01/03 19:32:36     1.6
  +++ FunctionID.cpp    2001/06/14 19:10:04     1.7
  @@ -146,10 +146,16 @@
   
                StringTokenizer         theTokenizer(theResultString);
   
  +             typedef XPathExecutionContext::GetAndReleaseCachedString        
GetAndReleaseCachedString;
  +
  +             GetAndReleaseCachedString       theGuard(executionContext);
  +
  +             XalanDOMString&                         theToken = 
theGuard.get();
  +
                // Parse the result string...
                while(theTokenizer.hasMoreTokens() == true)
                {
  -                     const XalanDOMString    theToken = 
theTokenizer.nextToken();
  +                     theTokenizer.nextToken(theToken);
   
                        if (length(theToken) > 0)
                        {
  @@ -169,7 +175,7 @@
                                        }
                                }
                        }
  -             } //while
  +             }
        }
   
        return executionContext.getXObjectFactory().createNodeSet(theNodeList);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to