Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Diff Class Reference

#include <diff.h>

List of all members.

Static Public Member Functions

static unsigned differ (const std::string file1, const std::string file2, std::string &out, int maxlines=-1)


Detailed Description

generate diff's with the command diff


Member Function Documentation

static unsigned Diff::differ const std::string  file1,
const std::string  file2,
std::string &  out,
int  maxlines = -1
[static]
 

generate unified diff between two files

Parameters:
file1 
file2 
out where to store the diff
maxlines maximum number of lines to put into out, -1 for unlimited
Returns:
1 if files differ, 0 if not and any higher value for error


The documentation for this class was generated from the following file:
Generated on Fri Feb 24 00:30:02 2006 for liby2util by  doxygen 1.4.4