From 0f0be6146dc711f8d44db0348e8fe0d010a31ca7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 7 May 2007 22:26:06 +0000 Subject: Added some more helpers to FString, now contemplating a cast operator to a const pointer version of the raw data. --- src/fstring.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') diff --git a/src/fstring.h b/src/fstring.h index 751beb8..877e5a7 100644 --- a/src/fstring.h +++ b/src/fstring.h @@ -245,6 +245,18 @@ namespace Bu return (*this); } + void set( const chr *pData ) + { + clear(); + append( pData ); + } + + void set( const chr *pData, long nSize ) + { + clear(); + append( pData, nSize ); + } + MyType &operator =( const MyType &rSrc ) { //if( rSrc.isFlat() ) -- cgit v1.2.3