takes cli> sub> foo bar sub> and gives foo bar */
| 66 | |
| 67 | */ |
| 68 | string ExtractContent(const stringstream& o) |
| 69 | { |
| 70 | auto content = o.str(); |
| 71 | // last line |
| 72 | auto lastNL = content.find_last_of('\n'); |
| 73 | auto lastLine = content.substr(lastNL+1); |
| 74 | content = content.substr(0, lastNL); |
| 75 | auto pos = content.find(lastLine); |
| 76 | return content.substr(pos+lastLine.size()); |
| 77 | } |
| 78 | |
| 79 | void UserInput(Cli& cli, stringstream& oss, const string& input) |
| 80 | { |
no outgoing calls
no test coverage detected