tsv_utils.csv2tsv

Convert CSV formatted data to TSV format.

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

Copyright (c) 2016-2020, 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)
Undocumented in source. Be warned that the author may not have intended to support it.
inputSourceByChunk
auto inputSourceByChunk(InputSource source, size_t size)
auto inputSourceByChunk(InputSource source, ubyte[] buffer)

inputSourceByChunk returns a range that reads either a file handle (File) or a ubyte[] array a chunk at a time.

main
int main(string[] cmdArgs)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

rt_options
string[] rt_options;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

Csv2tsvOptions
struct Csv2tsvOptions

Container for command line options.

Variables

helpText
auto helpText;
Undocumented in source.
helpTextVerbose
auto helpTextVerbose;
Undocumented in source.
isBufferableInputSource
enum bool isBufferableInputSource(R);

Defines the 'bufferable' input sources supported by inputSourceByChunk.

Meta