The SubMatch
Class Reference
Object representing the match results of a capture range. More...
Declaration
class reg::SubMatch { ... }
Friends Index
Public Constructors Index
| SubMatch (std::string_view str) |
|
Creates a match for a single capture range given a non-owning pointer to the string. More...
|
|
Public Member Functions Index
size_t | position () const |
|
Returns the position in the string at which the match starts. More...
|
|
size_t | length () const |
|
Returns the length of the matching part. More...
|
|
std::string | str () const |
|
Returns the matching part as a string. More...
|
|
Private Member Functions Index
Private Member Attributes Index
size_t | m_pos = std::string::npos |
|
|
|
size_t | m_len = std::string::npos |
|
|
|
std::string_view | m_str |
|
|
|
Description
Object representing the match results of a capture range.
Definition at line 118 of file regex.h.
Public Constructors
SubMatch()
reg::SubMatch::SubMatch (std::string_view str) |
|
inline
|
Creates a match for a single capture range given a non-owning pointer to the string.
Definition at line 122 of file regex.h.
References m_str and str.
Public Member Functions
length()
size_t reg::SubMatch::length () |
|
inline
|
Returns the length of the matching part.
Definition at line 128 of file regex.h.
Reference m_len.
position()
size_t reg::SubMatch::position () |
|
inline
|
Returns the position in the string at which the match starts.
Definition at line 125 of file regex.h.
Reference m_pos.
str()
std::string reg::SubMatch::str () |
|
inline
|
Private Member Functions
setEnd()
void reg::SubMatch::setEnd (size_t pos) |
|
inline
|
setMatch()
void reg::SubMatch::setMatch (size_t pos, size_t len) |
|
inline
|
setStart()
void reg::SubMatch::setStart (size_t pos) |
|
inline
|
Private Member Attributes
m_len
size_t reg::SubMatch::m_len = std::string::npos |
|
m_pos
size_t reg::SubMatch::m_pos = std::string::npos |
|
m_str
std::string_view reg::SubMatch::m_str |
|
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.