From 76185dca1136f9542e75361961c2e7362d8b670b Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 23 Mar 2007 15:50:38 +0000 Subject: Added another function to FString. --- src/fstring.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src') 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: return (*this); } + MyType &operator +=( const chr pData ) + { + chr tmp[2] = { pData, (chr)0 }; + append( tmp ); + + return (*this); + } + MyType &operator =( const chr *pData ) { clear(); @@ -278,6 +286,14 @@ public: return pFirst->pData[nIndex]; } + bool isWS( long nIndex ) const + { + flatten(); + + return pFirst->pData[nIndex]==' ' || pFirst->pData[nIndex]=='\t' + || pFirst->pData[nIndex]=='\r' || pFirst->pData[nIndex]=='\n'; + } + void serialize( class Serializer &ar ) { if( ar.isLoading() ) -- cgit v1.2.3