dbertoni    2003/07/16 18:53:27

  Modified:    c/src/xalanc/PlatformSupport DOMStringHelper.hpp
  Log:
  Touched up documentation.  Added new overload for startsWith().
  
  Revision  Changes    Path
  1.2       +24 -1     
xml-xalan/c/src/xalanc/PlatformSupport/DOMStringHelper.hpp
  
  Index: DOMStringHelper.hpp
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/c/src/xalanc/PlatformSupport/DOMStringHelper.hpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DOMStringHelper.hpp       29 Jun 2003 03:57:55 -0000      1.1
  +++ DOMStringHelper.hpp       17 Jul 2003 01:53:27 -0000      1.2
  @@ -565,8 +565,10 @@
   /**
    * Simulates the java String method startsWith().
    * 
  - * @param theDOMString target string to search
  + * @param theString target string to search
  + * @param theStringLength the length of theString
    * @param theSubstring substring searched for
  + * @param theSubstringLength the length of theSubstring
    * @return true if the target string begins with the substring
    */
   XALAN_PLATFORMSUPPORT_EXPORT_FUNCTION(bool)
  @@ -631,6 +633,27 @@
        assert(theSubstring != 0);
   
        return startsWith(c_wstr(theString), length(theString), theSubstring, 
length(theSubstring));
  +}
  +
  +
  +
  +/**
  + * Simulates the java String method startsWith().
  + * 
  + * @param theDOMString target string to search
  + * @param theSubstring substring searched for
  + * @param theSubstringLength the length of theSubstring
  + * @return true if the target string begins with the substring
  + */
  +inline bool
  +startsWith(
  +                     const XalanDOMString&           theString,
  +                     const XalanDOMChar*                     theSubstring,
  +                     XalanDOMString::size_type       theSubstringLength)
  +{
  +     assert(theSubstring != 0);
  +
  +     return startsWith(c_wstr(theString), length(theString), theSubstring, 
theSubstringLength);
   }
   
   
  
  
  

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

Reply via email to