diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-07-14 07:55:57 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-07-14 07:55:57 +0000 |
| commit | 5b650d2d0c96545c5a276a1b819d0f5baebf8204 (patch) | |
| tree | e3e4a43ea242d1d1f771c7ba251f47ac7f0db296 /src/staticstring.cpp | |
| parent | f0f38e0f164b7e8b9132665407445d93f33be7ad (diff) | |
| download | libbu++-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.cpp | 27 |
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 | ||
| 201 | bool 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 | |||
| 208 | bool 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 | |||
| 215 | bool 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 | |||
| 222 | bool 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 | } | ||
