|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
正则表达式匹配迭代器 更多...
#include <regex.hpp>
Public 类型 | |
| using | iterator_category = bidirectional_iterator_tag |
| 迭代器类型 | |
| using | value_type = match_result |
| 元素类型 | |
| using | difference_type = ptrdiff_t |
| 差值类型 | |
| using | pointer = const match_result* |
| 指针类型 | |
| using | reference = const match_result& |
| 引用类型 | |
Public 成员函数 | |
| regex_iterator ()=default | |
| 默认构造函数,构造结束迭代器 | |
| regex_iterator (const regex *re, string str, size_t pos=0) | |
| 构造函数 | |
| NEFORCE_NODISCARD reference | operator* () const |
| 解引用操作符 | |
| NEFORCE_NODISCARD pointer | operator-> () const |
| 成员访问操作符 | |
| regex_iterator & | operator++ () |
| 前置递增操作符 | |
| regex_iterator | operator++ (int) |
| 后置递增操作符 | |
| regex_iterator & | operator-- () |
| 前置递减操作符 | |
| regex_iterator | operator-- (int) |
| 后置递减操作符 | |
| NEFORCE_NODISCARD bool | operator== (const regex_iterator &other) const noexcept |
| 相等比较操作符 | |
| NEFORCE_NODISCARD bool | operator!= (const regex_iterator &other) const noexcept |
| 不等比较操作符 | |
静态 Public 成员函数 | |
| static regex_iterator | from_index (const regex *re, const string &str, ptrdiff_t index) |
| 从指定索引构造迭代器 | |
| static regex_iterator | begin (const regex *re, const string &str) |
| 获取起始迭代器 | |
| static regex_iterator | end (const regex *re, const string &str) |
| 获取结束迭代器 | |
构造函数
| re | 正则表达式对象 |
| str | 待遍历的字符串 |
| pos | 起始位置 |
|
inlinestatic |
|
inlinestatic |
|
static |
|
inlinenoexcept |
| NEFORCE_NODISCARD reference regex_iterator::operator* | ( | ) | const |
解引用操作符
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
noexcept |