aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-03-23 15:50:38 +0000
committerMike Buland <eichlan@xagasoft.com>2007-03-23 15:50:38 +0000
commit76185dca1136f9542e75361961c2e7362d8b670b (patch)
treedffc19fc6914bd391b4307c9659bb4ef4dc0b894 /src
parent7edb08f083dbe1408285a083e4132673b6e1d7be (diff)
downloadlibbu++-76185dca1136f9542e75361961c2e7362d8b670b.tar.gz
libbu++-76185dca1136f9542e75361961c2e7362d8b670b.tar.bz2
libbu++-76185dca1136f9542e75361961c2e7362d8b670b.tar.xz
libbu++-76185dca1136f9542e75361961c2e7362d8b670b.zip
Added another function to FString.
Diffstat (limited to '')
-rw-r--r--src/fstring.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/fstring.h b/src/fstring.h
index c3ab6cd..2f7dc67 100644
--- a/src/fstring.h
+++ b/src/fstring.h
@@ -191,6 +191,14 @@ public:
191 return (*this); 191 return (*this);
192 } 192 }
193 193
194 MyType &operator +=( const chr pData )
195 {
196 chr tmp[2] = { pData, (chr)0 };
197 append( tmp );
198
199 return (*this);
200 }
201
194 MyType &operator =( const chr *pData ) 202 MyType &operator =( const chr *pData )
195 { 203 {
196 clear(); 204 clear();
@@ -278,6 +286,14 @@ public:
278 return pFirst->pData[nIndex]; 286 return pFirst->pData[nIndex];
279 } 287 }
280 288
289 bool isWS( long nIndex ) const
290 {
291 flatten();
292
293 return pFirst->pData[nIndex]==' ' || pFirst->pData[nIndex]=='\t'
294 || pFirst->pData[nIndex]=='\r' || pFirst->pData[nIndex]=='\n';
295 }
296
281 void serialize( class Serializer &ar ) 297 void serialize( class Serializer &ar )
282 { 298 {
283 if( ar.isLoading() ) 299 if( ar.isLoading() )