Csv.compare function.
[ocaml-csv.git] / csv.mli
diff --git a/csv.mli b/csv.mli
index baf9e5c..ef061e6 100644 (file)
--- a/csv.mli
+++ b/csv.mli
@@ -1,6 +1,6 @@
 (** csv.mli - comma separated values parser
   *
-  * $Id: csv.mli,v 1.7 2005-11-25 14:08:46 rich Exp $
+  * $Id: csv.mli,v 1.8 2006-02-23 15:24:25 rich Exp $
   *)
 
 type t = string list list
@@ -105,6 +105,13 @@ val sub : int -> int -> int -> int -> t -> t
   * The returned CSV will be square.
   *)
 
+val compare : t -> t -> int
+(** Compare two CSV files for equality, ignoring blank cells at the end
+  * of a row, and empty rows appended to one or the other.  This is
+  * "semantic" equality - roughly speaking, the two CSV files would
+  * look the same if opened in a spreadsheet program.
+  *)
+
 val to_array : t -> string array array
 val of_array : string array array -> t
 (** Convenience functions to convert to and from a matrix representation.