aboutsummaryrefslogtreecommitdiff
path: root/src/staticstring.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-07-14 07:55:57 +0000
committerMike Buland <eichlan@xagasoft.com>2006-07-14 07:55:57 +0000
commit5b650d2d0c96545c5a276a1b819d0f5baebf8204 (patch)
treee3e4a43ea242d1d1f771c7ba251f47ac7f0db296 /src/staticstring.cpp
parentf0f38e0f164b7e8b9132665407445d93f33be7ad (diff)
downloadlibbu++-5b650d2d0c96545c5a276a1b819d0f5baebf8204.tar.gz
libbu++-5b650d2d0c96545c5a276a1b819d0f5baebf8204.tar.bz2
libbu++-5b650d2d0c96545c5a276a1b819d0f5baebf8204.tar.xz
libbu++-5b650d2d0c96545c5a276a1b819d0f5baebf8204.zip
Changed some stuff, not sure what all, minor stuff.
Diffstat (limited to 'src/staticstring.cpp')
-rw-r--r--src/staticstring.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/staticstring.cpp b/src/staticstring.cpp
index 24b9ecb..fa61e62 100644
--- a/src/staticstring.cpp
+++ b/src/staticstring.cpp
@@ -198,3 +198,30 @@ void StaticString::serialize( Serializer &ar )
198 } 198 }
199} 199}
200 200
201bool StaticString::operator==( const char *str )
202{
203 const char *a = str, *b = lpStr;
204 for(; *a == *b; a++, b++ ) if( *a == '\0' && *b == '\0' ) return true;
205 return false;
206}
207
208bool StaticString::operator==( StaticString &str )
209{
210 const char *a = str.lpStr, *b = lpStr;
211 for(; *a == *b; a++, b++ ) if( *a == '\0' && *b == '\0' ) return true;
212 return false;
213}
214
215bool StaticString::operator!=( const char *str )
216{
217 const char *a = str, *b = lpStr;
218 for(; *a == *b; a++, b++ ) if( *a == '\0' && *b == '\0' ) return false;
219 return true;
220}
221
222bool StaticString::operator!=( StaticString &str )
223{
224 const char *a = str.lpStr, *b = lpStr;
225 for(; *a == *b; a++, b++ ) if( *a == '\0' && *b == '\0' ) return false;
226 return true;
227}