|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
正则表达式令牌迭代器 更多...
#include <regex.hpp>
Public 类型 | |
| enum class | state { BEFORE_FIRST , BETWEEN_MATCHES , AFTER_LAST , END } |
| 迭代器状态枚举 更多... | |
Public 成员函数 | |
| regex_token_iterator ()=default | |
| 默认构造函数 | |
| regex_token_iterator (const regex *re, string str, int index=0) | |
| 构造函数 | |
| NEFORCE_NODISCARD string | operator* () const noexcept |
| 解引用操作符 | |
| regex_token_iterator & | operator++ () |
| 前置递增操作符 | |
| regex_token_iterator | operator++ (int) |
| 后置递增操作符 | |
| NEFORCE_NODISCARD bool | operator== (const regex_token_iterator &other) const noexcept |
| 相等比较操作符 | |
| NEFORCE_NODISCARD bool | operator!= (const regex_token_iterator &other) const noexcept |
| 不等比较操作符 | |
|
strong |
构造函数
| re | 正则表达式对象 |
| str | 待遍历的字符串 |
| index | 捕获组索引(-1表示分隔符模式,0表示完整匹配) |
|
inlinenoexcept |
|
inlinenoexcept |
| regex_token_iterator & regex_token_iterator::operator++ | ( | ) |
|
inline |
|
noexcept |