summaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-28 21:58:47 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-28 21:58:47 +0000
commitafb50f535dd60b485a38f1f1f692b3303e28fecc (patch)
treea961ea827ff8577dc237c4740525737e932869c8 /src/fstring.h
parent66d1eb52b7f3023cfee5c10792a55b6af08eebe4 (diff)
downloadlibbu++-afb50f535dd60b485a38f1f1f692b3303e28fecc.tar.gz
libbu++-afb50f535dd60b485a38f1f1f692b3303e28fecc.tar.bz2
libbu++-afb50f535dd60b485a38f1f1f692b3303e28fecc.tar.xz
libbu++-afb50f535dd60b485a38f1f1f692b3303e28fecc.zip
The FString has more things that it can do...now.
Diffstat (limited to '')
-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