diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-03-23 15:50:38 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-23 15:50:38 +0000 |
commit | 76185dca1136f9542e75361961c2e7362d8b670b (patch) | |
tree | dffc19fc6914bd391b4307c9659bb4ef4dc0b894 | |
parent | 7edb08f083dbe1408285a083e4132673b6e1d7be (diff) | |
download | libbu++-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-- | Doxyfile | 4 | ||||
-rw-r--r-- | src/fstring.h | 16 |
2 files changed, 18 insertions, 2 deletions
@@ -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 | #--------------------------------------------------------------------------- |
83 | INPUT = . | 83 | INPUT = src |
84 | FILE_PATTERNS = *.c \ | 84 | FILE_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 |
130 | RECURSIVE = YES | 130 | RECURSIVE = NO |
131 | EXCLUDE = | 131 | EXCLUDE = |
132 | EXCLUDE_SYMLINKS = NO | 132 | EXCLUDE_SYMLINKS = NO |
133 | EXCLUDE_PATTERNS = | 133 | 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: | |||
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() ) |