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 2003/01/02 07:52:27 UTC

cvs commit: xml-xalan/c/src/XPath XalanQName.hpp

dbertoni    2003/01/01 22:52:27

  Modified:    c/src/XPath XalanQName.hpp
  Log:
  Added hash function.
  
  Revision  Changes    Path
  1.8       +6 -0      xml-xalan/c/src/XPath/XalanQName.hpp
  
  Index: XalanQName.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/XalanQName.hpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- XalanQName.hpp	21 Nov 2002 01:26:18 -0000	1.7
  +++ XalanQName.hpp	2 Jan 2003 06:52:27 -0000	1.8
  @@ -182,6 +182,12 @@
   			   getNamespace() == theRHS.getNamespace();
   	}
   
  +	XalanDOMString::size_type
  +	hash() const
  +	{
  +		return getLocalPart().hash() % getNamespace().hash();
  +	}
  +
   	class XALAN_XPATH_EXPORT PrefixResolverProxy : public PrefixResolver
   	{
   	public:
  
  
  

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