diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fbasicstring.h | 12 |
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."); |
