123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293open!Coreopen!Import(* Note: For UTF-8 tables, this module makes a naive assumption that each grapheme cluster
in the text is comprised of only one Unicode scalar value. If this is not the case, the
width calculations will be incorrect. *)moduletypeAscii_table_kernel=sigmoduleAttr=AttrmoduleAlign=Column.AlignmoduleDisplay:sigtypet(** Default--cells can be multi-line. *)valshort_box:t(** Puts --- between entries. *)valtall_box:t(** Trails off with ... if necessary. *)valline:t(** No lines. *)valblank:t(** Draw lines only under column titles. *)valcolumn_titles:tendmoduleColumn:moduletypeofstructincludeColumnendwithmodulePrivate:=Column.PrivatemoduleScreen:sig(** A [Screen.t] represents a table after all of the layout calculations have been done.
*)typetvalrender:t->bars:[`Ascii|`Unicode]->output:(Attr.tlist->Buffer.t->unit)->close:(Buffer.t->'a)->'a(** Given a way to annotate strings with attributes, a [t] can be output to a string. *)valto_string:t->bars:[`Ascii|`Unicode]->string_with_attr:(Attr.tlist->string->string)->stringendvaldraw:?display:Display.t(** Default: short_box *)->?spacing:int(** Default: 1 *)->?limit_width_to:int(** defaults to 90 characters *)->?header_attr:Attr.tlist->?display_empty_rows:bool(** Default: false *)->prefer_split_on_spaces:bool->'rowColumn.tlist->'rowlist->Screen.toptionvalto_string_noattr:?display:Display.t(** Default: short_box *)->?spacing:int(** Default: 1 *)->?limit_width_to:int(** defaults to 90 characters *)->?display_empty_rows:bool(** Default: false *)->?prefer_split_on_spaces:bool(** Default: false *)->'rowColumn.tlist->'rowlist->bars:[`Ascii|`Unicode]->stringmoduleTable_char:sigtypet={ascii:char;utf8:string}valconnect:?top:unit->?bottom:unit->?left:unit->?right:unit->unit->tendmodulePrivate:sigmoduleUtf8_text_chunks=Utf8_text_chunksend[@@alertascii_table_kernel_private"This module is intended only for tests of Ascii_table_kernel."]end