ladybird/Userland/Libraries/LibDiff/Generator.h
Shannon Booth 55a3dfec10 LibDiff: Add support for generating diffs with surrounding context
While not used in normal diffs due to limitations in the format, this
may be used in context and unified format diffs.
2023-07-02 11:18:11 -06:00

17 lines
288 B
C++

/*
* Copyright (c) 2021, Mustafa Quraish <mustafa@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "Hunks.h"
#include <AK/Error.h>
namespace Diff {
ErrorOr<Vector<Hunk>> from_text(StringView old_text, StringView new_text, size_t context = 0);
}