summaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fstring.h')
-rw-r--r--src/fstring.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h
index bf6518b..1f21b5f 100644
--- a/src/fstring.h
+++ b/src/fstring.h
@@ -587,6 +587,20 @@ namespace Bu
587 } 587 }
588 588
589 /** 589 /**
590 * Remove nAmnt bytes from the front of the string. This function
591 * operates in O(n) time and should be used sparingly.
592 */
593 void trimFront( long nAmnt )
594 {
595 long nNewLen = nLength - nAmnt;
596 flatten();
597 Chunk *pNew = newChunk( nNewLen );
598 cpy( pNew->pData, pFirst->pData, nNewLen );
599 clear();
600 appendChunk( pNew );
601 }
602
603 /**
590 * Function the archiver calls to archive your FString. 604 * Function the archiver calls to archive your FString.
591 *@param ar (Archive) The archive which is archiving your FString. 605 *@param ar (Archive) The archive which is archiving your FString.
592 */ 606 */
@@ -882,4 +896,7 @@ namespace Bu
882 template<> bool __cmpHashKeys<FString>( const FString &a, const FString &b ); 896 template<> bool __cmpHashKeys<FString>( const FString &a, const FString &b );
883} 897}
884 898
899#include <ostream>
900std::ostream& operator<< (std::ostream &os, Bu::FString &val );
901
885#endif 902#endif