summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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.