We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://forum.dlang.org/thread/[email protected]
If there is any API doc?
Readme only has command line doc.
BTW, how to skip empty field in csvReader? E.g. how to achieve the following in this library? Thanks.
https://run.dlang.io/is/9afmT1
void main() { import std.csv; import std.stdio: write, writeln, writef, writefln; import std.algorithm.comparison : equal; string text = "Hello;65;;\nWorld;123;7.5"; struct Layout { string name; int value; double other; } auto records = text.csvReader!Layout(';'); assert(records.equal([ Layout("Hello", 65, 2.5), Layout("World", 123, 7.5), ])); }
There is an empty field in the 1st line: "Hello;65;;", then
std.csv.CSVException@/dlang/dmd/linux/bin64/../../src/phobos/std/csv.d(1232): Floating point conversion error for input "".
Is there a way to tell csvReader to skip such empty fields?
The text was updated successfully, but these errors were encountered:
You do realise that tsv-tools and the csv module from Phobos have nothing in common? :)
Sorry, something went wrong.
No branches or pull requests
https://forum.dlang.org/thread/[email protected]
If there is any API doc?
Readme only has command line doc.
BTW, how to skip empty field in csvReader? E.g. how to achieve the following in this library? Thanks.
https://run.dlang.io/is/9afmT1
There is an empty field in the 1st line: "Hello;65;;", then
std.csv.CSVException@/dlang/dmd/linux/bin64/../../src/phobos/std/csv.d(1232): Floating point conversion error for input "".
Is there a way to tell csvReader to skip such empty fields?
The text was updated successfully, but these errors were encountered: