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 2001/06/14 20:52:40 UTC

cvs commit: xml-xalan/c/src/XalanDOM XalanDOMString.hpp

dbertoni    01/06/14 11:52:39

  Modified:    c/src/XalanDOM XalanDOMString.hpp
  Log:
  New substr() overload.
  
  Revision  Changes    Path
  1.15      +14 -0     xml-xalan/c/src/XalanDOM/XalanDOMString.hpp
  
  Index: XalanDOMString.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XalanDOM/XalanDOMString.hpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- XalanDOMString.hpp	2001/03/30 16:15:30	1.14
  +++ XalanDOMString.hpp	2001/06/14 18:52:35	1.15
  @@ -583,6 +583,20 @@
   		return XalanDOMString(*this, thePosition, theCount);
   	}
   
  +	XalanDOMString&
  +	substr(
  +			XalanDOMString&		theSubstring,
  +			size_type			thePosition = 0,
  +			size_type			theCount = size_type(npos)) const
  +	{
  +		assert(theCount == size_type(npos) && thePosition < length() ||
  +			   thePosition + theCount <= length());
  +
  +		invariants();
  +
  +		return theSubstring.assign(*this, thePosition, theCount);
  +	}
  +
   	int
   	compare(const XalanDOMString&	theString) const
   	{
  
  
  

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