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

Method range

src/eepp/system/patternmatcher.cpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50bool PatternMatcher::range( int indexGet, int& startMatch, int& endMatch,
51 PatternMatcher::Range* returnedMatched ) const {
52 if ( indexGet == -1 )
53 indexGet = getNumMatches() > 1 ? 1 : 0;
54 if ( indexGet >= 0 && indexGet < (int)getNumMatches() ) {
55 startMatch = returnedMatched[indexGet].start;
56 endMatch = returnedMatched[indexGet].end;
57 return true;
58 }
59 return false;
60}
61
62bool PatternMatcher::State::range( int index, int& start, int& end ) {
63 return mPattern->range( index, start, end, mRanges );

Callers 4

nextMethod · 0.80
groupMethod · 0.80
groupViewMethod · 0.80
substMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected