REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::detail::non_empty_access Struct Reference

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>

Static Public Member Functions

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.
 

Detailed Description

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.

Member Function Documentation

◆ 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
StorageThe regex's storage policy.
Parameters
[in]reThe pattern.
[in]textThe subject (must outlive the result).
[in]posByte 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
StorageThe regex's storage policy.
Parameters
[in]reThe pattern.
[in]textThe subject (must outlive the result).
[in]posByte 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: