[sword-cvs] sword/src/utilfuns swbuf.cpp,1.3,1.4

sword@www.crosswire.org sword@www.crosswire.org
Thu, 27 Feb 2003 03:41:20 -0700


Update of /usr/local/cvsroot/sword/src/utilfuns
In directory www:/tmp/cvs-serv739/src/utilfuns

Modified Files:
	swbuf.cpp 
Log Message:


Index: swbuf.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/utilfuns/swbuf.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** swbuf.cpp	24 Feb 2003 05:26:15 -0000	1.3
--- swbuf.cpp	27 Feb 2003 10:41:18 -0000	1.4
***************
*** 134,147 ****
  
  
- /******************************************************************************
-  * SWBuf::append - appends a value to the current value of this SWBuf
-  */
- 
- void SWBuf::append(char ch) {
- 	assureSize((end-buf)+1);
- 	*end = ch;
- 	end++;
- 	*end = 0;
- }
  
  
--- 134,137 ----
***************
*** 159,177 ****
  
  
- SWBuf SWBuf::operator + (const SWBuf &other) const {
- 	SWBuf retVal = buf;
- 	retVal += other;
- 	return retVal;
- }
  
  
- void SWBuf::assureSize(unsigned int size) {
- 	if (size > allocSize) {
- 		allocSize = size + 5;
- 		end = (char *)(end - buf);
- 		buf = (char *)realloc(buf, allocSize);
- 		end = (buf + (unsigned int)end);
- 	}
- }
  
  
--- 149,154 ----