Random-access iterator over characters (Char values). More...
#include <string.h>
Public Types | |
| using | iterator_category = std::random_access_iterator_tag |
| using | value_type = Char |
| using | difference_type = std::ptrdiff_t |
| using | pointer = void |
| using | reference = Char |
Public Member Functions | |
| CharIterator (const StringData *data, size_t idx) | |
| Char | operator* () const |
| Char | operator[] (difference_type n) const |
| CharIterator & | operator++ () |
| CharIterator | operator++ (int) |
| CharIterator & | operator-- () |
| CharIterator | operator-- (int) |
| CharIterator & | operator+= (difference_type n) |
| CharIterator & | operator-= (difference_type n) |
| CharIterator | operator+ (difference_type n) const |
| CharIterator | operator- (difference_type n) const |
| difference_type | operator- (const CharIterator &o) const |
| bool | operator== (const CharIterator &o) const |
| bool | operator!= (const CharIterator &o) const |
| bool | operator< (const CharIterator &o) const |
| bool | operator<= (const CharIterator &o) const |
| bool | operator> (const CharIterator &o) const |
| bool | operator>= (const CharIterator &o) const |
Friends | |
| CharIterator | operator+ (difference_type n, const CharIterator &it) |
Random-access iterator over characters (Char values).
Wraps a StringData pointer and an index. Both Latin1 and Unicode backends provide O(1) charAt(), so this is efficient.