MCPcopy Create free account
hub / github.com/SpartanJ/eepp / groupView

Method groupView

src/eepp/system/patternmatcher.cpp:138–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138std::string_view PatternMatcher::Match::groupView( int idx ) const {
139 static constexpr auto EMPTY = ""sv;
140 int m1, m2;
141 if ( mState->range( idx, m1, m2 ) )
142 return std::string_view( mString + m1, m2 - m1 );
143 return EMPTY;
144}
145
146bool PatternMatcher::Match::range( int idx, int& start, int& end ) const {
147 return mState->range( idx, start, end );

Callers

nothing calls this directly

Calls 1

rangeMethod · 0.80

Tested by

no test coverage detected