Ignore EXLT header string in exl files
This commit is contained in:
parent
58cd40912f
commit
8b6842c0e0
1 changed files with 5 additions and 2 deletions
|
@ -18,9 +18,12 @@ EXL readEXL(std::string_view path) {
|
||||||
const size_t comma = line.find_first_of(',');
|
const size_t comma = line.find_first_of(',');
|
||||||
|
|
||||||
std::string name = line.substr(0, comma);
|
std::string name = line.substr(0, comma);
|
||||||
std::string id = line.substr(comma + 1, line.length());
|
|
||||||
|
|
||||||
exl.rows.push_back({name, std::stoi(id)});
|
if(name != "EXLT") {
|
||||||
|
std::string id = line.substr(comma + 1, line.length());
|
||||||
|
|
||||||
|
exl.rows.push_back({name, std::stoi(id)});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return exl;
|
return exl;
|
||||||
|
|
Reference in a new issue