TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
utf8::iterator< octet_iterator > Class Template Reference

#include <checked.h>

Public Member Functions

 iterator ()
 
 iterator (const octet_iterator &octet_it, const octet_iterator &range_start, const octet_iterator &range_end)
 
octet_iterator base () const
 
uint32_t operator* () const
 
bool operator== (const iterator &rhs) const
 
bool operator!= (const iterator &rhs) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 

Private Attributes

octet_iterator it
 
octet_iterator range_start
 
octet_iterator range_end
 

Constructor & Destructor Documentation

template<typename octet_iterator >
utf8::iterator< octet_iterator >::iterator ( )
inline
273 {}
template<typename octet_iterator >
utf8::iterator< octet_iterator >::iterator ( const octet_iterator< octet_iterator > &  octet_it,
const octet_iterator< octet_iterator > &  range_start,
const octet_iterator< octet_iterator > &  range_end 
)
inlineexplicit
276  :
278  {
279  if (it < range_start || it > range_end)
280  throw std::out_of_range("Invalid utf-8 iterator position");
281  }
octet_iterator range_start
Definition: checked.h:270
octet_iterator it
Definition: checked.h:269
octet_iterator range_end
Definition: checked.h:271

Member Function Documentation

template<typename octet_iterator >
octet_iterator utf8::iterator< octet_iterator >::base ( ) const
inline
283 { return it; }
octet_iterator it
Definition: checked.h:269
template<typename octet_iterator >
bool utf8::iterator< octet_iterator >::operator!= ( const iterator< octet_iterator > &  rhs) const
inline
296  {
297  return !(operator == (rhs));
298  }
bool operator==(const iterator &rhs) const
Definition: checked.h:289

+ Here is the call graph for this function:

template<typename octet_iterator >
uint32_t utf8::iterator< octet_iterator >::operator* ( ) const
inline
285  {
286  octet_iterator temp = it;
287  return utf8::next(temp, range_end);
288  }
uint32_t next(octet_iterator &it, octet_iterator end)
Definition: checked.h:137
octet_iterator it
Definition: checked.h:269
octet_iterator range_end
Definition: checked.h:271

+ Here is the call graph for this function:

template<typename octet_iterator >
iterator& utf8::iterator< octet_iterator >::operator++ ( )
inline
300  {
302  return *this;
303  }
uint32_t next(octet_iterator &it, octet_iterator end)
Definition: checked.h:137
octet_iterator it
Definition: checked.h:269
octet_iterator range_end
Definition: checked.h:271

+ Here is the call graph for this function:

template<typename octet_iterator >
iterator utf8::iterator< octet_iterator >::operator++ ( int  )
inline
305  {
306  iterator temp = *this;
308  return temp;
309  }
uint32_t next(octet_iterator &it, octet_iterator end)
Definition: checked.h:137
octet_iterator it
Definition: checked.h:269
octet_iterator range_end
Definition: checked.h:271
iterator()
Definition: checked.h:273

+ Here is the call graph for this function:

template<typename octet_iterator >
iterator& utf8::iterator< octet_iterator >::operator-- ( )
inline
311  {
313  return *this;
314  }
octet_iterator range_start
Definition: checked.h:270
uint32_t prior(octet_iterator &it, octet_iterator start)
Definition: checked.h:163
octet_iterator it
Definition: checked.h:269

+ Here is the call graph for this function:

template<typename octet_iterator >
iterator utf8::iterator< octet_iterator >::operator-- ( int  )
inline
316  {
317  iterator temp = *this;
319  return temp;
320  }
octet_iterator range_start
Definition: checked.h:270
uint32_t prior(octet_iterator &it, octet_iterator start)
Definition: checked.h:163
octet_iterator it
Definition: checked.h:269
iterator()
Definition: checked.h:273

+ Here is the call graph for this function:

template<typename octet_iterator >
bool utf8::iterator< octet_iterator >::operator== ( const iterator< octet_iterator > &  rhs) const
inline
290  {
291  if (range_start != rhs.range_start || range_end != rhs.range_end)
292  throw std::logic_error("Comparing utf-8 iterators defined with different ranges");
293  return (it == rhs.it);
294  }
octet_iterator range_start
Definition: checked.h:270
octet_iterator it
Definition: checked.h:269
octet_iterator range_end
Definition: checked.h:271

+ Here is the caller graph for this function:

Member Data Documentation

template<typename octet_iterator >
octet_iterator utf8::iterator< octet_iterator >::it
private
template<typename octet_iterator >
octet_iterator utf8::iterator< octet_iterator >::range_end
private
template<typename octet_iterator >
octet_iterator utf8::iterator< octet_iterator >::range_start
private

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