Skip to content

Commit 525e7cd

Browse files
authored
Allow separation of data by tabs (#73)
1 parent f5951c8 commit 525e7cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Code/Source/main.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ void readModelFile(string inputFile, cvOneDOptions* opts, cvStringVec includedFi
327327
// Trim String
328328
boost::trim(buffer);
329329
// Tokenize String
330-
boost::split(tokenizedString, buffer, boost::is_any_of(" ,"), boost::token_compress_on);
330+
boost::split(tokenizedString, buffer, boost::is_any_of(" ,\t"), boost::token_compress_on);
331331
// Check for Empty buffer
332332
if(!buffer.empty()){
333333
// CHECK THE ELEMENT TYPE
@@ -538,7 +538,7 @@ void readModelFile(string inputFile, cvOneDOptions* opts, cvStringVec includedFi
538538
// Trim String
539539
boost::trim(buffer);
540540
// Tokenize String
541-
boost::split(tokenizedString, buffer, boost::is_any_of(" ,"), boost::token_compress_on);
541+
boost::split(tokenizedString, buffer, boost::is_any_of(" ,\t"), boost::token_compress_on);
542542
// Check for Empty buffer
543543
if(!buffer.empty()){
544544
if(boost::to_upper_copy(tokenizedString[0]) == std::string("ENDDATATABLE")){

0 commit comments

Comments
 (0)