aboutsummaryrefslogtreecommitdiff
path: root/src/fstring.h
diff options
context:
space:
mode:
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() )