Commit ea68db96 authored by Ryan S. Elliott's avatar Ryan S. Elliott
Browse files

trim (left and right) strings from kim_query xxxx split

parent 52364979
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -138,6 +138,8 @@ void KimQuery::command(int narg, char **arg)
    varcmd[1] = (char *) "string";

    while(std::getline(ss, token, ',')) {
      token.erase(0,token.find_first_not_of(" \n\r\t"));  // ltrim
      token.erase(token.find_last_not_of(" \n\r\t") + 1);  // rtrim
      std::stringstream splitname;
      splitname << varname << "_" << counter++;
      varcmd[0] = const_cast<char *>(splitname.str().c_str());