Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sstr::SStringView::Iterator Class Reference

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)
 

Detailed Description

Unicode character iterator.

Member Typedef Documentation

◆ difference_type

◆ iterator_category

using sstr::SStringView::Iterator::iterator_category = std::forward_iterator_tag

◆ pointer

◆ reference

◆ value_type

Constructor & Destructor Documentation

◆ Iterator() [1/2]

Iterator::Iterator ( const char * ref,
size_t size,
size_t pos = 0 )

◆ Iterator() [2/2]

sstr::SStringView::Iterator::Iterator ( )
privatedefault

Member Function Documentation

◆ operator!=()

bool Iterator::operator!= ( const Iterator & other) const

References _pos, and _ref.

◆ operator*()

SChar Iterator::operator* ( )

◆ operator++()

◆ operator==()

bool Iterator::operator== ( const Iterator & other) const

References _pos, and _ref.

Member Data Documentation

◆ _ch

SChar sstr::SStringView::Iterator::_ch = SChar(0)
private

◆ _pos

size_t sstr::SStringView::Iterator::_pos = 0
private

Referenced by operator!=(), and operator==().

◆ _ref

const char* sstr::SStringView::Iterator::_ref = nullptr
private

Referenced by operator!=(), and operator==().

◆ _size

size_t sstr::SStringView::Iterator::_size = 0
private

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