diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-05-07 22:26:06 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-05-07 22:26:06 +0000 |
commit | 0f0be6146dc711f8d44db0348e8fe0d010a31ca7 (patch) | |
tree | dff3a28a1bedd67a835936f355435adc3cc5092e | |
parent | 530014a3cce53e86dce8917e98a4e86d02f176aa (diff) | |
download | libbu++-0f0be6146dc711f8d44db0348e8fe0d010a31ca7.tar.gz libbu++-0f0be6146dc711f8d44db0348e8fe0d010a31ca7.tar.bz2 libbu++-0f0be6146dc711f8d44db0348e8fe0d010a31ca7.tar.xz libbu++-0f0be6146dc711f8d44db0348e8fe0d010a31ca7.zip |
Added some more helpers to FString, now contemplating a cast operator to a
const pointer version of the raw data.
Diffstat (limited to '')
-rw-r--r-- | src/fstring.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 | |||
245 | return (*this); | 245 | return (*this); |
246 | } | 246 | } |
247 | 247 | ||
248 | void set( const chr *pData ) | ||
249 | { | ||
250 | clear(); | ||
251 | append( pData ); | ||
252 | } | ||
253 | |||
254 | void set( const chr *pData, long nSize ) | ||
255 | { | ||
256 | clear(); | ||
257 | append( pData, nSize ); | ||
258 | } | ||
259 | |||
248 | MyType &operator =( const MyType &rSrc ) | 260 | MyType &operator =( const MyType &rSrc ) |
249 | { | 261 | { |
250 | //if( rSrc.isFlat() ) | 262 | //if( rSrc.isFlat() ) |