From ededeea60b8dca5320e741c7859b54f32ad75cf7 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 16 Jun 2009 04:42:38 +0000 Subject: The Bu::FBasicString::iterator and const_iterator didn't have != comparsion functions for comparing with chr type. --- src/fbasicstring.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 return pChunk->pData[iPos] == c; } + bool operator!=( const chr &c ) const + { + if( !pChunk ) return false; + return pChunk->pData[iPos] != c; + } + operator bool() const { return pChunk != NULL; @@ -465,6 +471,12 @@ namespace Bu return pChunk->pData[iPos] == c; } + bool operator!=( const chr &c ) const + { + if( !pChunk ) return false; + return pChunk->pData[iPos] != c; + } + iterator &operator=( const chr &c ) { if( !pChunk ) throw Bu::ExceptionBase("Not a valid iterator."); -- cgit v1.2.3