KiCad PCB EDA Suite
Loading...
Searching...
No Matches
csv.cpp File Reference
#include "csv.h"
#include <wx/txtstrm.h>
#include <rapidcsv/rapidcsv.h>

Go to the source code of this file.

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().