UTF8 string character iterator.
More...
#include <minitscript/utilities/UTF8CharacterIterator.h>
UTF8 string character iterator.
Definition at line 18 of file UTF8CharacterIterator.h.
◆ UTF8CharacterIterator()
Public constructor.
- Parameters
-
stringView | string view |
cache | UTF8 position cache or nullptr if UTF8 positions should not be cached |
Definition at line 90 of file UTF8CharacterIterator.h.
◆ reset()
◆ getBinaryPosition()
int64_t getBinaryPosition |
( |
| ) |
const |
|
inline |
◆ seekBinaryPosition()
void seekBinaryPosition |
( |
int64_t |
position | ) |
const |
|
inline |
Set underlying binary buffer position.
- Parameters
-
position | underlying buffer position |
Definition at line 112 of file UTF8CharacterIterator.h.
◆ getCharacterPosition()
int64_t getCharacterPosition |
( |
| ) |
const |
|
inline |
◆ seekCharacterPosition()
void seekCharacterPosition |
( |
int64_t |
position | ) |
const |
|
inline |
◆ hasNext()
◆ next()
◆ addCacheEntry()
void addCacheEntry |
( |
| ) |
const |
|
inlineprivate |
◆ stringView
const string_view stringView |
|
private |
◆ binaryPosition
int64_t binaryPosition { 0 } |
|
mutableprivate |
◆ characterPosition
int64_t characterPosition { 0 } |
|
mutableprivate |
◆ cache
The documentation for this class was generated from the following file: