Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Ogre::UTFString::_fwd_iterator Class Reference

forward iterator for UTFString More...

#include <OgreUTFString.h>

Inheritance diagram for Ogre::UTFString::_fwd_iterator:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 _fwd_iterator ()
 _fwd_iterator (const _fwd_iterator &i)
_fwd_iteratoroperator++ ()
 pre-increment
_fwd_iterator operator++ (int)
 post-increment
_fwd_iteratoroperator-- ()
 pre-decrement
_fwd_iterator operator-- (int)
 post-decrement
_fwd_iterator operator+ (size_type n)
 addition operator
_fwd_iterator operator+ (difference_type n)
 addition operator
_fwd_iterator operator- (size_type n)
 subtraction operator
_fwd_iterator operator- (difference_type n)
 subtraction operator
_fwd_iteratoroperator+= (size_type n)
 addition assignment operator
_fwd_iteratoroperator+= (difference_type n)
 addition assignment operator
_fwd_iteratoroperator-= (size_type n)
 subtraction assignment operator
_fwd_iteratoroperator-= (difference_type n)
 subtraction assignment operator
value_typeoperator * () const
 dereference operator
value_typeoperator[] (size_type n) const
 dereference at offset operator
value_typeoperator[] (difference_type n) const
 dereference at offset operator
_fwd_iteratormoveNext ()
 advances to the next Unicode character, honoring surrogate pairs in the UTF-16 stream
_fwd_iteratormovePrev ()
 rewinds to the previous Unicode character, honoring surrogate pairs in the UTF-16 stream
unicode_char getCharacter () const
 Returns the Unicode value of the character at the current position (decodes surrogate pairs if needed).
int setCharacter (unicode_char uc)
 Sets the Unicode value of the character at the current position (adding a surrogate pair if needed); returns the amount of string length change caused by the operation.

Protected Member Functions

void _seekFwd (size_type c)
void _seekRev (size_type c)
void _become (const _base_iterator &i)
bool _test_begin () const
bool _test_end () const
size_type _get_index () const
void _jump_to (size_type index)
unicode_char _getCharacter () const
int _setCharacter (unicode_char uc)
void _moveNext ()
void _movePrev ()

Protected Attributes

dstring::iterator mIter
UTFStringmString

Friends

class _const_fwd_iterator

Detailed Description

forward iterator for UTFString

Definition at line 286 of file OgreUTFString.h.


Constructor & Destructor Documentation

Ogre::UTFString::_fwd_iterator::_fwd_iterator  ) 
 

Definition at line 289 of file OgreUTFString.h.

Ogre::UTFString::_fwd_iterator::_fwd_iterator const _fwd_iterator i  ) 
 

Definition at line 290 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_become().


Member Function Documentation

void Ogre::UTFString::_base_iterator::_become const _base_iterator i  )  [protected, inherited]
 

Definition at line 220 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_const_fwd_iterator::_const_fwd_iterator(), Ogre::UTFString::_const_rev_iterator::_const_rev_iterator(), _fwd_iterator(), and Ogre::UTFString::_rev_iterator::_rev_iterator().

size_type Ogre::UTFString::_base_iterator::_get_index  )  const [protected, inherited]
 

Definition at line 230 of file OgreUTFString.h.

References Ogre::UTFString::begin(), Ogre::UTFString::mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_base_iterator::_getCharacter(), and Ogre::UTFString::_base_iterator::_setCharacter().

unicode_char Ogre::UTFString::_base_iterator::_getCharacter  )  const [protected, inherited]
 

Definition at line 237 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_get_index(), Ogre::UTFString::getChar(), and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_const_fwd_iterator::getCharacter(), and getCharacter().

void Ogre::UTFString::_base_iterator::_jump_to size_type  index  )  [protected, inherited]
 

Definition at line 233 of file OgreUTFString.h.

References Ogre::UTFString::begin(), Ogre::UTFString::mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_base_iterator::_setCharacter().

void Ogre::UTFString::_base_iterator::_moveNext  )  [protected, inherited]
 

Definition at line 248 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd(), Ogre::UTFString::_base_iterator::_test_end(), Ogre::UTFString::_utf16_surrogate_follow(), Ogre::UTFString::_utf16_surrogate_lead(), and Ogre::UTFString::_base_iterator::mIter.

Referenced by Ogre::UTFString::_const_fwd_iterator::moveNext(), and moveNext().

void Ogre::UTFString::_base_iterator::_movePrev  )  [protected, inherited]
 

Definition at line 262 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekRev(), Ogre::UTFString::_base_iterator::_test_begin(), Ogre::UTFString::_utf16_surrogate_follow(), Ogre::UTFString::_utf16_surrogate_lead(), and Ogre::UTFString::_base_iterator::mIter.

Referenced by Ogre::UTFString::_const_fwd_iterator::movePrev(), and movePrev().

void Ogre::UTFString::_base_iterator::_seekFwd size_type  c  )  [protected, inherited]
 

Definition at line 214 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::mIter.

Referenced by Ogre::UTFString::_base_iterator::_moveNext(), Ogre::UTFString::_const_rev_iterator::operator+(), Ogre::UTFString::_rev_iterator::operator+(), Ogre::UTFString::_const_fwd_iterator::operator+(), operator+(), Ogre::UTFString::_const_fwd_iterator::operator++(), operator++(), Ogre::UTFString::_const_rev_iterator::operator+=(), Ogre::UTFString::_rev_iterator::operator+=(), Ogre::UTFString::_const_fwd_iterator::operator+=(), operator+=(), Ogre::UTFString::_const_rev_iterator::operator-(), Ogre::UTFString::_rev_iterator::operator-(), Ogre::UTFString::_const_fwd_iterator::operator-(), operator-(), Ogre::UTFString::_const_rev_iterator::operator--(), Ogre::UTFString::_rev_iterator::operator--(), Ogre::UTFString::_const_rev_iterator::operator-=(), Ogre::UTFString::_rev_iterator::operator-=(), Ogre::UTFString::_const_fwd_iterator::operator-=(), and operator-=().

void Ogre::UTFString::_base_iterator::_seekRev size_type  c  )  [protected, inherited]
 

Definition at line 217 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::mIter.

Referenced by Ogre::UTFString::_base_iterator::_movePrev(), Ogre::UTFString::_const_rev_iterator::operator+(), Ogre::UTFString::_rev_iterator::operator+(), Ogre::UTFString::_const_fwd_iterator::operator+(), operator+(), Ogre::UTFString::_const_rev_iterator::operator++(), Ogre::UTFString::_rev_iterator::operator++(), Ogre::UTFString::_const_rev_iterator::operator+=(), Ogre::UTFString::_rev_iterator::operator+=(), Ogre::UTFString::_const_fwd_iterator::operator+=(), operator+=(), Ogre::UTFString::_const_rev_iterator::operator-(), Ogre::UTFString::_rev_iterator::operator-(), Ogre::UTFString::_const_fwd_iterator::operator-(), operator-(), Ogre::UTFString::_const_fwd_iterator::operator--(), operator--(), Ogre::UTFString::_const_rev_iterator::operator-=(), Ogre::UTFString::_rev_iterator::operator-=(), Ogre::UTFString::_const_fwd_iterator::operator-=(), and operator-=().

int Ogre::UTFString::_base_iterator::_setCharacter unicode_char  uc  )  [protected, inherited]
 

Definition at line 241 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_get_index(), Ogre::UTFString::_base_iterator::_jump_to(), Ogre::UTFString::_base_iterator::mString, and Ogre::UTFString::setChar().

Referenced by setCharacter().

bool Ogre::UTFString::_base_iterator::_test_begin  )  const [protected, inherited]
 

Definition at line 224 of file OgreUTFString.h.

References Ogre::UTFString::begin(), Ogre::UTFString::mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_base_iterator::_movePrev().

bool Ogre::UTFString::_base_iterator::_test_end  )  const [protected, inherited]
 

Definition at line 227 of file OgreUTFString.h.

References Ogre::UTFString::end(), Ogre::UTFString::mData, Ogre::UTFString::_base_iterator::mIter, and Ogre::UTFString::_base_iterator::mString.

Referenced by Ogre::UTFString::_base_iterator::_moveNext().

unicode_char Ogre::UTFString::_fwd_iterator::getCharacter  )  const
 

Returns the Unicode value of the character at the current position (decodes surrogate pairs if needed).

Definition at line 405 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_getCharacter().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::moveNext void   ) 
 

advances to the next Unicode character, honoring surrogate pairs in the UTF-16 stream

Definition at line 395 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_moveNext().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::movePrev  ) 
 

rewinds to the previous Unicode character, honoring surrogate pairs in the UTF-16 stream

Definition at line 400 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_movePrev().

value_type& Ogre::UTFString::_fwd_iterator::operator *  )  const
 

dereference operator

Definition at line 377 of file OgreUTFString.h.

_fwd_iterator Ogre::UTFString::_fwd_iterator::operator+ difference_type  n  ) 
 

addition operator

Definition at line 325 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd(), and Ogre::UTFString::_base_iterator::_seekRev().

_fwd_iterator Ogre::UTFString::_fwd_iterator::operator+ size_type  n  ) 
 

addition operator

Definition at line 319 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd().

_fwd_iterator Ogre::UTFString::_fwd_iterator::operator++ int   ) 
 

post-increment

Definition at line 300 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::operator++  ) 
 

pre-increment

Definition at line 295 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::operator+= difference_type  n  ) 
 

addition assignment operator

Definition at line 355 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd(), and Ogre::UTFString::_base_iterator::_seekRev().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::operator+= size_type  n  ) 
 

addition assignment operator

Definition at line 350 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd().

_fwd_iterator Ogre::UTFString::_fwd_iterator::operator- difference_type  n  ) 
 

subtraction operator

Definition at line 340 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd(), and Ogre::UTFString::_base_iterator::_seekRev().

_fwd_iterator Ogre::UTFString::_fwd_iterator::operator- size_type  n  ) 
 

subtraction operator

Definition at line 334 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekRev().

_fwd_iterator Ogre::UTFString::_fwd_iterator::operator-- int   ) 
 

post-decrement

Definition at line 312 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekRev().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::operator--  ) 
 

pre-decrement

Definition at line 307 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekRev().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::operator-= difference_type  n  ) 
 

subtraction assignment operator

Definition at line 368 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekFwd(), and Ogre::UTFString::_base_iterator::_seekRev().

_fwd_iterator& Ogre::UTFString::_fwd_iterator::operator-= size_type  n  ) 
 

subtraction assignment operator

Definition at line 363 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_seekRev().

value_type& Ogre::UTFString::_fwd_iterator::operator[] difference_type  n  )  const
 

dereference at offset operator

Definition at line 388 of file OgreUTFString.h.

value_type& Ogre::UTFString::_fwd_iterator::operator[] size_type  n  )  const
 

dereference at offset operator

Definition at line 382 of file OgreUTFString.h.

int Ogre::UTFString::_fwd_iterator::setCharacter unicode_char  uc  ) 
 

Sets the Unicode value of the character at the current position (adding a surrogate pair if needed); returns the amount of string length change caused by the operation.

Definition at line 409 of file OgreUTFString.h.

References Ogre::UTFString::_base_iterator::_setCharacter().


Friends And Related Function Documentation

friend class _const_fwd_iterator [friend]
 

Definition at line 287 of file OgreUTFString.h.


Member Data Documentation

dstring::iterator Ogre::UTFString::_base_iterator::mIter [protected, inherited]
 

Definition at line 276 of file OgreUTFString.h.

Referenced by Ogre::UTFString::_base_iterator::_become(), Ogre::UTFString::_base_iterator::_get_index(), Ogre::UTFString::_base_iterator::_jump_to(), Ogre::UTFString::_base_iterator::_moveNext(), Ogre::UTFString::_base_iterator::_movePrev(), Ogre::UTFString::_base_iterator::_seekFwd(), Ogre::UTFString::_base_iterator::_seekRev(), Ogre::UTFString::_base_iterator::_test_begin(), Ogre::UTFString::_base_iterator::_test_end(), Ogre::UTFString::append(), Ogre::UTFString::assign(), Ogre::UTFString::begin(), Ogre::UTFString::end(), Ogre::UTFString::erase(), Ogre::UTFString::insert(), Ogre::UTFString::rbegin(), and Ogre::UTFString::rend().

UTFString* Ogre::UTFString::_base_iterator::mString [protected, inherited]
 

Definition at line 277 of file OgreUTFString.h.

Referenced by Ogre::UTFString::_base_iterator::_base_iterator(), Ogre::UTFString::_base_iterator::_become(), Ogre::UTFString::_base_iterator::_get_index(), Ogre::UTFString::_base_iterator::_getCharacter(), Ogre::UTFString::_base_iterator::_jump_to(), Ogre::UTFString::_base_iterator::_setCharacter(), Ogre::UTFString::_base_iterator::_test_begin(), Ogre::UTFString::_base_iterator::_test_end(), Ogre::UTFString::begin(), Ogre::UTFString::end(), Ogre::UTFString::erase(), Ogre::UTFString::insert(), Ogre::UTFString::rbegin(), and Ogre::UTFString::rend().


The documentation for this class was generated from the following file:

Copyright © 2000-2005 by The OGRE Team
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 25 13:09:53 2007