concordia-library/concordia/matched_pattern_fragment.cpp
2017-04-21 14:51:58 +02:00

19 lines
723 B
C++

#include "concordia/matched_pattern_fragment.hpp"
MatchedPatternFragment::MatchedPatternFragment(
const SUFFIX_MARKER_TYPE & patternOffset,
const SUFFIX_MARKER_TYPE & matchedLength):
Interval(patternOffset,
patternOffset + matchedLength),
_patternOffset(patternOffset),
_matchedLength(matchedLength) {
}
MatchedPatternFragment::~MatchedPatternFragment() {
}
void MatchedPatternFragment::addOccurence(
const SubstringOccurence & occurence) {
_occurences.push_back(occurence);
}