wxMaxima
Loading...
Searching...
No Matches
DiffAlgorithm.h
1// -*- mode: c++; c-file-style: "linux"; c-basic-offset: 2; indent-tabs-mode: nil -*-
2// Copyright (C) 2026 Gemini CLI
3//
4// This program is free software; you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation; either version 2 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14//
15// You should have received a copy of the GNU General Public License
16// along with this program; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18//
19// SPDX-License-Identifier: GPL-2.0+
20
21#ifndef DIFFALGORITHM_H
22#define DIFFALGORITHM_H
23
24#include <wx/string.h>
25#include <vector>
26#include "WXMformat.h"
27
28namespace Diff {
29
34 wxString uuid;
35 wxString content;
36 GroupType type;
37};
38
42int FindOptimalThreshold(const std::vector<CellMatchData>& s1,
43 const std::vector<CellMatchData>& s2);
44
57std::vector<std::pair<int, int>> Align2(const std::vector<CellMatchData>& s1,
58 const std::vector<CellMatchData>& s2,
59 int threshold = 20);
60
61} // namespace Diff
62
63#endif // DIFFALGORITHM_H
GroupType
All types a GroupCell can be of.
Definition: GroupCell.h:42
Represents matching metadata for a cell.
Definition: DiffAlgorithm.h:33