The searches that accept no empty match (std::regex_constants::match_not_null), for the std drop-in; not part of REAL's own interface.
More...
#include <real.hpp>
|
| template<typename Storage > |
| static auto | search (const basic_regex< Storage > &re, std::string_view text, std::size_t pos) |
| | Leftmost search from pos that accepts no empty match.
|
| |
| template<typename Storage > |
| static auto | match (const basic_regex< Storage > &re, std::string_view text, std::size_t pos) |
| | Match anchored at pos that accepts no empty match.
|
| |
The searches that accept no empty match (std::regex_constants::match_not_null), for the std drop-in; not part of REAL's own interface.
◆ match()
template<typename Storage >
| static auto real::detail::non_empty_access::match |
( |
const basic_regex< Storage > & |
re, |
|
|
std::string_view |
text, |
|
|
std::size_t |
pos |
|
) |
| |
|
inlinestatic |
Match anchored at pos that accepts no empty match.
- Template Parameters
-
| Storage | The regex's storage policy. |
- Parameters
-
| [in] | re | The pattern. |
| [in] | text | The subject (must outlive the result). |
| [in] | pos | Byte offset the match starts at; the text before it is context. |
- Returns
- The match, offsets absolute in
text.
◆ search()
template<typename Storage >
| static auto real::detail::non_empty_access::search |
( |
const basic_regex< Storage > & |
re, |
|
|
std::string_view |
text, |
|
|
std::size_t |
pos |
|
) |
| |
|
inlinestatic |
Leftmost search from pos that accepts no empty match.
- Template Parameters
-
| Storage | The regex's storage policy. |
- Parameters
-
| [in] | re | The pattern. |
| [in] | text | The subject (must outlive the result). |
| [in] | pos | Byte offset to start at; the text before it is context. |
- Returns
- The match, offsets absolute in
text.
The documentation for this struct was generated from the following file: