aboutsummaryrefslogtreecommitdiff
path: root/src/fbasicstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-01-07 00:21:32 +0000
committerMike Buland <eichlan@xagasoft.com>2010-01-07 00:21:32 +0000
commit2dd476ff6dc904174446f269eeb97ccf9ed8c379 (patch)
tree99d73b5024b19b6b83c91f63e64024908c772cd7 /src/fbasicstring.h
parent845da7977140eef97189f913f9b664dd12eebe42 (diff)
downloadlibbu++-2dd476ff6dc904174446f269eeb97ccf9ed8c379.tar.gz
libbu++-2dd476ff6dc904174446f269eeb97ccf9ed8c379.tar.bz2
libbu++-2dd476ff6dc904174446f269eeb97ccf9ed8c379.tar.xz
libbu++-2dd476ff6dc904174446f269eeb97ccf9ed8c379.zip
Added a function that really should have always been in FString...
Diffstat (limited to '')
-rw-r--r--src/fbasicstring.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/fbasicstring.h b/src/fbasicstring.h
index c885cbb..838fbc2 100644
--- a/src/fbasicstring.h
+++ b/src/fbasicstring.h
@@ -758,6 +758,25 @@ namespace Bu
758 _hardCopy(); 758 _hardCopy();
759 core->appendChunk( pNew ); 759 core->appendChunk( pNew );
760 } 760 }
761
762 /**
763 * Append data to your string.
764 *@param pData (const chr *) The data to append.
765 *@param nStart (long) The start position to copy from.
766 *@param nLen (long) The length of the data to append.
767 */
768 void append( const chr *pData, long nStart, long nLen )
769 {
770 if( nLen == 0 )
771 return;
772
773 Chunk *pNew = core->newChunk( nLen );
774
775 cpy( pNew->pData, pData+nStart, nLen );
776
777 _hardCopy();
778 core->appendChunk( pNew );
779 }
761 780
762 /** 781 /**
763 * Append a single chr to your string. 782 * Append a single chr to your string.