You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/09/05 03:34:38 UTC

cvs commit: xml-xalan/c/src/PlatformSupport DOMStringHelper.hpp

dbertoni    2002/09/04 18:34:38

  Modified:    c/src/PlatformSupport DOMStringHelper.hpp
  Log:
  New overload for equals().
  
  Revision  Changes    Path
  1.59      +21 -0     xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp
  
  Index: DOMStringHelper.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/DOMStringHelper.hpp,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- DOMStringHelper.hpp	5 Sep 2002 01:11:31 -0000	1.58
  +++ DOMStringHelper.hpp	5 Sep 2002 01:34:38 -0000	1.59
  @@ -1764,6 +1764,27 @@
   
   
   /**
  + * Compare the contents of two arrays for equality
  + * 
  + * @param theLHS first array to compare
  + * @param theLHSLength the length of the theLHS
  + * @param theRHS second array to compare
  + * @param theRHSLength the length of the theRHS
  + * @return true if the contents of both arrays are identical
  + */
  +inline bool
  +equals(
  +			const XalanDOMChar*			theLHS,
  +			XalanDOMString::size_type	theLHSLength,
  +			const XalanDOMChar*			theRHS,
  +			XalanDOMString::size_type	theRHSLength)
  +{
  +	return theLHSLength != theRHSLength ? false : equals(theLHS, theRHS, theLHSLength);
  +}
  +
  +
  +
  +/**
    * Compare the contents of two strings for equality
    * 
    * @param theLHS first string to compare
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org