Sese Framework
2.3.0
A cross-platform framework
|
Unicode character iterator. More...
#include <SString.h>
Public Types | |
using | difference_type = SChar |
using | value_type = SChar |
using | pointer = const SChar * |
using | reference = const SChar & |
using | iterator_category = std::forward_iterator_tag |
Public Member Functions | |
Iterator (const char *ref, size_t size, size_t pos=0) | |
Iterator | operator++ () |
bool | operator== (const Iterator &other) const |
bool | operator!= (const Iterator &other) const |
SChar | operator* () |
Private Member Functions | |
Iterator ()=default | |
Private Attributes | |
const char * | _ref = nullptr |
size_t | _pos = 0 |
size_t | _size = 0 |
SChar | _ch = SChar(0) |
Unicode character iterator.
using sstr::SStringView::Iterator::iterator_category = std::forward_iterator_tag |
using sstr::SStringView::Iterator::pointer = const SChar * |
using sstr::SStringView::Iterator::reference = const SChar & |
Iterator::Iterator | ( | const char * | ref, |
size_t | size, | ||
size_t | pos = 0 ) |
References sstr::getUnicodeFromUTF8Char().
|
privatedefault |
SChar Iterator::operator* | ( | ) |
Iterator Iterator::operator++ | ( | ) |
References sstr::getUnicodeFromUTF8Char(), sstr::getUTF8SizeFromUnicodeChar(), and null_char.
|
private |
Referenced by operator!=(), and operator==().
|
private |
Referenced by operator!=(), and operator==().
|
private |