CsString
1.4.1
|
Iterator class for CsBasicString. More...
Public Typedefs | |
using | size_type = std::ptrdiff_t |
Public Member Functions | |
CsStringIterator () = default | |
bool | operator!= (const CsStringIterator< E, A > &other) const |
CsChar | operator* () const |
CsStringIterator< E, A > | operator+ (size_type n) const |
CsStringIterator< E, A > & | operator++ () |
CsStringIterator< E, A > | operator++ (int) |
CsStringIterator< E, A > & | operator+= (size_type n) |
size_type | operator- (CsStringIterator< E, A > other) const |
CsStringIterator< E, A > | operator- (size_type n) const |
CsStringIterator< E, A > & | operator-- () |
CsStringIterator< E, A > | operator-- (int) |
CsStringIterator< E, A > & | operator-= (size_type n) |
CsCharArrow | operator-> () const |
bool | operator< (const CsStringIterator< E, A > &other) const |
bool | operator<= (const CsStringIterator< E, A > &other) const |
bool | operator== (const CsStringIterator< E, A > &other) const |
bool | operator> (const CsStringIterator< E, A > &other) const |
bool | operator>= (const CsStringIterator< E, A > &other) const |
CsChar | operator[] (size_type n) const |
This class implements a random access iterator for CsBasicString. All CsStringIterators are const.
CsStringIterator::size_type |
Typedef for an integer type representing sizes in a iterator.
|
inlinedefault |
Constructs an uninitialized CsStringIterator.
bool CsString::CsStringIterator< E, A >::operator!= | ( | const CsStringIterator<E, A> & | other | ) | const |
Returns true if other points to a different code point than this iterator, otherwise returns false.
CsString::CsChar CsString::CsStringIterator< E, A >::operator* | ( | ) | const |
Returns the current code point.
CsStringIterator< E, A > CsString::CsStringIterator< E, A >::operator+ | ( | size_type | n | ) | const |
Returns an iterator to the code point n positions after this iterator. If n is negative, the iterator goes backward.
CsStringIterator< E, A > & CsString::CsStringIterator< E, A >::operator++ | ( | ) |
The prefix ++ operator advances the iterator to the next code point in the string and returns the new iterator.
Calling this function on the end() iterator leads to undefined results.
CsStringIterator< E, A > CsString::CsStringIterator< E, A >::operator++ | ( | int | ) |
The postfix ++ operator advances the iterator to the next code point in the string and returns the old iterator.
CsStringIterator< E, A > & CsString::CsStringIterator< E, A >::operator+= | ( | size_type | n | ) |
Advances the iterator by n code points. If n is negative, the iterator goes backward.
size_type CsString::CsStringIterator< E, A >::operator- | ( | CsStringIterator<E, A> | other | ) | const |
Returns the number of code points between the code point pointed to by other and the code point pointed to by this iterator.
CsStringIterator< E, A > CsString::CsStringIterator< E, A >::operator- | ( | size_type | n | ) | const |
Returns an iterator to the code point at n positions backward from this iterator. If n is negative, the iterator goes forward.
CsStringIterator< E, A > & CsString::CsStringIterator< E, A >::operator-- | ( | ) |
The prefix – operator decrements the iterator to the previous code point in the string and returns the new iterator.
Calling this method on begin() leads to undefined results.
CsStringIterator< E, A > CsString::CsStringIterator< E, A >::operator-- | ( | int | ) |
The postfix – operator decrements the iterator to the previous code point in the string and returns the old iterator.
CsStringIterator< E, A > & CsString::CsStringIterator< E, A >::operator-= | ( | size_type | n | ) |
Returns an iterator to the code point at n positions backward from this iterator. If n is negative the iterator goes forward.
CsString::CsCharArrow CsString::CsStringIterator< E, A >::operator-> | ( | ) | const |
Returns the current code point.
bool CsString::CsStringIterator< E, A >::operator< | ( | const CsStringIterator<E, A> & | other | ) | const |
Returns true if this iterator is closer to the beginning of the string than the other iterator.
bool CsString::CsStringIterator< E, A >::operator<= | ( | const CsStringIterator<E, A> & | other | ) | const |
Returns true if this iterator is equal to or closer to the beginning of the string than the other iterator.
bool CsString::CsStringIterator< E, A >::operator== | ( | const CsStringIterator<E, A> & | other | ) | const |
Returns true if other points to the same code point as this iterator, otherwise returns false.
bool CsString::CsStringIterator< E, A >::operator> | ( | const CsStringIterator<E, A> & | other | ) | const |
Returns true if this iterator is further from the beginning of the string than the other iterator.
bool CsString::CsStringIterator< E, A >::operator>= | ( | const CsStringIterator<E, A> & | other | ) | const |
Returns true if this iterator is equal to or further from the beginning of the string than the other iterator.
CsString::CsChar CsString::CsStringIterator< E, A >::operator[] | ( | size_type | n | ) | const |
Returns the code point at position this + n.