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. --- Doxyfile | 4 ++-- src/fstring.h | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Doxyfile b/Doxyfile index d32fc09..6c7412e 100644 --- a/Doxyfile +++ b/Doxyfile @@ -80,7 +80,7 @@ WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- -INPUT = . +INPUT = src FILE_PATTERNS = *.c \ *.cc \ *.cxx \ @@ -127,7 +127,7 @@ FILE_PATTERNS = *.c \ *.moc \ *.xpm \ *.dox -RECURSIVE = YES +RECURSIVE = NO EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = 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