#include <base/iterator/UTF8Iterator.h>
Iterator used to traverse UTF-8.
◆ UTF8Iterator() [1/2]
UTF8Iterator::UTF8Iterator |
( |
Pointer |
value | ) |
|
|
inlinenoexcept |
Initializes iterator.
- Parameters
-
value | The initial value of the iterator. |
◆ UTF8Iterator() [2/2]
Initializes iterator from other iterator.
◆ hasValidCode()
bool UTF8Iterator::hasValidCode |
( |
| ) |
const |
|
inline |
Returns true if the UTF-8 encoding is valid at the current position. Does NOT check if code is an allowed UCS4 code as such should be skipped fully.
◆ next()
Reads UCS4 (doesnt check if UCS4 code is disallowed).
◆ operator!=()
bool UTF8Iterator::operator!= |
( |
const UTF8Iterator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if the iterators aren't equal.
◆ operator*()
ucs4 UTF8Iterator::operator* |
( |
| ) |
const |
|
inline |
◆ operator++() [1/2]
◆ operator++() [2/2]
◆ operator+=()
Moves the specified distance forward.
◆ operator<()
bool UTF8Iterator::operator< |
( |
const UTF8Iterator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if this iterator is less than the specified iterator.
◆ operator<=()
bool UTF8Iterator::operator<= |
( |
const UTF8Iterator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if this iterator is less than or equal to the specified iterator.
◆ operator=()
Initializes iterator from other iterator.
◆ operator==()
bool UTF8Iterator::operator== |
( |
const UTF8Iterator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if the iterators are equal.
◆ operator>()
bool UTF8Iterator::operator> |
( |
const UTF8Iterator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if this iterator is greater than the specified iterator.
◆ operator>=()
bool UTF8Iterator::operator>= |
( |
const UTF8Iterator & |
compare | ) |
const |
|
inlinenoexcept |
Returns true if this iterator is greater than or equal to the specified iterator.
◆ operator[]()
ucs4 UTF8Iterator::operator[] |
( |
Distance |
index | ) |
const |
|
inline |
Returns the element at the specified index from this element.
◆ skip()
void UTF8Iterator::skip |
( |
| ) |
|
|
inlinenoexcept |
Skip a single byte - not encoded character. Used to skip bad codes only.
◆ element
Pointer UTF8Iterator::element = nullptr |
|
protected |
The position of the iterator.