KiCad PCB EDA Suite
Loading...
Searching...
No Matches
text_diff.h File Reference
#include <string>
#include <vector>
#include <wx/arrstr.h>
#include <wx/string.h>
#include <kicommon.h>

Go to the source code of this file.

Classes

struct  KIGIT::TEXT_DIFF_LINE
 

Namespaces

namespace  KIGIT
 

Enumerations

enum class  KIGIT::TEXT_DIFF_KIND { KIGIT::CONTEXT , KIGIT::ADDED , KIGIT::REMOVED }
 

Functions

std::vector< wxString > KIGIT::SplitTextLines (const std::string &aContent)
 Tolerates CRLF endings and content that is not valid UTF-8.
 
bool KIGIT::TextLooksBinary (const std::string &aContent)
 
std::vector< TEXT_DIFF_LINE > KIGIT::BuildTextDiff (const std::vector< wxString > &aOld, const std::vector< wxString > &aNew)
 Every line of both sides appears once. There are no hunks and nothing is elided.