tsv_utils.tsv_filter

Command line tool that filters TSV files.

This tool filters tab-delimited files based on numeric or string comparisons against specific fields. See the helpText string for details.

Copyright (c) 2015-2020, eBay Inc. Initially written by Jon Degenhardt

Members

Aliases

FieldFieldNumPredicate
alias FieldFieldNumPredicate = bool function(const char[][] fields, size_t index1, size_t index2, double value)
Undocumented in source.
FieldUnaryPredicate
alias FieldUnaryPredicate = bool function(const char[][] fields, size_t index)
Undocumented in source.
FieldVsFieldPredicate
alias FieldVsFieldPredicate = bool function(const char[][] fields, size_t index1, size_t index2)
Undocumented in source.
FieldVsIStringPredicate
alias FieldVsIStringPredicate = bool function(const char[][] fields, size_t index, dstring value)
Undocumented in source.
FieldVsNumberPredicate
alias FieldVsNumberPredicate = bool function(const char[][] fields, size_t index, double value)
Undocumented in source.
FieldVsRegexPredicate
alias FieldVsRegexPredicate = bool function(const char[][] fields, size_t index, Regex!char value)
Undocumented in source.
FieldVsStringPredicate
alias FieldVsStringPredicate = bool function(const char[][] fields, size_t index, string value)
Undocumented in source.
FieldsPredicate
alias FieldsPredicate = bool delegate(const char[][] fields)
Undocumented in source.

Functions

AbsDiff
auto AbsDiff(double v1, double v2)
Undocumented in source. Be warned that the author may not have intended to support it.
RelDiff
auto RelDiff(double v1, double v2)
Undocumented in source. Be warned that the author may not have intended to support it.
byteLenEQ
bool byteLenEQ(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
byteLenGE
bool byteLenGE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
byteLenGT
bool byteLenGT(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
byteLenLE
bool byteLenLE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
byteLenLT
bool byteLenLT(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
byteLenNE
bool byteLenNE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
charLenEQ
bool charLenEQ(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
charLenGE
bool charLenGE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
charLenGT
bool charLenGT(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
charLenLE
bool charLenLE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
charLenLT
bool charLenLT(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
charLenNE
bool charLenNE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
ffAbsDiffGT
bool ffAbsDiffGT(char[][] fields, size_t index1, size_t index2, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
ffAbsDiffLE
bool ffAbsDiffLE(char[][] fields, size_t index1, size_t index2, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
ffEQ
bool ffEQ(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffGE
bool ffGE(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffGT
bool ffGT(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffIStrEQ
bool ffIStrEQ(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffIStrNE
bool ffIStrNE(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffLE
bool ffLE(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffLT
bool ffLT(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffNE
bool ffNE(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffRelDiffGT
bool ffRelDiffGT(char[][] fields, size_t index1, size_t index2, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
ffRelDiffLE
bool ffRelDiffLE(char[][] fields, size_t index1, size_t index2, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
ffStrEQ
bool ffStrEQ(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
ffStrNE
bool ffStrNE(char[][] fields, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldFieldNumOptionHandler
void fieldFieldNumOptionHandler(FieldsPredicate[] tests, size_t maxFieldIndex, FieldFieldNumPredicate fn, string option, string optionVal)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldUnaryOptionHandler
void fieldUnaryOptionHandler(FieldsPredicate[] tests, size_t maxFieldIndex, FieldUnaryPredicate fn, string option, string optionVal)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldVsFieldOptionHandler
void fieldVsFieldOptionHandler(FieldsPredicate[] tests, size_t maxFieldIndex, FieldVsFieldPredicate fn, string option, string optionVal)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldVsIStringOptionHandler
void fieldVsIStringOptionHandler(FieldsPredicate[] tests, size_t maxFieldIndex, FieldVsIStringPredicate fn, string option, string optionVal)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldVsNumberOptionHandler
void fieldVsNumberOptionHandler(FieldsPredicate[] tests, size_t maxFieldIndex, FieldVsNumberPredicate fn, string option, string optionVal)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldVsRegexOptionHandler
void fieldVsRegexOptionHandler(FieldsPredicate[] tests, size_t maxFieldIndex, FieldVsRegexPredicate fn, string option, string optionVal, bool caseSensitive)
Undocumented in source. Be warned that the author may not have intended to support it.
fieldVsStringOptionHandler
void fieldVsStringOptionHandler(FieldsPredicate[] tests, size_t maxFieldIndex, FieldVsStringPredicate fn, string option, string optionVal)
Undocumented in source. Be warned that the author may not have intended to support it.
fldBlank
bool fldBlank(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
fldEmpty
bool fldEmpty(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
fldIsFinite
bool fldIsFinite(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
fldIsInfinity
bool fldIsInfinity(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
fldIsNaN
bool fldIsNaN(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
fldIsNumeric
bool fldIsNumeric(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
fldNotBlank
bool fldNotBlank(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
fldNotEmpty
bool fldNotEmpty(char[][] fields, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
istrEQ
bool istrEQ(char[][] fields, size_t index, dstring val)
Undocumented in source. Be warned that the author may not have intended to support it.
istrInFld
bool istrInFld(char[][] fields, size_t index, dstring val)
Undocumented in source. Be warned that the author may not have intended to support it.
istrNE
bool istrNE(char[][] fields, size_t index, dstring val)
Undocumented in source. Be warned that the author may not have intended to support it.
istrNotInFld
bool istrNotInFld(char[][] fields, size_t index, dstring val)
Undocumented in source. Be warned that the author may not have intended to support it.
main
int main(string[] cmdArgs)

Main program. Invokes command line arg processing and tsv-filter to perform the real work. Any errors are caught and reported.

makeFieldFieldNumDelegate
FieldsPredicate makeFieldFieldNumDelegate(FieldFieldNumPredicate fn, size_t index1, size_t index2, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
makeFieldUnaryDelegate
FieldsPredicate makeFieldUnaryDelegate(FieldUnaryPredicate fn, size_t index)
Undocumented in source. Be warned that the author may not have intended to support it.
makeFieldVsFieldDelegate
FieldsPredicate makeFieldVsFieldDelegate(FieldVsFieldPredicate fn, size_t index1, size_t index2)
Undocumented in source. Be warned that the author may not have intended to support it.
makeFieldVsIStringDelegate
FieldsPredicate makeFieldVsIStringDelegate(FieldVsIStringPredicate fn, size_t index, dstring value)
Undocumented in source. Be warned that the author may not have intended to support it.
makeFieldVsNumberDelegate
FieldsPredicate makeFieldVsNumberDelegate(FieldVsNumberPredicate fn, size_t index, double value)
Undocumented in source. Be warned that the author may not have intended to support it.
makeFieldVsRegexDelegate
FieldsPredicate makeFieldVsRegexDelegate(FieldVsRegexPredicate fn, size_t index, Regex!char value)
Undocumented in source. Be warned that the author may not have intended to support it.
makeFieldVsStringDelegate
FieldsPredicate makeFieldVsStringDelegate(FieldVsStringPredicate fn, size_t index, string value)
Undocumented in source. Be warned that the author may not have intended to support it.
numEQ
bool numEQ(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
numGE
bool numGE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
numGT
bool numGT(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
numLE
bool numLE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
numLT
bool numLT(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
numNE
bool numNE(char[][] fields, size_t index, double val)
Undocumented in source. Be warned that the author may not have intended to support it.
regexMatch
bool regexMatch(char[][] fields, size_t index, Regex!char val)
Undocumented in source. Be warned that the author may not have intended to support it.
regexNotMatch
bool regexNotMatch(char[][] fields, size_t index, Regex!char val)
Undocumented in source. Be warned that the author may not have intended to support it.
strEQ
bool strEQ(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
strGE
bool strGE(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
strGT
bool strGT(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
strInFld
bool strInFld(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
strLE
bool strLE(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
strLT
bool strLT(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
strNE
bool strNE(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
strNotInFld
bool strNotInFld(char[][] fields, size_t index, string val)
Undocumented in source. Be warned that the author may not have intended to support it.
tsvFilter
void tsvFilter(TsvFilterOptions cmdopt, string[] inputFiles)

tsvFilter processes the input files and runs the tests.

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

TsvFilterOptions
struct TsvFilterOptions

Command line options - This struct holds the results of command line option processing. It also has a method, processArgs, that invokes command line arg processing.

Variables

helpText
auto helpText;
Undocumented in source.
helpTextOptions
auto helpTextOptions;
Undocumented in source.
helpTextVerbose
auto helpTextVerbose;
Undocumented in source.

Meta