asciitables
Types
Procs
proc alignTable(s: string; delim = '\t'; fill = ' '; sep = " "): string {...}{. raises: [], tags: [].}
- formats a
delim
-delimiteds
representing a table; each cell is aligned to a width that's computed for each column; consecutive columns are delimited bysep
, and alignment space is filled usingfill
. More customized formatting can be done by callingparseTableCells
directly. Source Edit
Iterators
iterator parseTableCells(s: string; delim = '\t'): Cell {...}{.raises: [], tags: [].}
- iterates over all cells in a
delim
-delimiteds
, after a 1st pass that computes number of rows, columns, and width of each column. Source Edit
© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/compiler/asciitables.html