aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-06-16 04:42:38 +0000
committerMike Buland <eichlan@xagasoft.com>2009-06-16 04:42:38 +0000
commitededeea60b8dca5320e741c7859b54f32ad75cf7 (patch)
tree56b02d5fad9ad639b6230043a41f20a2210d2efc /src
parent04b68c8517d60045acdbf041d8ebf02dcfccca09 (diff)
downloadlibbu++-ededeea60b8dca5320e741c7859b54f32ad75cf7.tar.gz
libbu++-ededeea60b8dca5320e741c7859b54f32ad75cf7.tar.bz2
libbu++-ededeea60b8dca5320e741c7859b54f32ad75cf7.tar.xz
libbu++-ededeea60b8dca5320e741c7859b54f32ad75cf7.zip
The Bu::FBasicString::iterator and const_iterator didn't have != comparsion
functions for comparing with chr type.
Diffstat (limited to '')
-rw-r--r--src/fbasicstring.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/fbasicstring.h b/src/fbasicstring.h
index 3f12946..b232005 100644
--- a/src/fbasicstring.h
+++ b/src/fbasicstring.h
@@ -232,6 +232,12 @@ namespace Bu
232 return pChunk->pData[iPos] == c; 232 return pChunk->pData[iPos] == c;
233 } 233 }
234 234
235 bool operator!=( const chr &c ) const
236 {
237 if( !pChunk ) return false;
238 return pChunk->pData[iPos] != c;
239 }
240
235 operator bool() const 241 operator bool() const
236 { 242 {
237 return pChunk != NULL; 243 return pChunk != NULL;
@@ -465,6 +471,12 @@ namespace Bu
465 return pChunk->pData[iPos] == c; 471 return pChunk->pData[iPos] == c;
466 } 472 }
467 473
474 bool operator!=( const chr &c ) const
475 {
476 if( !pChunk ) return false;
477 return pChunk->pData[iPos] != c;
478 }
479
468 iterator &operator=( const chr &c ) 480 iterator &operator=( const chr &c )
469 { 481 {
470 if( !pChunk ) throw Bu::ExceptionBase("Not a valid iterator."); 482 if( !pChunk ) throw Bu::ExceptionBase("Not a valid iterator.");