Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Glib::ustring_Iterator< T > Class Template Reference

#include <ustring.h>

List of all members.


Detailed Description

template<class T>
class Glib::ustring_Iterator< T >

The iterator type of Glib::ustring. Note this is not a random access iterator but a bidirectional one, since all index operations need to iterate over the UTF-8 data. Use std::advance() to move to a certain position. However, all of the relational operators are available: == != < > <= >=

A writeable iterator isn't provided because: The number of bytes of the old UTF-8 character and the new one to write could be different. Therefore, any write operation would invalidate all other iterators pointing into the same string.

Definition at line 100 of file ustring.h.


Public Types

typedef
std::string::difference_type 
difference_type
typedef
std::bidirectional_iterator_tag 
iterator_category
typedef void pointer
typedef value_type reference
typedef gunichar value_type

Public Member Functions

base () const
value_type operator* () const
const ustring_Iterator< T > operator++ (int)
ustring_Iterator< T > & operator++ ()
const ustring_Iterator< T > operator-- (int)
ustring_Iterator< T > & operator-- ()
 ustring_Iterator (T pos)
 ustring_Iterator (const ustring_Iterator< std::string::iterator > &other)

Private Attributes

pos_

Related Functions

(Note that these are not member functions.)

template<class T>
bool operator!= (const ustring_Iterator< T > &lhs, const ustring_Iterator< T > &rhs)
template<class T>
bool operator< (const ustring_Iterator< T > &lhs, const ustring_Iterator< T > &rhs)
template<class T>
bool operator<= (const ustring_Iterator< T > &lhs, const ustring_Iterator< T > &rhs)
template<class T>
bool operator== (const ustring_Iterator< T > &lhs, const ustring_Iterator< T > &rhs)
template<class T>
bool operator> (const ustring_Iterator< T > &lhs, const ustring_Iterator< T > &rhs)
template<class T>
bool operator>= (const ustring_Iterator< T > &lhs, const ustring_Iterator< T > &rhs)

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

Generated by  Doxygen 1.6.0   Back to index