X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=csv.mli;h=14901e48120b68715cb95f83b9bb65a21fa85a75;hb=3a2b495714080c9f72b89cada8bc45b22768a059;hp=ef061e6773d239d58a63ae0765b52170b486ff09;hpb=bde8fd1d0283f16620624155a9bfb0b4e67feca9;p=ocaml-csv.git diff --git a/csv.mli b/csv.mli index ef061e6..14901e4 100644 --- a/csv.mli +++ b/csv.mli @@ -1,6 +1,6 @@ (** csv.mli - comma separated values parser * - * $Id: csv.mli,v 1.8 2006-02-23 15:24:25 rich Exp $ + * $Id: csv.mli,v 1.10 2006-11-24 15:49:24 rich Exp $ *) type t = string list list @@ -26,6 +26,7 @@ val load_in : ?separator:char -> in_channel -> t val load : ?separator:char -> string -> t (** Load a CSV file. * @param filename CSV filename. + * If [filename] is ["-"] then load from [stdin]. *) val load_rows : ?separator:char -> (string list -> unit) -> in_channel -> unit @@ -112,6 +113,15 @@ val compare : t -> t -> int * look the same if opened in a spreadsheet program. *) +val concat : t list -> t +(** Concatenate CSV files so that they appear side by side, arranged + * left to right across the page. Each CSV file (except the final + * one) is first squared. + * + * (To concatenate CSV files so that they appear from top to bottom, + * just use {!List.concat}). + *) + val to_array : t -> string array array val of_array : string array array -> t (** Convenience functions to convert to and from a matrix representation.