src/Generic/patterns/MatchStorage.cpp
// Advance to the next combination of mention matches

Advance to the next combination of mention matches
Advance to the next combination of mention matches
void MatchStorage::advance() 
{
	for (int i = 0; i <= _highest; i++) {
		if (_patternsArray[i] == 0) continue; 
		_currentMatches[i] = _currentMatches[i]->next;
		if (_currentMatches[i] != 0) return;
		_currentMatches[i] = _patternsArray[i];
	}
	_finished = true;
	return;
}
void MatchStorage :: advance ( ) { for ( int i = 0 ; i <= _highest ; i ++ ) { if ( _patternsArray [ i ] == 0 ) continue ; _currentMatches [ i ] = _currentMatches [ i ] -> next ; if ( _currentMatches [ i ] != 0 ) return ; _currentMatches [ i ] = _patternsArray [ i ] ; } _finished = true ; return ; }
Advance to the next combination of mention matches
Advance to the next combination of mention matches
// text pattern
 // We moved off the end of this pattern's list, reset to start and advance next pattern's list
 // We moved off the end of the last list. This means we've looked at all combinations of MatchData
