KiCad PCB EDA Suite
Loading...
Searching...
No Matches
csv.h File Reference
#include <wx/string.h>
#include <wx/stream.h>
#include <istream>

Go to the source code of this file.

Classes

class  CSV_WRITER
 

Functions

bool AutoDecodeCSV (const wxString &aInput, std::vector< std::vector< wxString > > &aData)
 Try to guess the format of a T/CSV file and decode it into aData.
 

Function Documentation

◆ AutoDecodeCSV()

bool AutoDecodeCSV ( const wxString &  aInput,
std::vector< std::vector< wxString > > &  aData 
)

Try to guess the format of a T/CSV file and decode it into aData.

This can handle the most common cases of CSV files and TSV files (double/single quoted strings, commas or tabs as delimiters, but it's not completely foolproof).

Definition at line 66 of file csv.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), GetTabularDataFromClipboard(), and PIN_TABLE_IMPORT::ImportData().