aboutsummaryrefslogtreecommitdiff
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
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--Doxyfile4
-rw-r--r--src/fstring.h16
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 =
80#--------------------------------------------------------------------------- 80#---------------------------------------------------------------------------
81# configuration options related to the input files 81# configuration options related to the input files
82#--------------------------------------------------------------------------- 82#---------------------------------------------------------------------------
83INPUT = . 83INPUT = src
84FILE_PATTERNS = *.c \ 84FILE_PATTERNS = *.c \
85 *.cc \ 85 *.cc \
86 *.cxx \ 86 *.cxx \
@@ -127,7 +127,7 @@ FILE_PATTERNS = *.c \
127 *.moc \ 127 *.moc \
128 *.xpm \ 128 *.xpm \
129 *.dox 129 *.dox
130RECURSIVE = YES 130RECURSIVE = NO
131EXCLUDE = 131EXCLUDE =
132EXCLUDE_SYMLINKS = NO 132EXCLUDE_SYMLINKS = NO
133EXCLUDE_PATTERNS = 133EXCLUDE_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:
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() )