|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
A range of matches, returned by find_iter() and usable in range-for.
More...
#include <real.hpp>
Public Member Functions | |
| constexpr | basic_match_range (detail::program_view prog, std::string_view pattern, std::string_view text, std::size_t start=0, match_semantics sem=match_semantics::first) |
| Binds the range to a program and text. | |
| constexpr basic_match_iterator< Storage > | begin () const |
| Returns an iterator to the first match. | |
| constexpr basic_match_iterator< Storage > | end () const |
| Returns the end sentinel. | |
Private Attributes | |
| detail::program_view | prog_ |
| The program being run. | |
| std::string_view | pattern_ |
| Pattern text (named lookups). | |
| std::string_view | text_ |
| The text to iterate. | |
| std::size_t | start_ {} |
| Byte offset to begin iterating from (region support). | |
| match_semantics | sem_ {match_semantics::first} |
| leftmost-first (default) or longest. | |
A range of matches, returned by find_iter() and usable in range-for.
| Storage | The regex's storage policy. |
|
inlineconstexpr |
Binds the range to a program and text.
| [in] | prog | The compiled program. |
| [in] | pattern | The pattern text (for named-group resolution). |
| [in] | text | The text to iterate over (borrowed). |
| [in] | start | Byte offset to begin iterating from (0 = the whole text). |
| [in] | sem | Match semantics: leftmost-first (default) or the experimental leftmost-longest. |
|
inlineconstexpr |
|
inlineconstexpr |
|
private |
|
private |
|
private |
|
private |
|
private |