Iterator class to iterator through matches.
更多...
#include <regex.h>
Iterator class to iterator through matches.
在文件 regex.h 第 242 行定义.
◆ difference_type
◆ iterator_category
◆ pointer
◆ reference
◆ value_type
◆ Iterator() [1/5]
reg::Iterator::Iterator |
( |
| ) |
|
|
inline |
Creates an end-of-sequence iterator
在文件 regex.h 第 252 行定义.
254 {
return rhs.m_pos==
m_pos; }
引用了 m_pos.
◆ Iterator() [2/5]
reg::Iterator::Iterator |
( |
const std::string & |
str, |
|
|
const Ex & |
re, |
|
|
size_t |
pos = 0 |
|
) |
| |
|
inline |
Creates an iterator for input string str, using regular expression re to search.
- 注解
- the string and regular expression objects should remain valid while iterating.
在文件 regex.h 第 257 行定义.
257 {
return rhs.m_pos!=
m_pos; }
引用了 m_pos.
◆ Iterator() [3/5]
reg::Iterator::Iterator |
( |
std::string && |
str, |
|
|
const Ex & |
re |
|
) |
| |
|
delete |
◆ Iterator() [4/5]
reg::Iterator::Iterator |
( |
const std::string & |
str, |
|
|
Ex && |
re |
|
) |
| |
|
delete |
◆ Iterator() [5/5]
reg::Iterator::Iterator |
( |
std::string && |
str, |
|
|
Ex && |
re |
|
) |
| |
|
delete |
◆ findNext()
void reg::Iterator::findNext |
( |
| ) |
|
|
inlineprivate |
◆ operator!=()
bool reg::Iterator::operator!= |
( |
const Iterator & |
rhs | ) |
const |
|
inline |
◆ operator*()
const value_type& reg::Iterator::operator* |
( |
| ) |
const |
|
inline |
◆ operator++()
Advances the iterator to the next match.
在文件 regex.h 第 279 行定义.
◆ operator->()
const value_type* reg::Iterator::operator-> |
( |
| ) |
const |
|
inline |
◆ operator==()
bool reg::Iterator::operator== |
( |
const Iterator & |
rhs | ) |
const |
|
inline |
Returns true if the iterators point to the same match (or both are end-of-sequence iterators)
在文件 regex.h 第 267 行定义.
◆ m_match
Match reg::Iterator::m_match |
|
private |
◆ m_pos
size_t reg::Iterator::m_pos = std::string::npos |
|
private |
◆ m_re
const Ex* reg::Iterator::m_re = nullptr |
|
private |
◆ m_str
const std::string* reg::Iterator::m_str = nullptr |
|
private |
该类的文档由以下文件生成: