From e1115a28535663cfe404791ede5bb7ca70399053 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 24 Apr 2023 09:16:32 -0700 Subject: Additions to blob/utfstring for json. --- src/unstable/blob.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/unstable/blob.h') diff --git a/src/unstable/blob.h b/src/unstable/blob.h index d6c40e3..bda29d6 100644 --- a/src/unstable/blob.h +++ b/src/unstable/blob.h @@ -100,6 +100,8 @@ namespace Bu iterator &operator++(); iterator &operator--( int32_t ); iterator &operator--(); + iterator &operator+=( int32_t iDelta ); + iterator &operator-=( int32_t iDelta ); iterator operator+( int32_t iDelta ) const; iterator operator-( int32_t iDelta ) const; bool operator==( const iterator &rRhs ); @@ -107,7 +109,7 @@ namespace Bu bool operator!=( const iterator &rRhs ); bool operator!=( const const_iterator &rRhs ); - iterator &operator=( iterator &rRhs ); + iterator &operator=( const iterator &rRhs ); private: Blob *pBlob; @@ -136,6 +138,8 @@ namespace Bu const_iterator &operator++(); const_iterator &operator--( int32_t ); const_iterator &operator--(); + const_iterator &operator+=( int32_t iDelta ); + const_iterator &operator-=( int32_t iDelta ); const_iterator operator+( int32_t iDelta ) const; const_iterator operator-( int32_t iDelta ) const; bool operator==( const iterator &rRhs ); @@ -143,8 +147,8 @@ namespace Bu bool operator!=( const iterator &rRhs ); bool operator!=( const const_iterator &rRhs ); - const_iterator &operator=( iterator &rRhs ); - const_iterator &operator=( const_iterator &rRhs ); + const_iterator &operator=( const iterator &rRhs ); + const_iterator &operator=( const const_iterator &rRhs ); private: const Blob *pBlob; -- cgit v1.2.3