tsv_utils.csv2tsv

Convert CSV formatted data to TSV format.

This program converts comma-separated value data to tab-separated format.

Copyright (c) 2016-2021, eBay Inc. Initially written by Jon Degenhardt

Members

Functions

csv2tsv
void csv2tsv(InputSource inputSource, OutputRange outputStream, ubyte[] readBuffer, string filename, size_t skipLines, char csvQuote, char csvDelim, char tsvDelim, string tsvDelimReplacement, string tsvNewlineReplacement, bool discardBOM)

Read CSV from an input source, covert to TSV and write to an output source.

csv2tsvFiles
void csv2tsvFiles(Csv2tsvOptions cmdopt, string[] inputFiles)

csv2tsvFiles takes a list of input files and passes each to csv2tsv, which runs on a single file. csv2tsvFiles manages header lines and sets up the BufferedOutputRange passed to csv2tsv.

main
int main(string[] cmdArgs)

Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Csv2tsvOptions
struct Csv2tsvOptions

Container for command line options.

Variables

helpText
auto helpText;

Undocumented in source.

helpTextVerbose
auto helpTextVerbose;

Undocumented in source.

rt_options
string[] rt_options;

Undocumented in source.

Meta