Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
diffbinder.cpp File Reference
#include <iostream>
#include <algorithm>
#include <fstream>
#include <stdio.h>
#include <vector>
#include <string.h>

Functions

int skip (std::string const &s1)
 
std::string strip_comment_and_whitespace (std::string const &s1)
 This function strips the one-line C++ comments from the input and return the result. More...
 
int compare_text_files (std::string const &f1, const std::string &f2)
 This function compares the content of two files f1 and f2 using the. More...
 
int main (int argc, char **argv)
 

Function Documentation

int compare_text_files ( std::string const &  f1,
const std::string &  f2 
)

This function compares the content of two files f1 and f2 using the.

References utility::io::oc::cout, ObjexxFCL::getline(), skip(), and strip_comment_and_whitespace().

Referenced by main().

int main ( int  argc,
char **  argv 
)
int skip ( std::string const &  s1)

This is a simple and portable implementation of diff utility for the binder CI that should ignore certain patters. Function that checks if the line should be skipped in the comparison. It is indicated with a non-zero return code. The function checks the presence of variable or semantically unimportant strings in the line. These can be comments, the absolute paths of the sources and some codes that rely on the implementation of the STL.

Referenced by AnchorFinderMover::apply(), compare_text_files(), binder::Context::generate(), and binder::is_skipping_requested().

std::string strip_comment_and_whitespace ( std::string const &  s1)

This function strips the one-line C++ comments from the input and return the result.

References erraser_analysis::temp.

Referenced by compare_text_files().