concordia-library/concordia/matched_pattern_fragment.cpp

19 lines
728 B
C++
Raw Normal View History

#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() {
}
2019-01-22 14:07:28 +01:00
void MatchedPatternFragment::addOccurrence(
const SubstringOccurrence & occurrence) {
_occurrences.push_back(occurrence);
2017-04-21 14:51:58 +02:00
}