MCPcopy Create free account
hub / github.com/cselab/aphros / CmdSet

Method CmdSet

src/parse/parser.cpp:195–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void 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
213void Parser::Imp::CmdSetNext(std::string s) {
214 std::string cmd, type, key, val;

Callers

nothing calls this directly

Calls 2

SetStrMethod · 0.80
StripFunction · 0.70

Tested by

no test coverage detected