A bi-directional Iterator type that allow iteration over Unicode characters (rather than bytes). STL-compatible.
#include <utility/YiString.h>
Public Types | |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef char32_t | value_type |
typedef ptrdiff_t | difference_type |
typedef const char32_t * | pointer |
typedef char32_t | reference |
Public Member Functions | |
ConstIterator () | |
ConstIterator (CYIStringView view, size_t charactersOffset) | |
ConstIterator (const ConstIterator &other) | |
ConstIterator (const CYIStringView::ConstIterator &other) | |
~ConstIterator () | |
ConstIterator & | operator= (const ConstIterator &other) |
value_type | operator* () const |
operator CYIStringView::ConstIterator () const | |
bool | operator== (const ConstIterator &other) const |
bool | operator!= (const ConstIterator &other) const |
ConstIterator & | operator++ () |
ConstIterator | operator++ (int) |
ConstIterator & | operator-- () |
ConstIterator | operator-- (int) |
const char * | GetData () const |
ConstReverseIterator | Reverse () const |
Friends | |
class | CYIString |
typedef ptrdiff_t CYIString::ConstIterator::difference_type |
typedef std::bidirectional_iterator_tag CYIString::ConstIterator::iterator_category |
typedef const char32_t* CYIString::ConstIterator::pointer |
typedef char32_t CYIString::ConstIterator::reference |
typedef char32_t CYIString::ConstIterator::value_type |
CYIString::ConstIterator::ConstIterator | ( | ) |
CYIString::ConstIterator::ConstIterator | ( | CYIStringView | view, |
size_t | charactersOffset | ||
) |
CYIString::ConstIterator::ConstIterator | ( | const ConstIterator & | other | ) |
CYIString::ConstIterator::ConstIterator | ( | const CYIStringView::ConstIterator & | other | ) |
CYIString::ConstIterator::~ConstIterator | ( | ) |
const char* CYIString::ConstIterator::GetData | ( | ) | const |
Returns the address to the raw UTF-8 data pointed to by this iterator.
CYIString::ConstIterator::operator CYIStringView::ConstIterator | ( | ) | const |
Implicitely converts this iterator to a string view iterator.
bool CYIString::ConstIterator::operator!= | ( | const ConstIterator & | other | ) | const |
value_type CYIString::ConstIterator::operator* | ( | ) | const |
Returns the 32-bit Unicode value pointed to by this iterator. Returns 0 when the 'end' iterator is dereferenced.
ConstIterator& CYIString::ConstIterator::operator++ | ( | ) |
ConstIterator CYIString::ConstIterator::operator++ | ( | int | ) |
ConstIterator& CYIString::ConstIterator::operator-- | ( | ) |
ConstIterator CYIString::ConstIterator::operator-- | ( | int | ) |
ConstIterator& CYIString::ConstIterator::operator= | ( | const ConstIterator & | other | ) |
bool CYIString::ConstIterator::operator== | ( | const ConstIterator & | other | ) | const |
ConstReverseIterator CYIString::ConstIterator::Reverse | ( | ) | const |
|
friend |