Sese Framework  x.y.z
A cross-platform framework
载入中...
搜索中...
未找到
sstr::SStringView::Iterator类 参考

Unicode 字符迭代器 更多...

#include <SString.h>

Public 类型

using difference_type = SChar
 
using value_type = SChar
 
using pointer = const SChar *
 
using reference = const SChar &
 
using iterator_category = std::forward_iterator_tag
 

Public 成员函数

 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 成员函数

 Iterator ()=default
 

Private 属性

const char * _ref = nullptr
 
size_t _pos = 0
 
size_t _size = 0
 
SChar _ch = SChar(0)
 

详细描述

Unicode 字符迭代器

成员类型定义说明

◆ difference_type

◆ iterator_category

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

◆ pointer

◆ reference

◆ value_type

构造及析构函数说明

◆ Iterator() [1/2]

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

◆ Iterator() [2/2]

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

成员函数说明

◆ operator!=()

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

引用了 _pos , 以及 _ref.

◆ operator*()

SChar Iterator::operator* ( )

◆ operator++()

◆ operator==()

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

引用了 _pos , 以及 _ref.

类成员变量说明

◆ _ch

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

◆ _pos

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

被这些函数引用 operator!=() , 以及 operator==().

◆ _ref

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

被这些函数引用 operator!=() , 以及 operator==().

◆ _size

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

该类的文档由以下文件生成: