libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
String::CharIterator Class Reference

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
 
CharIteratoroperator++ ()
 
CharIterator operator++ (int)
 
CharIteratoroperator-- ()
 
CharIterator operator-- (int)
 
CharIteratoroperator+= (difference_type n)
 
CharIteratoroperator-= (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)
 

Detailed Description

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.


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