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/10/11 03:58:31 UTC

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

dbertoni    2002/10/10 18:58:31

  Modified:    c/src/XPath NameSpace.hpp
  Log:
  Added test for empty and a clear() member function.
  
  Revision  Changes    Path
  1.8       +14 -0     xml-xalan/c/src/XPath/NameSpace.hpp
  
  Index: NameSpace.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XPath/NameSpace.hpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NameSpace.hpp	21 Sep 2002 01:24:21 -0000	1.7
  +++ NameSpace.hpp	11 Oct 2002 01:58:31 -0000	1.8
  @@ -175,6 +175,20 @@
   		m_uri.assign(uri, len);
   	}
   
  +	bool
  +	empty() const
  +	{
  +		return m_prefix.empty() && m_uri.empty();
  +	}
  +
  +	void
  +	clear()
  +	{
  +		m_prefix.clear();
  +
  +		m_uri.clear();
  +	}
  +
   	/**
   	 * Equality operator
   	 *
  
  
  

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