You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
838 B
46 lines
838 B
/*++
|
|
|
|
Copyright (C) 1996-1999 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
DIFF.INL
|
|
|
|
History:
|
|
|
|
--*/
|
|
|
|
inline
|
|
CDifference::~CDifference()
|
|
{
|
|
}
|
|
|
|
inline
|
|
CDelta::~CDelta()
|
|
{
|
|
}
|
|
|
|
inline
|
|
CDiffAlgorithm::~CDiffAlgorithm()
|
|
{
|
|
}
|
|
|
|
|
|
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
// Calculates the delta following the given algorithm and then traverses
|
|
// the delta and calls back the delta visitor for each difference in the delta.
|
|
//------------------------------------------------------------------------------
|
|
inline
|
|
void
|
|
CDiffEngine::Diff(
|
|
CDiffAlgorithm & diffalg,
|
|
const wchar_t * seq1, // [in] old sequence
|
|
const wchar_t * seq2, // [in] new sequence
|
|
const CDeltaVisitor & dv)
|
|
{
|
|
CDelta * d;
|
|
d = diffalg.CalculateDelta(seq1, seq2);
|
|
d->Traverse(dv);
|
|
delete d;
|
|
}
|
|
|