X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=csv.mli;h=ef061e6773d239d58a63ae0765b52170b486ff09;hb=bde8fd1d0283f16620624155a9bfb0b4e67feca9;hp=baf9e5c563cbb75f227c77aacc79833a3e8dab19;hpb=96ff72437cc1cbea49fe9599048ab61a4d11fde8;p=ocaml-csv.git diff --git a/csv.mli b/csv.mli index baf9e5c..ef061e6 100644 --- 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.