| 193 | } |
| 194 | |
| 195 | void Parser::Imp::CmdSet(std::string s) { |
| 196 | std::string cmd, type, key, val; |
| 197 | std::stringstream b(s); |
| 198 | b >> std::skipws; |
| 199 | b >> cmd >> type >> key; |
| 200 | b >> std::noskipws; |
| 201 | char c = ' '; |
| 202 | while (b && std::isspace(c)) { |
| 203 | b >> c; |
| 204 | } |
| 205 | while (b) { |
| 206 | val += c; |
| 207 | b >> c; |
| 208 | } |
| 209 | val = Strip(val); |
| 210 | var_.SetStr(type, key, val); |
| 211 | } |
| 212 | |
| 213 | void Parser::Imp::CmdSetNext(std::string s) { |
| 214 | std::string cmd, type, key, val; |