Browse Source

remove hard coded comma and replace with first char of separator

master
Odilitime 1 year ago
parent
commit
680d44a041
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/tools/StringUtils.cpp

+ 1
- 1
src/tools/StringUtils.cpp View File

@@ -77,7 +77,7 @@ std::vector<std::string> parseSepButNotBetween(std::string string, std::string s
state = 4;
} else if (it == '"') {
state = 5;
} else if (it == ',') {
} else if (it == sep[0]) { // FIXME: only supports single char separators
// flush buffer
auto str3 = string.substr(last, last ? (cursor - last) : cursor);
//std::cout << "from " << last << " to " << cursor << " pushing [" << str3 << "] it[" << it << "]" << std::endl;

Loading…
Cancel
Save