GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsjcpp/wsjcpp-diff-text: C++ Algorithm for like a diff texts

BranchesTags
Open more actions menu

Latest commit

 

History

20 Commits
20 Commits

Folders and files

NameName
Last commit message
Last commit date
data
data
 
 
src.wsjcpp
src.wsjcpp
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build_simple.sh
build_simple.sh
 
 
wsjcpp.yml
wsjcpp.yml
 
 

Repository files navigation

wsjcpp-diff-text

Build Status Github Stars Github Stars Github Forks Total alerts Language grade: C/C++

Algorithm for like a diff texts

Integrate to your project

wsjcpp install "https://github.com/wsjcpp/wsjcpp-diff-text:master"

Or copy files to project:

  • src.wsjcpp/wsjcpp_core/wsjcpp_core.h
  • src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp
  • src/wsjcpp_diff_text.h
  • src/wsjcpp_diff_text.cpp

Examples

#include <wsjcpp_core.h>
#include <wsjcpp_diff_text.h>

std::string sFileContent1;
std::string sFileContent2;
WsjcppCore::readTextFile("data/file1.txt", sFileContent1);
WsjcppCore::readTextFile("data/file1.txt", sFileContent2);

std::vector<wsjcpp::diff_text_row> result;
WsjcppDiffText::compare(sFileContent1, sFileContent2, result);
for (int i = 0; i < result.size(); i++) {
    std::cout << result[i].to_string() << std::endl;
}

Run:

$ ./wsjcpp-diff-text ./data/file1.txt ./data/file2.txt

example output:

1:-22222
6:+71111
10:+11111

About

C++ Algorithm for like a diff texts

Topics

cppdiff-textwsjcpp-package

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.